Template:PatternDownload: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) 1) Display "rules" section if rulemin is specified but not rulemax. 2) Display "unknown" for rulemin/max if not specified. 3) Don't compute number of rules rulemin or rulemax is not specified. |
Apple Bottom (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
{{!}}- | {{!}}- }} | {{!}}- | {{!}}- }} | ||
! # of rules | ! # of rules | ||
{{!}} style="text-align:right;" {{!}} {{#if: {{{rulemin|}}}{{{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|}}}}})}} }} }} | ||
{{!}}} | {{!}}} | ||
</td></tr> | </td></tr> | ||
Revision as of 00:05, 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.