Template:Spaceship: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Undo revision 136496 by Galoomba (talk)
Tag: Undo
Confocal (talk | contribs)
restore revision as of 15:44, 18 May 2023 -- revert undiscussed changes, see Template talk:Spaceship
Tag: Manual revert
Line 28: Line 28:
<tr>
<tr>
<th> Family </th>
<th> Family </th>
<td> {{#ifeq:{{NAMESPACE}}||[[:Category:{{{family}}} variants|{{{family}}}]]|{{{family}}}}} </td></tr>
<td> [[:Category:{{{family}}} variants|{{{family}}}]] </td></tr>
}}<!--
}}<!--


Line 47: Line 47:
<tr>
<tr>
<th> [[Direction]] </th>
<th> [[Direction]] </th>
<td> {{#if: {{{dir|}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:{{{dir}}} spaceships|{{{dir}}}]]|{{{dir}}}}} | Unknown }} </td></tr>
<td> {{#if: {{{dir|}}} | [[:Category:{{{dir}}} spaceships|{{{dir}}}]] | Unknown }} </td></tr>
{{#if: {{{slope|}}} |  
{{#if: {{{slope|}}} |  
<tr>
<tr>
Line 55: Line 55:
<tr>
<tr>
<th> [[Period#Spaceships|Period]] </th>
<th> [[Period#Spaceships|Period]] </th>
<td> {{#if: {{{p|}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:Spaceships with period {{{p}}}|{{{p}}}]]|{{{p}}}}} | Unknown }} </td></tr>
<td> {{#if: {{{p|}}} | [[:Category:Spaceships with period {{{p}}}|{{{p}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Mod]] </th>
<th> [[Mod]] </th>
<td> {{#if: {{{m|}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:Spaceships with mod {{{m}}}|{{{m}}}]]|{{{m}}}}} | Unknown }} </td></tr>
<td> {{#if: {{{m|}}} | [[:Category:Spaceships with mod {{{m}}}|{{{m}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Speed]] </th>
<th> [[Speed]] </th>
<td> {{#if: {{{s|}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:Spaceships with speed {{{s}}}|{{{s}}}]]|{{{s}}}}} | Unknown }} </td></tr>
<td> {{#if: {{{s|}}} | [[:Category:Spaceships with speed {{{s}}}|{{{s}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Speed]] (unsimplified) </th>
<th> [[Speed]] (unsimplified) </th>
<td> {{#if: {{{z|}}} | {{#ifeq:{{NAMESPACE}}||[[:Category:Spaceships with unsimplified speed {{{z}}}|{{{z}}}]]|{{{z}}}}} | Unknown }} </td></tr>
<td> {{#if: {{{z|}}} | [[:Category:Spaceships with unsimplified speed {{{z}}}|{{{z}}}]] | Unknown }} </td></tr>
<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}}} | [[:Category:Spaceships with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}|{{{h}}}]] }} | Unknown }} </td></tr><!--


Display an infobox divider
Display an infobox divider
Line 129: Line 129:


--><includeonly>
--><includeonly>
{{#ifeq:{{NAMESPACE}}||
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Spaceships]]
[[Category:Spaceships]]
{{#if: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] }}{{#if: {{{c|}}} | | [[Category:Patterns with unknown population]] }}{{#if: {{{p|}}} | [[Category:Spaceships with period {{{p}}}]] | [[Category:Spaceships with unknown period]] }}{{#if: {{{dir|}}} | [[Category:{{{dir}}} spaceships]] | [[Category:Spaceships with unknown direction]] }}{{#if: {{{slope|}}} | [[Category:Spaceships with slope {{{slope}}}]] | {{#ifeq: {{lc:{{{dir|}}}}} | oblique | [[Category:Oblique spaceships with unknown slope]] }} }}{{#if: {{{s|}}} | [[Category:Spaceships with speed {{{s}}}]] | [[Category:Spaceships with unknown speed]] }}{{#if: {{{z|}}} | [[Category:Spaceships with unsimplified speed {{{z}}}]] | [[Category:Spaceships with unknown unsimplified speed]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}]] }} | [[Category:Spaceships with unknown heat]] }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{m|}}} | [[Category:Spaceships with mod {{{m|}}}]] | [[Category:Spaceships with unknown mod]] }}{{#ifexist:RLE:{{{pname}}}|{{#if: {{{viewerconfig|}}} | | [[Category:Patterns with RLE snippets but no LifeViewer configuration]] }} }}{{#if: {{{apgcode|}}} | | [[Category:Spaceships with no apgcode infobox parameter]] }}{{#if: {{{pentadecathlonid|}}} | | {{#ifeq: {{{type|}}} | constellation | | [[Category:Spaceships with no Pentadecathlon ID]] }} }}
{{#if: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] }}{{#if: {{{c|}}} | | [[Category:Patterns with unknown population]] }}{{#if: {{{p|}}} | [[Category:Spaceships with period {{{p}}}]] | [[Category:Spaceships with unknown period]] }}{{#if: {{{dir|}}} | [[Category:{{{dir}}} spaceships]] | [[Category:Spaceships with unknown direction]] }}{{#if: {{{slope|}}} | [[Category:Spaceships with slope {{{slope}}}]] | {{#ifeq: {{lc:{{{dir|}}}}} | oblique | [[Category:Oblique spaceships with unknown slope]] }} }}{{#if: {{{s|}}} | [[Category:Spaceships with speed {{{s}}}]] | [[Category:Spaceships with unknown speed]] }}{{#if: {{{z|}}} | [[Category:Spaceships with unsimplified speed {{{z}}}]] | [[Category:Spaceships with unknown unsimplified speed]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{CellsCategoryName|{{#expr: floor({{{h}}})}}}}]] }} | [[Category:Spaceships with unknown heat]] }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{m|}}} | [[Category:Spaceships with mod {{{m|}}}]] | [[Category:Spaceships with unknown mod]] }}{{#ifexist:RLE:{{{pname}}}|{{#if: {{{viewerconfig|}}} | | [[Category:Patterns with RLE snippets but no LifeViewer configuration]] }} }}{{#if: {{{apgcode|}}} | | [[Category:Spaceships with no apgcode infobox parameter]] }}{{#if: {{{pentadecathlonid|}}} | | {{#ifeq: {{{type|}}} | constellation | | [[Category:Spaceships with no Pentadecathlon ID]] }} }}
|}}</includeonly>
}}</includeonly>

Revision as of 16:59, 4 September 2023

Spaceship Name
image
Pattern type Spaceship
Direction Unknown
Period Unknown
Mod Unknown
Speed Unknown
Speed (unsimplified) Unknown
Heat Unknown
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