Difference between revisions of "Template:Pattern"

From LifeWiki
Jump to navigation Jump to search
(Remove discovery-related categories; handled by Template:PatternDiscovery now)
Line 77: Line 77:
--><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: {{{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: {{{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]] }}
</includeonly>
</includeonly>

Revision as of 19:45, 18 February 2018

Pattern Name
{{{name}}} image
Pattern type Miscellaneous
Number of cells Unknown
Bounding box Unknown
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