Difference between revisions of "Template:PatternDownload"

From LifeWiki
Jump to navigation Jump to search
(pretty sure this is redundant)
(exclude Template namespace)
(4 intermediate revisions by the same user not shown)
Line 36: Line 36:
{{#if: {{{apgcode|}}} | <tr>
{{#if: {{{apgcode|}}} | <tr>
<th> [[Catagolue]]-generated [[RLE]] </th>
<th> [[Catagolue]]-generated [[RLE]] </th>
<td style="text-align:right;"> [https://catagolue.appspot.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: {{{synthesisRLE|}}} | <tr>
{{#if: {{{synthesisRLE|}}} | <tr>
<th> Uploaded synthesis [[RLE]] </th>
<th> Uploaded synthesis [[RLE]] </th>
<td style="text-align:right;"> [http://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>
| {{#ifexist:RLE:{{{pname}}}_synth|<tr>
| {{#ifexist:RLE:{{{pname}}}_synth|<tr>
<th>[[RLE]]</th>
<th>[[RLE]]</th>
Line 46: Line 46:
<!--{{#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 />[https://catagolue.appspot.com/js/glidersynth.html?{{{apgcode|}}} {{{apgcode|}}}] (alt.)</td></tr>
<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 69: Line 69:
{{#if: {{{mc|}}} | <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;"> [https://www.conwaylife.com/patterns/{{{pname|name}}}.mc {{{pname|name}}}.mc]</td></tr>
}} {{#if: {{{plaintext|}}} | <tr>
}} {{#if: {{{plaintext|}}} | <tr>
<th>[[Plaintext]]</th>
<th>[[Plaintext]]</th>
<td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}.cells {{{pname|name}}}.cells]</td></tr>
<td style="text-align:right;"> [https://www.conwaylife.com/patterns/{{{pname|name}}}.cells {{{pname|name}}}.cells]</td></tr>
}} {{#if: {{{rle|}}} | <tr>
}} {{#if: {{{rle|}}} | <tr>
<th>[[RLE]]</th>
<th>[[RLE]]</th>
<td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}.rle {{{pname|name}}}.rle]</td></tr>
<td style="text-align:right;"> [https://www.conwaylife.com/patterns/{{{pname|name}}}.rle {{{pname|name}}}.rle]</td></tr>
| {{#ifexist:RLE:{{{pname}}}|<tr>
| {{#ifexist:RLE:{{{pname}}}|<tr>
<th>[[RLE]]</th>
<th>[[RLE]]</th>
Line 82: Line 82:
}} {{#if: {{{zip|}}} | <tr>
}} {{#if: {{{zip|}}} | <tr>
<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;"> [https://www.conwaylife.com/patterns/{{{pname|name}}}.zip {{{pname|name}}}.zip]</td></tr>
}}</table>
}}</table>
}}
}}
{{#ifeq:{{NAMESPACE}}|User||
{{#ifeq:{{NAMESPACE}}|User||{{#ifeq:{{NAMESPACE}}|Template||
{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | {{#ifexpr: {{{synthesis|0}}} >= 101 | [[Category:Patterns that can be constructed with 101 or more gliders]] | [[Category:Patterns that can be constructed with {{{synthesis|}}} gliders]] }} }} }}{{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | {{#ifeq: {{{rulemin}}} | {{{rulemax}}} | [[Category:Outer-totalistically endemic patterns]] }}}}}}{{#if: {{{isorulemin|}}} | {{#if: {{{isorulemax|}}} | {{#ifeq: {{{isorulemin}}} | {{{isorulemax}}} | [[Category:Isotropically endemic patterns]] }}}}}}
{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | {{#ifexpr: {{{synthesis|0}}} >= 101 | [[Category:Patterns that can be constructed with 101 or more gliders]] | [[Category:Patterns that can be constructed with {{{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>
}}</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 templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 21:25, 19 November 2020

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.