Difference between revisions of "Template:GrowingSpaceship"

From LifeWiki
Jump to navigation Jump to search
(Relink categories)
Line 32: Line 32:
<tr>
<tr>
<th> Number of cells </th>
<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>
<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><!--
<tr>
 
<th valign="top"> Discovered by </th>
Display discoverers and year of discovery
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
 
<tr>
-->{{PatternDiscovery
<th> Year of discovery </th>
|discoverer   = {{{discoverer|}}}
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr><!--
|discoverer2 = {{{discoverer2|}}}
|discoverer3 = {{{discoverer3|}}}
|discoverer4 = {{{discoverer4|}}}
|discoverer5 = {{{discoverer5|}}}
|discoveryear = {{{discoveryear|}}}
}}<!--


Display "Rules", "Glider synthesis", "Pattern files" sections
Display "Rules", "Glider synthesis", "Pattern files" sections

Revision as of 19:31, 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
Number of cells 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, 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