Template:PatternDownload: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
per tiki bar
distinguish between canonical and cheapest synth; changes tested at User:Ian07/Test/Template
Line 22: Line 22:
}}</table>
}}</table>
</td></tr>
</td></tr>
}}{{#if: {{{synthesis|}}}{{{synthesisRLE|}}}{{{pentadecathlonid|}}} | <tr>
}}{{#if: {{{synthesis|}}}{{{synthesis2|}}}{{{synthesisRLE|}}}{{{pentadecathlonid|}}} | <tr>
<td colspan="2" style="height:3px;"></td></tr>
<td colspan="2" style="height:3px;"></td></tr>
<tr>
<tr>
Line 31: Line 31:
<td colspan="2" style="text-align:center;"> Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]].</td></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>
{{#if: {{{synthesis|}}} | <tr>
<th> Fewest&nbsp;[[glider]]s </th>
<th> Fewest&nbsp;[[glider]]s {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | (canonical)}} </th>
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis|}}}}} gliders|{{{synthesis|}}}]] {{#ifexpr: 0{{{synthesis|0}}} > {{Reverse caber tosser/Lower bound}} | &nbsp;({{Reverse caber tosser/Lower bound}}<sup>&dagger;</sup>) | }} </td></tr>
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis|}}}}} gliders|{{{synthesis|}}}]]{{#ifexpr: 0{{{synthesis|0}}} > {{Reverse caber tosser/Lower bound}} | <sup>&dagger;</sup> | }} </td></tr>
}}
}}{{#if: {{{apgcode|}}} | {{#if: {{{synthesis|}}} | <tr>  
{{#if: {{{apgcode|}}} | <tr>
<th> [[Catagolue]]-generated [[RLE]] {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | (canonical)}}</th>
<th> [[Catagolue]]-generated [[RLE]] </th>
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode|apgcodenotfound}}}/b3s23/synthesis {{{pname|namenotfound}}}_synth.rle] </td></tr>
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode|apgcodenotfound}}}/b3s23/synthesis {{{pname|namenotfound}}}_synth.rle] </td></tr>
}}
}}}}{{#if: {{{synthesis2|}}} | <tr>
{{#if: {{{synthesisRLE|}}} | <tr>
<th> Fewest&nbsp;[[glider]]s (cheapest&nbsp;variant) </th>
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis2|}}}}} gliders|{{{synthesis2|}}}]]{{#ifexpr: 0{{{synthesis2|0}}} > {{Reverse caber tosser/Lower bound}} | <sup>&dagger;</sup> | }} </td></tr>
}}{{#if: {{{apgcode2|}}} | <tr>
<th> [[Catagolue]]-generated [[RLE]] (cheapest&nbsp;variant) </th>
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode2|apgcodenotfound}}}/b3s23/synthesis {{{pname|namenotfound}}}_synth.rle] </td></tr>
}}{{#if: {{{synthesisRLE|}}} | <tr>
<th> Uploaded synthesis [[RLE]] </th>
<th> Uploaded synthesis [[RLE]] </th>
<td style="text-align:right;"> [https://www.conwaylife.com/patterns/{{{pname|namenotfound}}}_synth.rle {{{pname|namenotfound}}}_synth.rle] </td></tr>
<td style="text-align:right;"> [https://www.conwaylife.com/patterns/{{{pname|namenotfound}}}_synth.rle {{{pname|namenotfound}}}_synth.rle] </td></tr>
Line 55: Line 59:
<th> As result </th>
<th> As result </th>
<td style="text-align:right;"> [http://pentadecathlon.com/objects/object-info.php?objid={{{pentadecathlonid|}}}&content=constructions {{{pentadecathlonid|}}}] </td></tr>
<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>
}}{{#ifexpr: 0{{{synthesis|0}}} > {{Reverse caber tosser/Lower bound}} or 0{{{synthesis2|0}}} > {{Reverse caber tosser/Lower bound}} | <tr>
<td colspan="2"><sup>&dagger;</sup>Can be constructed with {{Reverse caber tosser/Lower bound}} gliders using the [[reverse caber tosser]] [[universal constructor]].</td></tr>
<td colspan="2"><sup>&dagger;</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|}} |
}}</table></td></tr> }} {{#if: {{{zip|}}}{{{mc|}}}{{{plaintext|}}}{{{rle|}}}{{#ifexist:RLE:{{{pname}}}|true|}} |
Line 86: Line 90:
}}
}}
{{#ifeq:{{NAMESPACE}}|User||{{#ifeq:{{NAMESPACE}}|Template||
{{#ifeq:{{NAMESPACE}}|User||{{#ifeq:{{NAMESPACE}}|Template||
{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | [[Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis|}}}}} gliders]] }} }}{{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | {{#ifeq: {{{rulemin}}} | {{{rulemax}}} | [[Category:Outer-totalistically endemic patterns]] }} | [[Category:Patterns with unknown or incomplete rule information]] }} | [[Category:Patterns with unknown or incomplete rule information]] }}{{#if: {{{rulespecial|}}} | | [[Category:Patterns with unknown or incomplete rule information]] }}{{#if: {{{isorulemin|}}} | {{#if: {{{isorulemax|}}} | {{#ifeq: {{{isorulemin}}} | {{{isorulemax}}} | [[Category:Isotropically endemic patterns]] }} | [[Category:Patterns with unknown or incomplete rule information]] }} | [[Category:Patterns with unknown or incomplete rule information]] }} }} }}</includeonly>
{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | [[Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis|}}}}} gliders]] }} }}{{#if: {{{synthesis2|}}} | {{#ifeq: {{{synthesis2|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | [[Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis2|}}}}} gliders]] }} }}{{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | {{#ifeq: {{{rulemin}}} | {{{rulemax}}} | [[Category:Outer-totalistically endemic patterns]] }} | [[Category:Patterns with unknown or incomplete rule information]] }} | [[Category:Patterns with unknown or incomplete rule information]] }}{{#if: {{{rulespecial|}}} | | [[Category:Patterns with unknown or incomplete rule information]] }}{{#if: {{{isorulemin|}}} | {{#if: {{{isorulemax|}}} | {{#ifeq: {{{isorulemin}}} | {{{isorulemax}}} | [[Category:Isotropically endemic patterns]] }} | [[Category:Patterns with unknown or incomplete rule information]] }} | [[Category:Patterns with unknown or incomplete rule information]] }} }} }}</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.
[[Category:Infobox subtemplates]]</noinclude>
[[Category:Infobox subtemplates]]</noinclude>

Revision as of 19:56, 11 July 2021

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.