Template:Spaceship: Difference between revisions
Jump to navigation
Jump to search
m Changed protection level for "Template:Spaceship" ([Edit=<protect-level-trusted>] (indefinite) [Move=<protect-level-trusted>] (indefinite)) |
Apple Bottom (talk | contribs) Categorize ships by direction, as discussed on User talk:Nathaniel. Also add a "slope" parameter for oblique ships. |
||
| Line 16: | Line 16: | ||
<tr> | <tr> | ||
<th> Direction </th> | <th> Direction </th> | ||
<td> {{{dir|Unknown}}} </td></tr> | <td> {{#if: {{{dir|}}} | [[:Category:{{{dir}}} spaceships|{{{dir}}}]] | Unknown }} </td></tr> | ||
{{#if: {{{slope|}}} | | |||
<tr> | |||
<th> Slope </th> | |||
<td> [[:Category:Spaceships with slope {{{slope}}}|{{{slope}}}]] </td></tr> | |||
}} | |||
<tr> | <tr> | ||
<th> [[Period#Spaceships|Period]] </th> | <th> [[Period#Spaceships|Period]] </th> | ||
| Line 37: | Line 42: | ||
==Special parameters== | ==Special parameters== | ||
The following parameters are optional and should only be specified if their values are known. | The following parameters are optional and should only be specified if their values are known. | ||
*'''dir''': the direction of the spaceship (either dir=Orthogonal or dir= | *'''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). | *'''h''': the [[heat]] of the spaceship (e.g. h=4). | ||
*'''p''': the period of the spaceship (e.g. p=4). | *'''p''': the period of the spaceship (e.g. p=4). | ||
*'''s''': the speed of the spaceship (e.g. s=c/4). | *'''s''': the speed of the spaceship (e.g. s=c/4). | ||
*'''type''': a subcategory of spaceships | *'''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". | ||
{{PatternTemplates}} | {{PatternTemplates}} | ||
| Line 47: | Line 53: | ||
<includeonly> | <includeonly> | ||
[[Category:Patterns]] | [[Category:Patterns]] | ||
[[Category:Spaceships]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#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}}}]] }}{{#if: {{{s|}}} | [[Category:Spaceships with speed {{{s}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }} | [[Category:Spaceships]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#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}}}]] }}{{#if: {{{dir|}}} | [[Category:{{{dir}}} spaceships]] }}{{#if: {{{slope|}}} | [[Category:Spaceships with period {{{slope}}}]] }}{{#if: {{{s|}}} | [[Category:Spaceships with speed {{{s}}}]] }}{{#if: {{{h|}}} | {{#iferror: {{#expr: floor({{{h}}})}} | | [[Category:Spaceships with heat {{#expr: floor({{{h}}})}}]] }} }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }} | ||
</includeonly> | </includeonly> | ||
Revision as of 17:58, 12 May 2016
| Spaceship Name | ||
| ||
| Pattern type | Spaceship | |
|---|---|---|
| Number of cells | Unknown | |
| Bounding box | Unknown | |
| Direction | Unknown | |
| Period | 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).
- 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
- Template:Agar
- Template:Conduit
- Template:Crawler
- Template:Fuse
- Template:GrowingSpaceship
- Template:Gun
- Template:Methuselah
- Template:MovingBreeder
- Template:Oscillator
- Template:OscillatorComponent
- Template:Pattern
- Template:Puffer
- Template:Reflector
- Template:Rotor
- Template:Sawtooth
- Template:Spaceship
- Template:StillLifeComponent
- Template:Stilllife
- Template:UnitCell
- Template:Wave
- Template:Wick
- Template:Wickstretcher
