Template:PatternPopulationAndBoundingBox: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:


-->{{#ifeq:{{NAMESPACE}}|User||
-->{{#ifeq:{{NAMESPACE}}|User||
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] {{#if: {{{catextra|}}} | [[Category:{{{catextra|}}} with 1000 or more cells]] }} | {{#if: {{{catextra|}}} | [[Category:{{{catextra|}}} with {{{c}}} cells]] }} [[Category:Patterns with {{{c}}} cells]] }} }} | {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown population]]}} }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#if: {{{catextra|}}} | [[Category:{{{catextra|}}} with {{CellsCategoryName|{{{c}}}}} cells]] }} {{#if: {{{periodic|}}} | [[Category:Periodic objects with minimum population {{CellsCategoryName|{{{c}}}}}]] }} [[Category:Patterns with {{CellsCategoryName|{{{c}}}}} cells]] }} | {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown population]]}} }}
{{#if: {{{bx|}}}{{{by|}}} | | {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown bounding box]]}} }}
{{#if: {{{bx|}}}{{{by|}}} | | {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown bounding box]]}} }}
}}<!--
}}<!--

Revision as of 23:01, 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.