Template:PatternDownload: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
m minor format change
m made glider synth and pattern file boxes not display if they are empty
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|}}} | {{!}}-
| colspan="2" style="height:3px;" |
{{!}} colspan="2" style="height:3px;" {{!}}
|-
{{!}}-
| colspan="2" style="background-color:#A7A8C1;height:2px;" |
{{!}} colspan="2" style="background-color:#A7A8C1;height:2px;" {{!}}
|-
{{!}}-
| colspan="2" |
{{!}} colspan="2" {{!}}
{| class="infobox_table collapsible collapsed" style="width:100%"
{{{!}} class="infobox_table collapsible collapsed" style="width:100%"
|-
{{!}}-
! colspan="2" class="infobox_subhead" | [[Glider synthesis]]
! colspan="2" class="infobox_subhead" {{!}} [[Glider synthesis]]
{{#if: {{{synthesis|}}}{{{synthesisRLE|}}} | {{#ifeq: {{{synthesis|}}} | 0 | {{!}}-
{{#ifeq: {{{synthesis|}}} | 0 | {{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]]. | {{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]]. | {{!}}-
{{#if: {{{synthesis|}}} | {{!}}-
{{#if: {{{synthesis|}}} | {{!}}-
Line 39: Line 39:
! [[RLE]]
! [[RLE]]
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}_synth.rle {{{pname|name}}}_synth.rle]
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}_synth.rle {{{pname|name}}}_synth.rle]
}} }} |
}} }}
{{!}}} }}
{{#if: {{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}} | {{!}}-
{{!}} colspan="2" style="height:3px;" {{!}}
{{!}}-
{{!}} colspan="2" style="background-color:#A7A8C1;height:2px;" {{!}}
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} No syntheses are known.}}
{{!}} colspan="2" {{!}}
|}
{{{!}} class="infobox_table collapsible collapsed" style="width:100%"
|-
{{!}}-
| colspan="2" style="height:3px;" |
! colspan="2" class="infobox_subhead" {{!}} Pattern files
|-
{{#if: {{{life105|}}} | {{!}}-
| colspan="2" style="background-color:#A7A8C1;height:2px;" |
|-
| colspan="2" |
{| class="infobox_table collapsible collapsed" style="width:100%"
|-
! colspan="2" class="infobox_subhead" | Pattern files
{{#if: {{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}} | {{#if: {{{life105|}}} | {{!}}-
! [[Life 1.05]]
! [[Life 1.05]]
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}_105.lif {{{pname|name}}}_105.lif]
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}_105.lif {{{pname|name}}}_105.lif]
Line 67: Line 65:
! [[RLE]]
! [[RLE]]
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}.rle {{{pname|name}}}.rle]
{{!}} style="text-align:right;" {{!}} [http://www.conwaylife.com/pattern.asp?p={{{pname|name}}}.rle {{{pname|name}}}.rle]
}} | {{!}}-
}}
{{!}} colspan="2" style="text-align:center;" {{!}} No downloadable files are available.}}
{{!}}} }}{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | [[Category:Patterns that can be constructed with {{{synthesis|}}} gliders]]}} }}
|}{{#if: {{{synthesis|}}} | {{#ifeq: {{{synthesis|}}} | 0 | [[Category:Patterns that can not be constructed with gliders]] | [[Category:Patterns that can be constructed with {{{synthesis|}}} gliders]]}} }}
</includeonly>
</includeonly>
<noinclude>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.
<noinclude>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.
</noinclude>
</noinclude>

Revision as of 16:54, 18 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.