Template:PatternDownload: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) mNo edit summary |
Apple Bottom (talk | contribs) If number of rules is not computed, display "Unknown". |
||
| Line 16: | Line 16: | ||
{{!}}- | {{!}}- }} | {{!}}- | {{!}}- }} | ||
! # of rules | ! # of rules | ||
{{!}} style="text-align:right;" {{!}} {{#if: {{{rulemin|}}} | {{#if: {{{rulemax|}}} | 2<sup>{{#expr:{{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}}}}</sup> = {{#expr: 2^({{#len:{{{rulemax|}}}}}-{{#len:{{{rulemin|}}}}})}} }} }} | {{!}} 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></tr> | ||
Revision as of 00:06, 24 July 2016
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.