Template:PatternDownload: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Out with escaped MediaWiki tables, in with plain HTML. First step to untangling this complicated mess.
mNo edit summary
Line 28: Line 28:
<table class="infobox_table collapsible collapsed" style="width:100%">
<table class="infobox_table collapsible collapsed" style="width:100%">
<tr>
<tr>
<th colspan="2" class="infobox_subhead"> [[Glider synthesis]] </th>
<th colspan="2" class="infobox_subhead"> [[Glider synthesis]] </th></tr>
{{#ifeq: {{{synthesis|}}} | 0 | <tr>
{{#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></td> |  
<td colspan="2" style="text-align:center;"> Synthesis is [[:Category:Patterns that can not be constructed with gliders|not possible]].</td></td> |  
Line 37: Line 37:
{{#if: {{{synthesisRLE|}}} | <tr>
{{#if: {{{synthesisRLE|}}} | <tr>
<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]]}} }}
| [[Category:Patterns without synthesis files]]}} }}
{{#if: {{{apgcode|}}} | <tr>
{{#if: {{{apgcode|}}} | <tr>

Revision as of 16:30, 15 January 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.