Difference between revisions of "Template:PatternPopulationAndBoundingBox"

From LifeWiki
Jump to navigation Jump to search
(no categories if in User namespace)
 
Line 6: Line 6:
 
<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}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]]
{{#if: {{{periodic|}}} | [[Category:Periodic objects with minimum population 1000 or more]] }} | [[:Category:Patterns with {{{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>
 
}}<!--
 
}}<!--
  
Line 20: 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}}}]] [[Category:Natural periodic objects]] </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>
 
}}<!--
 
}}<!--
  

Latest 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.