Template:Methuselah: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
m Removed protection from "Template:Methuselah": Editing is already restricted to trusted users.
Maintainability fixes; remove "oscillator population" category; fix pattern size category if c>=1000 (not that a pattern that large would qualify as a methuselah anyway)
Line 1: Line 1:
<includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly>
<!--
<table class="infobox">
 
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
 
--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
 
Begin infobox
 
--> <table class="infobox">
<tr><td colspan="2" class="infobox_head"> {{{name|Methuselah Name}}} </td></tr>
<tr><td colspan="2" class="infobox_head"> {{{name|Methuselah Name}}} </td></tr>
<tr>
<tr>
Line 13: Line 20:
<tr>
<tr>
<th> Number of [[cell]]s </th>
<th> Number of [[cell]]s </th>
<td> {{#if: {{{c|}}} | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] | Unknown }} </td></tr>
<td> {{{c|Unknown}}} </td></tr>
<tr>
<tr>
<th> [[Bounding box]] </th>
<th> [[Bounding box]] </th>
Line 22: Line 29:
<tr>
<tr>
<th> Year of discovery </th>
<th> Year of discovery </th>
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns_found_in_{{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }} </td></tr>{{PatternDownload|synthesis={{{synthesis|}}}|synthesisRLE={{{synthesisRLE|}}}|life105={{{life105|}}}|life106={{{life106|}}}|zip={{{zip|}}}|mc={{{mc|}}}|plaintext={{{plaintext|}}}|rle={{{rle|}}}|pname={{{pname|}}}|rulespecial={{{rulespecial|}}}|rulemax={{{rulemax|}}}|rulemin={{{rulemin|}}} }}{{PatternIdentifiers|apgcode={{{apgcode|}}}|niemiecid={{{niemiecid|}}}|pentadecathlonid={{{pentadecathlonid|}}} }} </table>
<td> {{{discoveryear|Unknown}}} </td></tr><!--
<noinclude>
 
This is an infobox template for '''[[methuselah]]s'''. 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 [[bunnies]].
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|}}}  
}}<!--
 
Display "Identifiers" section
 
-->{{PatternIdentifiers
|apgcode         = {{{apgcode|}}}
|niemiecid       = {{{niemiecid|}}}
|pentadecathlonid = {{{pentadecathlonid|}}}  
}}<!--
 
End infobox
 
--></table><!--


==Special parameters==
Transcluded documentation
The following parameter is optional and should only be specified if its value is known.
*'''l''': number of generations before the pattern stabilizes (e.g. l=17332).


--><noinclude>{{Methuselah/Doc}}
{{PatternTemplates}}
{{PatternTemplates}}
</noinclude>
</noinclude><!--
<includeonly>
 
Categories
 
--><includeonly>
[[Category:Patterns]]
[[Category:Methuselahs]]
[[Category:Methuselahs]]
[[Category:Patterns]]
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{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: {{{c|}}} | [[Category:Patterns with {{{c}}} cells]] }}{{#if: {{{p|}}} | [[Category:Oscillators with period {{{p}}}]] }}{{#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|}}}]] }}
</includeonly>
</includeonly>

Revision as of 12:16, 18 February 2018

Methuselah Name
{{{name}}} image
Pattern type Methuselah
Lifespan Unknown
Number of cells Unknown
Bounding box Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for methuselahs. 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 bunnies.

Special parameters

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

  • l: number of generations before the pattern stabilizes (e.g. l=17332).
  • f: the final population of the pattern (e.g. f=1744).
  • mcps: the minimum covering polyplet size of the pattern (e.g. mcps=11).


Pattern templates