User:Ian07/Test/Template: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Undo revision 80843 by Ian07 (talk)
Tag: Undo
maybe the <br> isn't actually necessary
Line 31: Line 31:
<td colspan="2" style="text-align:center;"> Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]].</td></tr> |  
<td colspan="2" style="text-align:center;"> Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]].</td></tr> |  
{{#if: {{{synthesis|}}} | <tr>
{{#if: {{{synthesis|}}} | <tr>
<th> Fewest&nbsp;[[glider]]s {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | <br>(canonical)}} </th>
<th> Fewest&nbsp;[[glider]]s {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | (canonical)}} </th>
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{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;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{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>
<th> [[Catagolue]]-generated [[RLE]] {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | <br>(canonical)}}</th>
<th> [[Catagolue]]-generated [[RLE]] {{#if: {{{synthesis2|}}}{{{apgcode2|}}} | (canonical)}}</th>
<td style="text-align:right;"> [https://catagolue.hatsya.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: {{{synthesis2|}}} | <tr>
{{#if: {{{synthesis2|}}} | <tr>
<th> Fewest&nbsp;[[glider]]s<br>(cheapest variant) </th>
<th> Fewest&nbsp;[[glider]]s (cheapest variant) </th>
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis2|}}}}} gliders|{{{synthesis2|}}}]] {{#ifexpr: 0{{{synthesis2|0}}} > {{Reverse caber tosser/Lower bound}} | &nbsp;({{Reverse caber tosser/Lower bound}}<sup>&dagger;</sup>) | }} </td></tr>
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{GlidersCategoryName|{{{synthesis2|}}}}} gliders|{{{synthesis2|}}}]] {{#ifexpr: 0{{{synthesis2|0}}} > {{Reverse caber tosser/Lower bound}} | &nbsp;({{Reverse caber tosser/Lower bound}}<sup>&dagger;</sup>) | }} </td></tr>
}}
}}
{{#if: {{{apgcode2|}}} | <tr>
{{#if: {{{apgcode2|}}} | <tr>
<th> [[Catagolue]]-generated [[RLE]]<br>(cheapest variant) </th>
<th> [[Catagolue]]-generated [[RLE]] (cheapest variant) </th>
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode2|apgcodenotfound}}}/b3s23/synthesis {{{pname|namenotfound}}}_synth.rle] </td></tr>
<td style="text-align:right;"> [https://catagolue.hatsya.com/textsamples/{{{apgcode2|apgcodenotfound}}}/b3s23/synthesis {{{pname|namenotfound}}}_synth.rle] </td></tr>
}}
}}

Revision as of 22:01, 10 July 2021

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.