Difference between revisions of "Template:Pattern"

From LifeWiki
Jump to navigation Jump to search
(add divider)
(Use Template:PatternPopulationAndBoundingBox; group "generic" parameters at top of infobox)
Line 19: Line 19:
<th> Family </th>
<th> Family </th>
<td> [[:Category:{{{family}}} variants|{{{family}}}]] </td></tr>
<td> [[:Category:{{{family}}} variants|{{{family}}}]] </td></tr>
}}
}}<!--
<tr>
 
<th> Number of [[cell]]s </th>
Display population and bounding box
<td> {{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} | Unknown }} </td></tr>
 
<tr>
-->{{PatternPopulationAndBoundingBox
<th> [[Bounding box]] </th>
|c       = {{{c|}}}
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr><!--
|bx      = {{{bx|}}}
|by      = {{{by|}}}
}}<!--


Display an infobox divider
Display an infobox divider
Line 81: Line 83:
--><includeonly>
--><includeonly>
[[Category:Patterns]]
[[Category:Patterns]]
{{#if: {{{type|}}} | {{#ifeq: {{{type|}}} | Garden of Eden | [[Category:Gardens of Eden]] | [[Category:{{{type}}}s]] }} }}{{#if: {{{c|}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}
{{#if: {{{type|}}} | {{#ifeq: {{{type|}}} | Garden of Eden | [[Category:Gardens of Eden]] | [[Category:{{{type}}}s]] }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}
</includeonly>
</includeonly>

Revision as of 20:50, 18 February 2018

Pattern Name
{{{name}}} image
Pattern type Miscellaneous
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for patterns. If there is a template listed below that looks like it is more appropriate for the pattern in question, use that template instead. If none of the other templates applies, then this template may be used. 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 pi calculator.

Special parameters

The following parameter is optional and should only be specified if it is relevant.

  • type: a category that the pattern fits into (e.g. type=Garden of Eden).


Pattern templates