Difference between revisions of "Template:GrowingSpaceship"

From LifeWiki
Jump to: navigation, search
(add divider)
(Use Template:PatternPopulationAndBoundingBox; group "generic" parameters at top of infobox)
Line 14: Line 14:
 
<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 42:
 
<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
 
Display an infobox divider
Line 88: Line 98:
 
--><includeonly>
 
--><includeonly>
 
[[Category:Patterns]]
 
[[Category:Patterns]]
[[Category:Growing spaceships]]{{#if: {{{c|}}} | [[Category:Patterns with {{{c}}} cells]] }}
+
[[Category:Growing spaceships]]
 
</includeonly>
 
</includeonly>

Revision as of 20:46, 18 February 2018

Growing Spaceship Name
{{{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