Template:PatternPopulationAndBoundingBox: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Confocal (talk | contribs)
revert undiscussed changes, see Template talk:Spaceship
Tag: Undo
Undo revision 136505 by Confocal (talk) The changes have now been discussed, and more people agree with them than not.
Tag: Undo
Line 19: Line 19:
-->{{#if: {{{fc|}}} | <tr>
-->{{#if: {{{fc|}}} | <tr>
<th> [[Frequency class]] </th>
<th> [[Frequency class]] </th>
<td> [[:Category:Patterns with Catagolue frequency class {{#expr: floor {{{fc}}}}}|{{{fc}}}]] {{#ifeq:{{NAMESPACE}}|User|| [[Category:Patterns with Catagolue frequency class {{#expr: floor {{{fc}}}}}]] [[Category:Natural periodic objects]] }} </td></tr>
<td> {{#if:{{NAMESPACE}}|{{{fc}}}|[[:Category:Patterns with Catagolue frequency class {{#expr: floor {{{fc}}}}}|{{{fc}}}]] [[Category:Patterns with Catagolue frequency class {{#expr: floor {{{fc}}}}}]] [[Category:Natural periodic objects]]}}</td></tr>
}}<!--
}}<!--


Categories
Categories


-->{{#ifeq:{{NAMESPACE}}|User||
-->{{#if:{{NAMESPACE}}||
{{#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: {{{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 22:41, 4 September 2023

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.