Template:Spaceship: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
merge unsimplified speed parameter into speed row to reduce vertical template size
No edit summary
Line 64: Line 64:
<tr>
<tr>
<th> [[Heat]] </th>
<th> [[Heat]] </th>
<td> {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:Spaceships with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}|{{{h}}}]]|{{{h}}}}} }} | Unknown }} </td></tr><!--
<td> {{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | {{{h}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:Spaceships with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}|{{{h}}}]]|{{{h}}}}} }} | Unknown }} </td></tr>
<tr>
<th> [[Kinetic symmetry]] </th>
<td> {{#if: {{NAMESPACE}} | {{{symmetry|Unspecified}}} | {{#if: {{{symmetry}} | [[:Category:Spaceships with {{{symmetry}}} symmetry|{{{symmetry}}}]] | Unspecified }} | Unspecified }} </td></tr><!--


Display an infobox divider
Display an infobox divider

Revision as of 16:04, 9 August 2024

Spaceship Name
image
Pattern type Spaceship
Direction Unknown
Period Unknown
Mod Unknown
Speed Unknown | Unknown
Heat Unknown
Kinetic symmetry Unspecified
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for 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 glider.

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).
  • slope: the slope of the spaceship (for dir=Oblique only, e.g. slope=5).
  • h: the heat of the spaceship (e.g. h=4).
  • p: the period of the spaceship (e.g. p=4).
  • m: the mod of the spaceship (e.g. m=2).
  • s: the speed of the spaceship (e.g. s=c/4).
  • type: a subcategory of spaceships – leave blank for a normal spaceship or if you're unsure. The only supported value currently is "type=Puffer engine".


Pattern templates