Difference between revisions of "Template:PatternDownload"

From LifeWiki
Jump to: navigation, search
(Bolding and links in rules section (hope this doesn't screw something up))
Line 9: Line 9:
 
<th colspan="2" class="infobox_subhead">[[Life-like cellular automaton|Rules]]</th></tr>
 
<th colspan="2" class="infobox_subhead">[[Life-like cellular automaton|Rules]]</th></tr>
 
<tr>
 
<tr>
<td> Outer-totalistic&nbsp;rules </td>
+
<th> [[Outer-totalistic]]&nbsp;rules </th>
 
<td style="text-align:right;"> {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{#if:{{{rulemin|}}}|{{{rulemin}}}|unknown}}&nbsp;–&nbsp;{{#if:{{{rulemax|}}}|{{{rulemax}}}|unknown}}}}</td><tr />
 
<td style="text-align:right;"> {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{#if:{{{rulemin|}}}|{{{rulemin}}}|unknown}}&nbsp;–&nbsp;{{#if:{{{rulemax|}}}|{{{rulemax}}}|unknown}}}}</td><tr />
 
{{#if: {{{rulespecial|}}} | <tr>
 
{{#if: {{{rulespecial|}}} | <tr>
<td> Important&nbsp;rules </td>
+
<th> Important&nbsp;rules </th>
 
<td style="text-align:right;" valign="top"> {{{rulespecial|}}} </td></tr>
 
<td style="text-align:right;" valign="top"> {{{rulespecial|}}} </td></tr>
 
}}<tr>
 
}}<tr>
<td> #&nbsp;of&nbsp;rules </td>
+
<th> #&nbsp;of&nbsp;rules </th>
 
<td style="text-align:right;"> {{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | 2<sup>{{#expr:{{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}}}}</sup> = {{#expr: 2^({{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}})}} | Unknown }} | Unknown }} </td></tr>
 
<td style="text-align:right;"> {{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | 2<sup>{{#expr:{{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}}}}</sup> = {{#expr: 2^({{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}})}} | Unknown }} | Unknown }} </td></tr>
 
{{#if: {{{isorulemin|}}}{{{isorulemax|}}} | <tr>
 
{{#if: {{{isorulemin|}}}{{{isorulemax|}}} | <tr>
<td> Isotropic&nbsp;rules </td>
+
<th> [[Isotropic non-totalistic|Isotropic]]&nbsp;rules </th>
 
<td style="text-align:right;"> {{#ifeq: {{{isorulemin|}}} | {{{isorulemax|}}} | {{{isorulemax|}}} only | {{#if:{{{isorulemin|}}}|{{{isorulemin}}}|unknown}}&nbsp;–&nbsp;{{#if:{{{isorulemax|}}}|{{{isorulemax}}}|unknown}}}}</td></tr>
 
<td style="text-align:right;"> {{#ifeq: {{{isorulemin|}}} | {{{isorulemax|}}} | {{{isorulemax|}}} only | {{#if:{{{isorulemin|}}}|{{{isorulemin}}}|unknown}}&nbsp;–&nbsp;{{#if:{{{isorulemax|}}}|{{{isorulemax}}}|unknown}}}}</td></tr>
 
}}</table>
 
}}</table>

Revision as of 14:09, 12 January 2019

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.