Difference between revisions of "Template:Spaceship"

From LifeWiki
Jump to navigation Jump to search
(Static image always)
(updated viewerconfig)
Line 4: Line 4:
<tr>
<tr>
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}}{{{mc|}}} | {{#ifexist:RLE:{{{pname}}}|{{LV:Viewer|{{:RLE:{{{pname}}}}}
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}}{{{mc|}}} | {{#ifexist:RLE:{{{pname}}}|{{LV:Viewer|{{:RLE:{{{pname}}}}}
{{#ifexist:Template:LifeViewer config/{{{pname}}}|{{LifeViewer config/{{{pname}}}}}|{{LifeViewer config/spaceship}}}}|[[Image:{{{pname|Glider}}}.png|{{{name}}} image]]}}|[[Image:{{{pname|Glider}}}.png|{{{name}}} image]]|[[Image:UnknownPattern.png|{{{name}}} image]]}}}}</td></tr></table></td></tr>{{#if: {{{animated|}}} | <tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.gif|View animated image]]}}<tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.png|View static image]]</td></tr>
{{LifeViewer config/spaceship}}
{{#tag:nowiki|{{{viewerconfig|}}}}}|{{LifeViewer config/spaceship}}}}|[[Image:{{{pname|Glider}}}.png|{{{name}}} image]]}}|[[Image:{{{pname|Glider}}}.png|{{{name}}} image]]|[[Image:UnknownPattern.png|{{{name}}} image]]}}}}</td></tr></table></td></tr>{{#if: {{{animated|}}} | <tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.gif|View animated image]]}}<tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.png|View static image]]</td></tr>
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
<tr>
<tr>

Revision as of 19:36, 18 June 2016

Spaceship Name
{{{name}}} image}}
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