Difference between revisions of "Template:PatternDownload"

From LifeWiki
Jump to navigation Jump to search
(Trying to make the problem a little clearer: the apgcode parameter is coming up blank when building the Catagolue URL, even though the apgcode is retrieved with no trouble later in the template)
(Now that Ian07 has kindly fixed the mysterious problem, let's disable the link to chris_c's script (now showing up as it should, but now outdated). Also only show Catagolue synth link if synthesis=true and there's an apgcode.)
Line 33: Line 33:
 
<th> Fewest&nbsp;[[glider]]s </th>
 
<th> Fewest&nbsp;[[glider]]s </th>
 
<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>
 
<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>
<tr>
+
}}
 +
{{#if: {{{apgcode|}}} | <tr>
 
<th> [[RLE|Catagolue-generated RLE]] </th>
 
<th> [[RLE|Catagolue-generated RLE]] </th>
 
<td style="text-align:right;"> [https://catagolue.appspot.com/textsamples/{{{apgcode|apgcodenotfound}}}/b3s23/synthesis/{{{pname|namenotfound}}}_synth.rle {{{pname|namenotfound}}}_synth.rle] </td></tr>
 
<td style="text-align:right;"> [https://catagolue.appspot.com/textsamples/{{{apgcode|apgcodenotfound}}}/b3s23/synthesis/{{{pname|namenotfound}}}_synth.rle {{{pname|namenotfound}}}_synth.rle] </td></tr>
Line 39: Line 40:
 
{{#if: {{{synthesisRLE|}}} | <tr>
 
{{#if: {{{synthesisRLE|}}} | <tr>
 
<th> [[RLE|Uploaded synthesis RLE]] </th>
 
<th> [[RLE|Uploaded synthesis RLE]] </th>
<td style="text-align:right;"> [http://www.conwaylife.com/patterns/{{{pname|name}}}_synth.rle {{{pname|name}}}_synth.rle] </td></tr>
+
<td style="text-align:right;"> [http://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>
 
<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> }} }} }}
 
<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>
+
<!--{{#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.appspot.com/js/glidersynth.html?{{{apgcode|}}} {{{apgcode|}}}] (alt.)</td></tr>
}}
+
}}-->
 
{{#if: {{{pentadecathlonid|}}} |  
 
{{#if: {{{pentadecathlonid|}}} |  
 
<tr>
 
<tr>

Revision as of 17:53, 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.