Difference between revisions of "Template:GrowingSpaceship"

From LifeWiki
Jump to: navigation, search
(Remove discovery-related categories; handled by Template:PatternDiscovery now)
(Pass apgcode to {{PatternDownload}})
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!--  
+
<!--
  
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
+
Begin infobox
  
--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
+
-->{{InfoboxStart
 +
|typename      = Growing Spaceship
 +
|defaultconfig = growingspaceship
 +
|viewerconfig  = {{{viewerconfig|}}}
 +
|name          = {{{name|}}}
 +
|zip          = {{{zip|}}}
 +
|mc            = {{{mc|}}}
 +
|life105      = {{{life105|}}}
 +
|life106      = {{{life106|}}}
 +
|plaintext    = {{{plaintext|}}}
 +
|rle          = {{{rle|}}}
 +
|nofile        = {{{nofile|}}}
 +
|pname        = {{{pname|}}}
 +
|animated      = {{{animated|}}}
 +
}}<!--
  
Begin infobox
+
Display pattern type
  
--> <table class="infobox">
+
--><tr>
<tr><td colspan="2" class="infobox_head"> {{{name|Growing Spaceship Name}}} </td></tr>
+
<tr>
+
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | [[Image:{{{pname|}}}.png|{{{name}}} image]]|[[Image:UnknownPattern.png|{{{name}}} image]]}}</td></tr></table></td></tr>{{#if: {{{animated|}}} | <tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.gif|View animated image]] </td></tr> }}
+
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
+
<tr>
+
 
<th> Pattern type </th>
 
<th> Pattern type </th>
<td> [[Growing spaceship]] </td></tr>
+
<td> [[Growing spaceship]] </td></tr><!--
 +
 
 +
Display population and bounding box
 +
 
 +
-->{{PatternPopulationAndBoundingBox
 +
|c        = {{{c|}}}
 +
|bx      = {{{bx|}}}
 +
|by      = {{{by|}}}
 +
}}<!--
 +
 
 +
Display an infobox divider
 +
 
 +
-->{{InfoboxDivider}}
 
<tr>
 
<tr>
 
<th> Direction </th>
 
<th> Direction </th>
Line 30: Line 51:
 
<th> Back speed </th>
 
<th> Back speed </th>
 
<td> {{{bs|Unknown}}} </td></tr>
 
<td> {{{bs|Unknown}}} </td></tr>
<tr>
+
<!--
<th> Number of cells </th>
+
 
<td> {{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | {{{c}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }} | Unknown }} </td></tr><!--
+
Display an infobox divider
 +
 
 +
-->{{InfoboxDivider}}<!--
  
 
Display discoverers and year of discovery
 
Display discoverers and year of discovery
Line 50: Line 73:
 
|synthesis    = {{{synthesis|}}}
 
|synthesis    = {{{synthesis|}}}
 
|synthesisRLE = {{{synthesisRLE|}}}
 
|synthesisRLE = {{{synthesisRLE|}}}
 +
|apgcode      = {{{apgcode|}}}
 
|life105      = {{{life105|}}}
 
|life105      = {{{life105|}}}
 
|life106      = {{{life106|}}}
 
|life106      = {{{life106|}}}
Line 60: Line 84:
 
|rulemax      = {{{rulemax|}}}
 
|rulemax      = {{{rulemax|}}}
 
|rulemin      = {{{rulemin|}}}  
 
|rulemin      = {{{rulemin|}}}  
 +
|isorulemax  = {{{isorulemax|}}}
 +
|isorulemin  = {{{isorulemin|}}}
 
}}<!--
 
}}<!--
  
Line 83: Line 109:
  
 
--><includeonly>
 
--><includeonly>
 +
{{#ifeq:{{NAMESPACE}}|User||
 
[[Category:Patterns]]
 
[[Category:Patterns]]
[[Category:Growing spaceships]]{{#if: {{{c|}}} | [[Category:Patterns with {{{c}}} cells]] }}
+
[[Category:Linear growth]]
 +
[[Category:Infinite growth]]
 +
[[Category:Growing spaceships]]
 +
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 17:44, 23 April 2019

Growing Spaceship Name
image
Pattern type Growing spaceship
Direction Unknown
Front period Unknown
Front speed Unknown
Back period Unknown
Back speed Unknown
Discovered by Unknown
Year of discovery Unknown
This is an infobox template for growing spaceships. An example can be seen to the right. For general information about how to use pattern templates, see LifeWiki:Style guide/Pattern layout. To see a live example of this template in action, see blinker ship 1.

Special parameters

The following parameters are optional and should only be specified if their values are known.

  • dir: the direction of the spaceship (either dir=Orthogonal, <tt>dir=Diagonal or dir=Oblique).
  • bp: the period of the back part of the spaceship (e.g. bp=26).
  • bs: the speed of the back part of the spaceship (e.g. bs=6c/13).
  • fp: the period of the front part of the spaceship (e.g. fp=12).
  • fs: the speed of the front part of the spaceship (e.g. fs=c/2).

Pattern templates