Template:PatternPopulationAndBoundingBox: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
-->{{#if: {{{c|}}} | <tr>
-->{{#if: {{{c|}}} | <tr>
<th> Number of [[cell]]s </th>
<th> Number of [[cell]]s </th>
<td> {{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | {{{c}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]]
<td> {{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | {{{c}}} | {{cells|{{{c}}}}} }} | Unknown }} </td></tr>
{{#if: {{{periodic|}}} | {{#ifeq:{{NAMESPACE}}|User|| [[Category:Periodic objects with minimum population 1000 or more]] }} }} | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }} | Unknown }} </td></tr>
}}<!--
}}<!--



Revision as of 22:55, 10 May 2021

This template displays the population and bounding box in the infobox 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.