Template:PatternDownload: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 18: Line 18:
{{!}} style="text-align:right;" {{!}} 2<sup>{{#expr:{{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}}}}</sup> = {{#expr: 2^({{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}})}}
{{!}} style="text-align:right;" {{!}} 2<sup>{{#expr:{{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}}}}</sup> = {{#expr: 2^({{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}})}}
{{!}}}
{{!}}}
}}
}} {{#if: {{{synthesis|}}}{{{synthesisRLE|}}} |
{{#if: {{{synthesis|}}}{{{synthesisRLE|}}} |
<tr>
<tr>
<td colspan="2" style="height:3px;"></td></tr>
<td colspan="2" style="height:3px;"></td></tr>
Line 26: Line 25:
<tr>
<tr>
<td colspan="2">
<td colspan="2">
{{{!}} class="infobox_table collapsible collapsed" style="width:100%"
<table class="infobox_table collapsible collapsed" style="width:100%">
{{!}}-
<tr>
! colspan="2" class="infobox_subhead" {{!}} [[Glider synthesis]]
<th colspan="2" class="infobox_subhead"> [[Glider synthesis]] </th>
{{#ifeq: {{{synthesis|}}} | 0 | {{!}}-
{{#ifeq: {{{synthesis|}}} | 0 | <tr><td colspan="2" style="text-align:center;"> Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]]. </td></tr> |  
{{!}} colspan="2" style="text-align:center;" {{!}} Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]]. | {{!}}-
{{#if: {{{synthesis|}}} | <tr>
{{#if: {{{synthesis|}}} | {{!}}-
<th> Fewest&nbsp;[[glider]]s </th>
! Fewest&nbsp;[[glider]]s
<td style="text-align:right;"> [[:Category:Patterns that can be constructed with {{{synthesis|}}} gliders|{{{synthesis|}}}]] </td></tr> }}
{{!}} style="text-align:right;" {{!}} [[:Category:Patterns that can be constructed with {{{synthesis|}}} gliders|{{{synthesis|}}}]]
{{#if: {{{synthesisRLE|}}} | <tr>
}}
<th> Java&nbsp;link </th>
{{#if: {{{synthesisRLE|}}} | {{!}}-
<td style="text-align:right;"> [http://www.conwaylife.com?p={{{pname|name}}}_synth click here] </td></tr>
! Java&nbsp;link
<tr>
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com?p={{{pname|name}}}_synth click here]
<th> [[RLE]] </th>
{{!}}-
<td style="text-align:right;"> [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}_synth.rle {{{pname|name}}}_synth.rle] </td>
! [[RLE]]
</tr>}} }}
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}_synth.rle {{{pname|name}}}_synth.rle]
</table></td></tr> }}
}} }}
{{!}}}</td></tr> }}
{{#if: {{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}} | {{!}}-
{{#if: {{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}} | {{!}}-
{{!}} colspan="2" style="height:3px;" {{!}}
{{!}} colspan="2" style="height:3px;" {{!}}

Revision as of 13:01, 19 June 2009

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 template such as Template:Pattern and Template:Oscillator. All of its parameters are passed in from the corresponding parameters of the template that calls it.