Difference between revisions of "Template:PatternDownload"

From LifeWiki
Jump to navigation Jump to search
m
(Link to "catchall" synthesis category in infobox if synthesis >= 1000, rather than non-existent categories)
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;"> [[:Category:Patterns that can be constructed with {{{synthesis|}}} gliders|{{{synthesis|}}}]] </td></tr>
<td style="text-align:right;"> {{#ifexpr: {{{synthesis|}}} >= 1000 | [[:Category:Patterns that can be constructed with 1000 or more gliders|{{{synthesis|}}}]] | [[:Category:Patterns that can be constructed with {{{synthesis|}}} gliders|{{{synthesis|}}}]] }} </td></tr>
}}{{#if: {{{synthesisRLE|}}} | <tr>
}}{{#if: {{{synthesisRLE|}}} | <tr>
<th> [[RLE]] </th>
<th> [[RLE]] </th>

Revision as of 12:08, 23 June 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.