Difference between revisions of "Template:PatternDownload"
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) m |
(Removing Life 1.05 and 1.06 (see LifeWiki:Tiki bar)) |
||
(46 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
<table class="infobox_table collapsible collapsed" style="width:100%"> | |||
<tr> | |||
<th colspan="2" class="infobox_subhead">[[Life-like cellular automaton|Rules]]</th></tr> | |||
<tr> | |||
<th> [[Outer-totalistic]] rules </th> | |||
<td style="text-align:right;"> {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{#if:{{{rulemin|}}}|{{{rulemin}}}|unknown}} – {{#if:{{{rulemax|}}}|{{{rulemax}}}|unknown}}}}</td><tr /> | |||
{{#if: {{{rulespecial|}}} | | {{#if: {{{rulespecial|}}} | <tr> | ||
<th> Important rules </th> | |||
<td style="text-align:right;" valign="top"> {{{rulespecial|}}} </td></tr> | |||
}}<tr> | |||
<th> # of rules </th> | |||
<td style="text-align:right;"> {{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | 2<sup>{{#expr:{{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}}}}</sup> = {{#expr: 2^({{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}})}} | Unknown }} | Unknown }} </td></tr> | |||
{{ | {{#if: {{{isorulemin|}}}{{{isorulemax|}}} | <tr> | ||
<th> [[Isotropic non-totalistic|Isotropic]] rules </th> | |||
<td style="text-align:right;"> {{#ifeq: {{{isorulemin|}}} | {{{isorulemax|}}} | {{{isorulemax|}}} only | {{#if:{{{isorulemin|}}}|{{{isorulemin}}}|unknown}} – {{#if:{{{isorulemax|}}}|{{{isorulemax}}}|unknown}}}}</td></tr> | |||
}}</table> | |||
</td></tr> | </td></tr> | ||
}} {{#if: {{{synthesis|}}}{{{synthesisRLE|}}} | | }}{{#if: {{{synthesis|}}}{{{synthesisRLE|}}}{{{pentadecathlonid|}}} | <tr> | ||
<tr> | |||
<td colspan="2" style="height:3px;"></td></tr> | <td colspan="2" style="height:3px;"></td></tr> | ||
<tr> | <tr> | ||
<td colspan="2" style="background-color:#A7A8C1;height:2px;"></td></tr> | <td colspan="2" style="background-color:#A7A8C1;height:2px;"></td></tr> | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"><table class="infobox_table collapsible collapsed" style="width:100%"><tr><th colspan="2" class="infobox_subhead"> [[Glider synthesis]] </th></tr> | ||
{{#ifeq: {{{synthesis|}}} | 0 | <tr> | |||
<td colspan="2" style="text-align:center;"> Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]].</td></tr> | | |||
{{#if: {{{synthesis|}}} | <tr> | |||
{{#ifeq: {{{synthesis|}}} | 0 | | <th> Fewest [[glider]]s </th> | ||
<td style="text-align:right;"> {{#ifexpr: {{{synthesis|0}}} >= 1000 | [[:Category:Patterns that can be constructed with 1000 or more gliders|{{{synthesis|}}}]] | [[:Category:Patterns that can be constructed with {{{synthesis|}}} gliders|{{{synthesis|}}}]] }}{{#ifexpr: 0{{{synthesis|0}}} > {{Reverse caber tosser/Lower bound}} | ({{Reverse caber tosser/Lower bound}}<sup>†</sup>) | }} </td></tr> | |||
{{#if: {{{synthesis|}}} | | }}{{#if: {{{synthesisRLE|}}} | <tr> | ||
<th> [[RLE]] </th> | |||
<td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}_synth.rle {{{pname|name}}}_synth.rle] </td></tr> | |||
| {{#ifexist:RLE:{{{pname}}}_synth|<tr> | |||
<th>[[RLE]]</th> | |||
<td style="text-align:right;"> [[RLE:{{{pname}}}_synth|raw RLE code]] [[Category:Pages with raw synthesis RLE code but no uploaded synthesis files]] </td></tr> }} }} }} | |||
{{#if: {{{apgcode|}}} | <tr> | |||
<th> Auto-generated synthesis </th> | |||
<td style="text-align:right; word-break: break-all"> [https://glidersynth.neocities.org/?{{{apgcode|}}} {{{apgcode|}}}]<br />[https://catagolue.appspot.com/js/glidersynth.html?{{{apgcode|}}} {{{apgcode|}}}] (alt.)</td></tr> | |||
}} | }} | ||
{{#if: {{{ | {{#if: {{{pentadecathlonid|}}} | | ||
<tr> | |||
<th> As source </th> | |||
<td style="text-align:right;"> [http://pentadecathlon.com/objects/object-info.php?objid={{{pentadecathlonid|}}}&content=foundations {{{pentadecathlonid|}}}] </td></tr> | |||
<tr> | |||
<th> As result </th> | |||
<td style="text-align:right;"> [http://pentadecathlon.com/objects/object-info.php?objid={{{pentadecathlonid|}}}&content=constructions {{{pentadecathlonid|}}}] </td></tr> | |||
}}{{#ifexpr: 0{{{synthesis|0}}} > {{Reverse caber tosser/Lower bound}} | <tr> | |||
<td colspan="2"><sup>†</sup>Can be constructed with {{Reverse caber tosser/Lower bound}} gliders using the [[reverse caber tosser]] [[universal constructor]].</td></tr> | |||
}}</table></td></tr> }} {{#if: {{{zip|}}}{{{mc|}}}{{{plaintext|}}}{{{rle|}}}{{#ifexist:RLE:{{{pname}}}|true|}} | | |||
<tr> | <tr> | ||
<td colspan="2" style="height:3px;"></td></tr> | <td colspan="2" style="height:3px;"></td></tr> | ||
Line 50: | Line 59: | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
<table class="infobox_table collapsible collapsed" style="width:100%"> | |||
<tr> | |||
<th colspan="2" class="infobox_subhead"> Pattern files </th></tr> | |||
{{#if: {{{mc|}}} | <tr> | |||
<th>[[Macrocell]]</th> | <th>[[Macrocell]]</th> | ||
<td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}.mc {{{pname|name}}}.mc]</td></tr> | <td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}.mc {{{pname|name}}}.mc]</td></tr> | ||
Line 75: | Line 78: | ||
<th>Zip archive</th> | <th>Zip archive</th> | ||
<td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}.zip {{{pname|name}}}.zip]</td></tr> | <td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}.zip {{{pname|name}}}.zip]</td></tr> | ||
}} | }}</table> | ||
}}{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | {{#ifexpr: {{{synthesis|0}}} >= 1000 | [[Category:Patterns that can be constructed with 1000 or more gliders]] | [[Category:Patterns that can be constructed with {{{synthesis|}}} gliders]] }} }} }} | |||
}}{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | [[Category:Patterns that can be constructed with {{{synthesis|}}} gliders]]}} }} | |||
</includeonly> | </includeonly> | ||
<noinclude>This template displays the "Rules", "Glider synthesis" and "Pattern files" boxes that appear on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as [[Template:Pattern]] and [[Template:Oscillator]]. All of its parameters are passed in from the corresponding parameters of the template that calls it. | <noinclude>This template displays the "Rules", "Glider synthesis" and "Pattern files" boxes that appear on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as [[Template:Pattern]] and [[Template:Oscillator]]. All of its parameters are passed in from the corresponding parameters of the template that calls it. | ||
</noinclude> | [[Category:Infobox templates]]</noinclude> |
Revision as of 21:12, 25 January 2019
This template displays the "Rules", "Glider synthesis" and "Pattern files" boxes that appear on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as Template:Pattern and Template:Oscillator. All of its parameters are passed in from the corresponding parameters of the template that calls it.