Template:Puffer: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
add divider
Use Template:PatternPopulationAndBoundingBox; group "generic" parameters at top of infobox
Line 14: Line 14:
<tr>
<tr>
<th> Pattern type </th>
<th> Pattern type </th>
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Puffer]] </td></tr>
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Puffer]] </td></tr><!--
 
Display population and bounding box
 
-->{{PatternPopulationAndBoundingBox
|c        = {{{c|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
}}<!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}
<tr>
<tr>
<th> Direction </th>
<th> Direction </th>
Line 23: Line 35:
<tr>
<tr>
<th> [[Speed]] </th>
<th> [[Speed]] </th>
<td> {{#if: {{{s|}}} | [[:Category:Puffers with speed {{{s|}}}|{{{s|}}}]] | Unknown }} </td></tr>
<td> {{#if: {{{s|}}} | [[:Category:Puffers with speed {{{s|}}}|{{{s|}}}]] | Unknown }} </td></tr><!--
<tr>
<th> Number of [[cell]]s </th>
<td> {{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} | Unknown }} </td></tr>
<tr>
<th> [[Bounding box]] </th>
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr><!--


Display an infobox divider
Display an infobox divider
Line 85: Line 91:
--><includeonly>
--><includeonly>
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Puffers]]{{#if: {{{dir|}}} | [[Category:{{{dir|}}} puffers]] | [[Category:Puffers with unknown direction]] }}{{#if: {{{p|}}} | [[Category:Puffers with period {{{p|}}}]] | [[Category:Puffers with unknown period]] }}{{#if: {{{s|}}} | [[Category:Puffers with speed {{{s|}}}]] | [[Category:Puffers with unknown speed]] }}{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] }} }}
[[Category:Puffers]]{{#if: {{{dir|}}} | [[Category:{{{dir|}}} puffers]] | [[Category:Puffers with unknown direction]] }}{{#if: {{{p|}}} | [[Category:Puffers with period {{{p|}}}]] | [[Category:Puffers with unknown period]] }}{{#if: {{{s|}}} | [[Category:Puffers with speed {{{s|}}}]] | [[Category:Puffers with unknown speed]] }}{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
</includeonly>
</includeonly>

Revision as of 20:50, 18 February 2018

Puffer Name
{{{name}}} image
Pattern type Puffer
Direction Unknown
Period Unknown
Speed Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for puffers. 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 backrake 1.

Special parameters

The following parameters are optional and should only be specified if their values are known.

  • dir: the direction of the puffer (dir=Orthogonal, dir=Diagonal, or dir=Oblique).
  • p: the period of the puffer (e.g. p=8).
  • s: the speed of the puffer (e.g. s=c/2).
  • type: a subcategory (such as rake) for the puffer. Leave blank if it does not apply or if you are unsure.


Pattern templates