Difference between revisions of "Template:PatternDownload"

From LifeWiki
Jump to navigation Jump to search
(experimental change to infobox to point synthesis links to Catagolue)
(adjust catchall category so that it has more than just a couple of ridiculous recipes for macro-spaceships in it; try to fix Catagolue link)
Line 32: Line 32:
 
{{#if: {{{synthesis|}}} | <tr>
 
{{#if: {{{synthesis|}}} | <tr>
 
<th> Fewest&nbsp;[[glider]]s </th>
 
<th> Fewest&nbsp;[[glider]]s </th>
<td style="text-align:right;"> {{#ifexpr: {{{synthesis|0}}} >= 100 | [[:Category:Patterns that can be constructed with 100 or more gliders|{{{synthesis|}}}]] | [[:Category:Patterns that can be constructed with {{{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;"> {{#ifexpr: {{{synthesis|0}}} >= 101 | [[:Category:Patterns that can be constructed with 101 or more gliders|{{{synthesis|}}}]] | [[:Category:Patterns that can be constructed with {{{synthesis|}}} gliders|{{{synthesis|}}}]] }}{{#ifexpr: 0{{{synthesis|0}}} > {{Reverse caber tosser/Lower bound}} | &nbsp;({{Reverse caber tosser/Lower bound}}<sup>&dagger;</sup>) | }} </td></tr>
 
}}
 
}}
{{#if: {{{apgcode|}}} | | <tr>
+
{{#if: {{{apgcode|}}} | <tr>
 
<td style="text-align:right;"> [https://catagolue.appspot.com/textsamples/{{{apgcode}}}/b3s23/synthesis/{{{pname|name}}}_synth.rle] </td></tr>
 
<td style="text-align:right;"> [https://catagolue.appspot.com/textsamples/{{{apgcode}}}/b3s23/synthesis/{{{pname|name}}}_synth.rle] </td></tr>
 
}}
 
}}
Line 83: Line 83:
 
<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>
 
}}</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]] | {{#ifexpr: {{{synthesis|0}}} >= 101 | [[Category:Patterns that can be constructed with 101 or more 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.
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Revision as of 17:04, 23 April 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.