Template:PatternDownload: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
If number of rules is not computed, display "Unknown".
MediaWiki appears to distinguish between unspecified and specified-but-empty template parameters.
Line 10: Line 10:
{{!}}-
{{!}}-
! All rules
! All rules
{{!}} style="text-align:right;" {{!}} {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{{rulemin|unknown}}} – {{{rulemax|unknown}}}}}
{{!}} style="text-align:right;" {{!}} {{#ifeq: {{{rulemin|}}} | {{{rulemax|}}} | {{{rulemax|}}} only | {{#if:{{{rulemin|}}}|{{{rulemin}}}|unknown}} – {{#if:{{{rulemax|}}}|{{{rulemax}}}||unknown}}}}
{{#if: {{{rulespecial|}}} | {{!}}-
{{#if: {{{rulespecial|}}} | {{!}}-
! Important rules
! Important rules

Revision as of 00:09, 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.