Difference between revisions of "Template:Spaceship"

From LifeWiki
Jump to navigation Jump to search
(Remove discovery-related categories; handled by Template:PatternDiscovery now)
Line 100: Line 100:
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Spaceships]]
[[Category:Spaceships]]
{{#if: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells|{{{c}}}]] | [[Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }}{{#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: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{#expr: floor({{{h}}})}}]] }} | [[Category:Spaceships with unknown heat]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoverer2|}}} | [[Category:Patterns found by {{{discoverer2|}}}]] }}{{#if: {{{discoverer3|}}} | [[Category:Patterns found by {{{discoverer3|}}}]] }}{{#if: {{{discoverer4|}}} | [[Category:Patterns found by {{{discoverer4|}}}]] }}{{#if: {{{discoverer5|}}} | [[Category:Patterns found by {{{discoverer5|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}{{#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: {{{type|}}} | [[Category:{{pluralize|{{{type|}}}}}]] }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells|{{{c}}}]] | [[Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }}{{#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: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{#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]] }}
</includeonly>
</includeonly>

Revision as of 19:45, 18 February 2018

Spaceship Name
{{{name}}} image
Pattern type Spaceship
Number of cells Unknown
Bounding box Unknown
Direction Unknown
Period Unknown
Mod Unknown
Speed 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