Template:PatternDownload: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Merge synthesis categories for >=1000 gliders. Suggested by 77topaz.
Display "raw RLE" link for synthesis file if there is an on-wiki RLE snippet but no uploaded RLE file.
Line 33: Line 33:
<th> [[RLE]] </th>
<th> [[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|name}}}_synth.rle {{{pname|name}}}_synth.rle] </td></tr>
| [[Category:Patterns without synthesis files]]}} }}
| {{#ifexist:RLE:{{{pname}}}_synth|<tr>
<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> }} }}
{{#if: {{{apgcode|}}} | <tr>
{{#if: {{{apgcode|}}} | <tr>
<th> Auto-generated synthesis </th>
<th> Auto-generated synthesis </th>

Revision as of 09:25, 28 February 2018

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.