Difference between revisions of "Template:Pattern"

From LifeWiki
Jump to navigation Jump to search
(Remove user pages from categories)
(40 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox"
<!--
|-
 
| colspan="2" class="infobox_head" | {{{name|Pattern Name}}}
Begin infobox
|-
 
| colspan="2" class="infobox_img" | <table class="img_border" cellpadding="0"><tr><td>[[Image:{{{pname|4812diamond}}}.png]]</td></tr></table>
-->{{InfoboxStart
{{#if: {{{rle|}}} | {{!}}-
|typename      = Pattern
{{!}} colspan="2" class="infobox_link" {{!}} [http://www.conwaylife.com?p={{{pname|name}}} See it evolve]
|defaultconfig = pattern
}}|-
|viewerconfig  = {{{viewerconfig|}}}
! Pattern type
|name          = {{{name|}}}
| {{#if: {{{type|}}} | [[{{{type}}}]] | Miscellaneous }}
|zip          = {{{zip|}}}
|-
|mc            = {{{mc|}}}
! Number of cells
|life105      = {{{life105|}}}
| {{#if: {{{c|}}} | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] | Unknown }}
|life106      = {{{life106|}}}
|-
|plaintext    = {{{plaintext|}}}
! Discovered by
|rle          = {{{rle|}}}
| {{#if: {{{discoverer|}}} | [[:Category:Patterns_found_by_{{{discoverer|}}}|{{{discoverer|}}}]] | Unknown }}
|nofile        = {{{nofile|}}}
|-
|pname        = {{{pname|}}}
! Year of discovery
|animated      = {{{animated|}}}
| {{#if: {{{discoveryear|}}} | [[:Category:Patterns_found_in_{{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }}
}}<!--
{{PatternDownload|pname={{{pname|name}}}|life105={{{life105|}}}|life106={{{life106|}}}|plaintext={{{plaintext|}}}|rle={{{rle|}}}}}
 
<noinclude>
Display pattern type and related information
The pattern template is an infobox template for [[pattern|patterns]]. An example can be seen to the right.
 
</noinclude>
--><tr>
<includeonly>
<th> Pattern type </th>
[[Category:Patterns]]{{#if: {{{type|}}} | [[Category:{{{type}}}s]] }}{{#if: {{{c|}}} | [[Category:Patterns with {{{c}}} cells]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
<td> {{#if: {{{type|}}} | [[{{{type}}}]] | Miscellaneous }} </td></tr>
{{#if: {{{family|}}} |  
<tr>
<th> Family </th>
<td> [[:Category:{{{family}}} variants|{{{family}}}]] </td></tr>
}}<!--
 
Display population and bounding box
 
-->{{PatternPopulationAndBoundingBox
|c        = {{{c|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
}}<!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}<!--
 
Display discoverers and year of discovery
 
-->{{PatternDiscovery
|discoverer  = {{{discoverer|}}}
|discoverer2  = {{{discoverer2|}}}
|discoverer3  = {{{discoverer3|}}}
|discoverer4  = {{{discoverer4|}}}
|discoverer5  = {{{discoverer5|}}}
|discoveryear = {{{discoveryear|}}}
}}<!--
 
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|}}}  
|isorulemax  = {{{isorulemax|}}}
|isorulemin  = {{{isorulemin|}}}
}}<!--
 
Display "Identifiers" section
 
-->{{PatternIdentifiers
|apgcode          = {{{apgcode|}}}
|niemiecid        = {{{niemiecid|}}}
|pentadecathlonid = {{{pentadecathlonid|}}}  
}}<!--
 
End infobox
 
--></table><!--
 
Transcluded documentation
 
--><noinclude>{{Pattern/Doc}}
{{PatternTemplates}}
</noinclude><!--
 
Categories
 
--><includeonly>
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
{{#if: {{{type|}}} | {{#ifeq: {{{type|}}} | Garden of Eden | [[Category:Gardens of Eden]] | [[Category:{{{type}}}s]] }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}
}}
</includeonly>
</includeonly>

Revision as of 01:31, 10 December 2018

Pattern 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