Template:Pattern: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
Undo revision 158115 by HotdogPi (talk) didn't work, but I'm not going to mess with it further; someone else can do that
Tag: Undo
 
(83 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<table class="infobox">
<!--


Begin infobox
-->{{InfoboxStart
|typename      = Pattern
|defaultconfig = pattern
|viewerconfig  = {{{viewerconfig|}}}
|name          = {{{name|}}}
|zip          = {{{zip|}}}
|mc            = {{{mc|}}}
|life105      = {{{life105|}}}
|life106      = {{{life106|}}}
|plaintext    = {{{plaintext|}}}
|rle          = {{{rle|}}}
|nofile        = {{{nofile|}}}
|pname        = {{{pname|}}}
|animated      = {{{animated|}}}
|hideimg      = {{{hideimg|}}}
}}<!--
Display pattern type and related information
--><tr>
<th> Pattern type </th>
<td> {{#if: {{{type|}}} | [[{{{type}}}]] | Miscellaneous }} </td></tr>
{{#if: {{{family|}}} |
<tr>
<tr>
<td colspan="2" class="infobox_head">{{{name|Pattern Name}}}</td>
<th> Family </th>
</tr>
<td> [[:Category:{{{family}}} variants|{{{family}}}]] </td></tr>
}}<!--


<tr>
Display population and bounding box
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>[[Image:{{{pname|4812diamond}}}.png]]</td></tr></table></td>
</tr>


-->{{PatternPopulationAndBoundingBox
|c        = {{{c|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
}}<!--
Display an infobox divider
-->{{InfoboxDivider}}
<tr>
<tr>
<td colspan="2" class="infobox_link">[http://www.conwaylife.com?p={{{pname|name}}} See it evolve]</td>
<th> [[Static symmetry]] </th>
</tr>
<td> {{#if: {{NAMESPACE}} | {{{symmetry|Unspecified}}} | {{#if: {{{symmetry|}}} | [[:Category:Patterns with {{{symmetry}}} symmetry|{{{symmetry}}}]] | Unspecified }} | Unspecified }} </td></tr><!--
<tr>
<th>Pattern type</th>  
<td>{{{t|Unspecified}}}</td>  
</tr>  


<tr>
Display an infobox divider
<th>Number of cells</th>
<td>{{{c|Unknown}}}</td>
</tr>


<tr>  
-->{{InfoboxDivider}}<!--
<th>Discovered by</th>
<td>[[List of patterns found by {{{discoverer|John Conway}}}|{{{discoverer|John Conway}}}]]</td>
</tr>


<tr>
Display discoverers and year of discovery
<th>Discovery year</th>
<td>[[List of patterns found in {{{discoveryear|1970}}}|{{{discoveryear|1970}}}]]</td>
</tr>


<tr>
-->{{PatternDiscovery
<td colspan="2" class="infobox_subhead">Download</td>
|discoverer  = {{{discoverer|}}}
</tr>
|discoverer2  = {{{discoverer2|}}}
|discoverer3  = {{{discoverer3|}}}
|discoverer4  = {{{discoverer4|}}}
|discoverer5  = {{{discoverer5|}}}
|discoveryear = {{{discoveryear|}}}
}}<!--
 
Display "Rules", "Glider synthesis", "Pattern files" sections
 
-->{{PatternDownload
|synthesis    = {{{synthesis|}}}
|synthesis2  = {{{synthesis2|}}}
|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


<tr>  
--><noinclude>{{Pattern/Doc}}
<th>[[Life 1.06]]</th>
{{PatternTemplates}}
<td>[[Media:{{{pname|name}}}.lif|{{{pname|name}}}.lif]]</td>  
</noinclude><!--
</tr>


<tr>
Categories
<th>[[Plaintext]]</th>
<td>[[Media:{{{pname|name}}}.cells|{{{pname|name}}}.cells]]</td>
</tr>


<tr>  
--><includeonly>
<th>[[Run Length Encoded]]</th>  
{{#ifeq:{{NAMESPACE}}|User||
<td>[[Media:{{{pname|name}}}.rle|{{{pname|name}}}.rle]]</td>
</tr>
</table>
<noinclude>
The pattern template is an infobox template for general [[pattern|patterns]]. An example can be seen to the right.
</noinclude>
<includeonly>
[[Category:Patterns]]
[[Category:Patterns]]
{{#if: {{{type|}}} | {{#ifeq: {{{type|}}} | Garden of Eden | [[Category:Gardens of Eden]] | {{#ifeq:{{{type|}}}|Breeder|[[Category:Quadratic growth]]|[[Category:{{{type}}}s]]}} }} }}{{#if: {{{family|}}} | [[Category:{{{family|}}} variants]] }}{{#if: {{{symmetry|}}} | [[Category:Patterns with {{{symmetry|}}} symmetry]] | [[Category:Patterns with unknown symmetry]] }}
}}
</includeonly>
</includeonly>

Latest revision as of 16:18, 20 January 2025

Pattern Name
image
Pattern type Miscellaneous
Static symmetry Unspecified
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