Template:PatternDownload: Difference between revisions
Jump to navigation
Jump to search
distinguish between canonical and cheapest synth; changes tested at User:Ian07/Test/Template |
more specific category |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{ | <includeonly>{{#if:{{{rulespecial|}}}|[[Category:Pages with deprecated rulespecial parameter]]|}}<!-- | ||
-->{{#if: {{{rulemin|}}}{{{rulemax|}}} | <tr> | |||
<td colspan="2" style="height:3px;"></td></tr> | <td colspan="2" style="height:3px;"></td></tr> | ||
<tr> | <tr> | ||
| Line 10: | Line 11: | ||
<tr> | <tr> | ||
<th> [[Outer-totalistic]] rules </th> | <th> [[Outer-totalistic]] rules </th> | ||
<td style="text-align:right;"> {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{#if:{{{rulemin|}}}|{{{rulemin}}}|unknown}} – {{#if:{{{rulemax|}}}|{{{rulemax}}}|unknown} | <td style="text-align:right;"> {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{#if:{{{rulemin|}}}|{{{rulemin}}}|unknown}} – {{#if:{{{rulemax|}}}|{{{rulemax}}}|unknown}}}}</td></tr> | ||
<tr> | |||
<th> # of rules </th> | <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> | <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> | ||
| Line 35: | Line 33: | ||
}}{{#if: {{{apgcode|}}} | {{#if: {{{synthesis|}}} | <tr> | }}{{#if: {{{apgcode|}}} | {{#if: {{{synthesis|}}} | <tr> | ||
<th> [[Catagolue]]-generated [[RLE]] {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | (canonical)}}</th> | <th> [[Catagolue]]-generated [[RLE]] {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | (canonical)}}</th> | ||
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode|apgcodenotfound}}}/b3s23/synthesis | <td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode|apgcodenotfound}}}/b3s23/synthesis synthesis] </td></tr> | ||
}}}}{{#if: {{{synthesis2|}}} | <tr> | }}}}{{#if: {{{synthesis2|}}} | <tr> | ||
<th> Fewest [[glider]]s (cheapest variant) </th> | <th> Fewest [[glider]]s (cheapest variant) </th> | ||
| Line 41: | Line 39: | ||
}}{{#if: {{{apgcode2|}}} | <tr> | }}{{#if: {{{apgcode2|}}} | <tr> | ||
<th> [[Catagolue]]-generated [[RLE]] (cheapest variant) </th> | <th> [[Catagolue]]-generated [[RLE]] (cheapest variant) </th> | ||
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode2|apgcodenotfound}}}/b3s23/synthesis | <td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode2|apgcodenotfound}}}/b3s23/synthesis synthesis] </td></tr> | ||
}}{{#if: {{{synthesisRLE|}}} | <tr> | }}{{#if: {{{synthesisRLE|}}} | <tr> | ||
<th> Uploaded synthesis [[RLE]] </th> | <th> Uploaded synthesis [[RLE]] </th> | ||
| Line 50: | Line 48: | ||
<!--{{#if: {{{apgcode|}}} | <tr> | <!--{{#if: {{{apgcode|}}} | <tr> | ||
<th> Auto-generated synthesis </th> | <th> Auto-generated synthesis </th> | ||
<td style="text-align:right; word-break: break-all"> [https://glidersynth.neocities.org/?{{{apgcode|}}} {{{apgcode|}}}]<br | <td style="text-align:right; word-break: break-all"> [https://glidersynth.neocities.org/?{{{apgcode|}}} {{{apgcode|}}}]<br>[https://catagolue.hatsya.com/js/glidersynth.html?{{{apgcode|}}} {{{apgcode|}}}] (alt.)</td></tr> | ||
}}--> | }}--> | ||
{{#if: {{{pentadecathlonid|}}} | | {{#if: {{{pentadecathlonid|}}} | | ||
| Line 90: | Line 88: | ||
}} | }} | ||
{{#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: {{{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]] }} | {{#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: {{{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> | ||
Latest revision as of 22:29, 2 December 2025
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.