Template:Spaceship: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Track spaceships with unknown mod |
Apple Bottom (talk | contribs) Maintainability weaks |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly> | <!-- | ||
<table class="infobox" | |||
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this | |||
--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!-- | |||
Begin infobox | |||
--> <table class="infobox"> | |||
<td colspan="2" class="infobox_head"> {{{name|Spaceship Name}}} </td></tr> | <td colspan="2" class="infobox_head"> {{{name|Spaceship Name}}} </td></tr> | ||
<tr> | <tr> | ||
| Line 46: | Line 53: | ||
<tr> | <tr> | ||
<th> Year of discovery </th> | <th> Year of discovery </th> | ||
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|zip={{{zip|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} | <td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr><!-- | ||
< | |||
Display "Rules", "Glider synthesis", "Pattern files" sections | |||
-->{{PatternDownload | |||
|synthesis = {{{synthesis|}}} | |||
|synthesisRLE = {{{synthesisRLE|}}} | |||
|life105 = {{{life105|}}} | |||
|life106 = {{{life106|}}} | |||
|plaintext = {{{plaintext|}}} | |||
|zip = {{{zip|}}} | |||
|mc = {{{mc|}}} | |||
|rle = {{{rle|}}} | |||
|pname = {{{pname|}}} | |||
|rulespecial = {{{rulespecial|}}} | |||
|rulemax = {{{rulemax|}}} | |||
|rulemin = {{{rulemin|}}} | |||
}}<!-- | |||
Display "Identifiers" section | |||
-->{{PatternIdentifiers | |||
|apgcode = {{{apgcode|}}} | |||
|niemiecid = {{{niemiecid|}}} | |||
|pentadecathlonid = {{{pentadecathlonid|}}} | |||
}}<!-- | |||
End infobox | |||
--></table><!-- | |||
Transcluded documentation | |||
--><noinclude>{{Stilllife/Doc}} | |||
{{PatternTemplates}} | {{PatternTemplates}} | ||
</noinclude> | </noinclude><!-- | ||
<includeonly> | |||
Categories | |||
--><includeonly> | |||
[[Category:Patterns]] | [[Category:Patterns]] | ||
[[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]] }} | [[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]] }} | |||
</includeonly> | </includeonly> | ||
Revision as of 12:55, 18 February 2018
| Spaceship Name | ||
| ||
| View static 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 still lifes. 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 block.
Special parameters
The following parameters are optional.
- type: any of "strict", "quasi", "pseudo", "eater", or "constellation" (without the quotes) which refer to strict still lifes, pseudo still lifes, Quasi still lifes, eaters, or constellations, respectively. If omitted, it will default to strict still life.
- type2: like type; should only be specified if type is not empty.
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
