Template:Methuselah: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
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)
No edit summary
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!--  
<!--


Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
Begin infobox


--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
-->{{InfoboxStart
|typename      = Methuselah
|defaultconfig = methuselah
|viewerconfig  = {{{viewerconfig|}}}
|name          = {{{name|}}}
|zip          = {{{zip|}}}
|mc            = {{{mc|}}}
|life105      = {{{life105|}}}
|life106      = {{{life106|}}}
|plaintext    = {{{plaintext|}}}
|rle          = {{{rle|}}}
|nofile        = {{{nofile|}}}
|pname        = {{{pname|}}}
|animated      = {{{animated|}}}
|hideimg      = {{{hideimg|}}}
}}<!--


Begin infobox
Display pattern type


--> <table class="infobox">
--><tr>
<tr><td colspan="2" class="infobox_head"> {{{name|Methuselah Name}}} </td></tr>
<tr>
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | [[Image:{{{pname|}}}.png|{{{name}}} image]]|[[Image:UnknownPattern.png|{{{name}}} image]]}}</td></tr></table></td></tr>{{#if: {{{animated|}}} | <tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.gif|View animated image]] </td></tr> }}
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
<tr>
<th> Pattern type </th>
<th> Pattern type </th>
<td> [[Methuselah]] </td></tr>
<td> [[Methuselah]] </td></tr><!--
 
Display population and bounding box
 
-->{{PatternPopulationAndBoundingBox
|c        = {{{c|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
}}<!--
 
Display minimum covering polyplet size
 
-->{{#if: {{{mcps|}}} | <tr>
<th> [[MCPS]] </th>
<td> {{{mcps|Unknown}}} </td></tr>
}}<!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}
<tr>
<tr>
<th> Lifespan </th>
<th> Lifespan </th>
<td> {{#if: {{{l|}}} | {{{l|}}} generations | Unknown }} </td></tr>
<td> {{#if: {{{l|}}} | {{{l|}}} generations | Unknown }} </td></tr>
{{#if: {{{f|}}} | <tr>
<th> Final population </th>
<td> {{{f|Unknown}}} </td></tr>
}}{{#if: {{{l|}}} | <tr>
<th> [[L/I]] </th>
<td> {{#iferror: {{#expr: floor({{{c}}})}} | Unknown | {{#expr: {{{l}}}/{{{c}}} round 1 }} }}</td></tr>
}}{{#if: {{{f|}}} | <tr>
<th> [[F/I]] </th>
<td> {{#iferror: {{#expr: floor({{{c}}})}} | Unknown | {{#expr: {{{f}}}/{{{c}}} round 1 }} }}</td></tr>
}}{{#if: {{{f|}}} | {{#if: {{{l|}}} | <tr>
<th> [[F/L]] </th>
<td> {{#expr: {{{f}}}/{{{l}}} round 3 }}</td></tr>
}} }}{{#if: {{{mcps|}}} | {{#if: {{{l|}}} | <tr>
<th> [[L/MCPS]] </th>
<td> {{#expr: {{{l}}}/{{{mcps}}} round 1 }}</td></tr>
}} }}<!--
Display an infobox divider
-->{{InfoboxDivider}}
<tr>
<tr>
<th> Number of [[cell]]s </th>
<th> [[Static symmetry]] </th>
<td> {{{c|Unknown}}} </td></tr>
<td> {{#if: {{NAMESPACE}} | {{{symmetry|Unspecified}}} | {{#if: {{{symmetry|}}} | [[:Category:Patterns with {{{symmetry}}} symmetry|{{{symmetry}}}]] | Unspecified }} | Unspecified }} </td></tr><!--
<tr>
 
<th> [[Bounding box]] </th>
Display an infobox divider
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr>
 
<tr>
-->{{InfoboxDivider}}<!--
<th valign="top"> Discovered by </th>
 
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
Display discoverers and year of discovery
<tr>
 
<th> Year of discovery </th>
-->{{PatternDiscovery
<td> {{{discoveryear|Unknown}}} </td></tr><!--
|discoverer   = {{{discoverer|}}}
|discoverer2 = {{{discoverer2|}}}
|discoverer3 = {{{discoverer3|}}}
|discoverer4 = {{{discoverer4|}}}
|discoverer5  = {{{discoverer5|}}}
|discoveryear = {{{discoveryear|}}}
}}<!--


Display "Rules", "Glider synthesis", "Pattern files" sections
Display "Rules", "Glider synthesis", "Pattern files" sections
Line 35: Line 90:
-->{{PatternDownload
-->{{PatternDownload
|synthesis    = {{{synthesis|}}}
|synthesis    = {{{synthesis|}}}
|synthesis2  = {{{synthesis2|}}}
|synthesisRLE = {{{synthesisRLE|}}}
|synthesisRLE = {{{synthesisRLE|}}}
|life105      = {{{life105|}}}
|life105      = {{{life105|}}}
Line 46: Line 102:
|rulemax      = {{{rulemax|}}}
|rulemax      = {{{rulemax|}}}
|rulemin      = {{{rulemin|}}}  
|rulemin      = {{{rulemin|}}}  
|isorulemax  = {{{isorulemax|}}}
|isorulemin  = {{{isorulemin|}}}
}}<!--
}}<!--


Line 69: Line 127:


--><includeonly>
--><includeonly>
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Methuselahs]]
[[Category:Methuselahs]]{{#if: {{{symmetry|}}} | [[Category:Patterns with {{{symmetry|}}} symmetry]] | [[Category:Patterns with unknown symmetry]] }}
{{#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|}}}]] }}
}}
</includeonly>
</includeonly>

Latest revision as of 17:06, 21 August 2024

Methuselah Name
image
Pattern type Methuselah
Lifespan Unknown
Static symmetry Unspecified
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