Difference between revisions of "Template:PatternPopulationAndBoundingBox"

From LifeWiki
Jump to navigation Jump to search
m (Link to frequency class category)
(no categories if in User namespace)
(3 intermediate revisions by 2 users not shown)
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}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }} | Unknown }} </td></tr>
<td> {{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | {{{c}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]]
{{#if: {{{periodic|}}} | {{#ifeq:{{NAMESPACE}}|User|| [[Category:Periodic objects with minimum population 1000 or more]] }} }} | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }} | Unknown }} </td></tr>
}}<!--
}}<!--


Line 19: Line 20:
-->{{#if: {{{fc|}}} | <tr>
-->{{#if: {{{fc|}}} | <tr>
<th> [[Frequency class]] </th>
<th> [[Frequency class]] </th>
<td> [[:Category:Patterns with Catagolue frequency class {{{fc}}}|{{{fc}}}]] [[Category:Patterns with Catagolue frequency class {{{fc}}}]] </td></tr>
<td> [[:Category:Patterns with Catagolue frequency class {{{fc}}}|{{{fc}}}]] {{#ifeq:{{NAMESPACE}}|User|| [[Category:Patterns with Catagolue frequency class {{{fc}}}]] [[Category:Natural periodic objects]] }} </td></tr>
}}<!--
}}<!--


Categories
Categories


-->{{#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]] }} }} }}<!--
-->{{#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]] }} }} }}
}}<!--


Documentation
Documentation

Revision as of 13:55, 27 March 2020

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.