Template:PatternPopulationAndBoundingBox: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Experimental change to templates per agreement at https://conwaylife.com/forums/viewtopic.php?p=166781#p166781 -- issue not considered resolved until (at minimum) review in a week or two
Tag: Undo
 
(13 intermediate revisions by 3 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}}}]]
<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>
}}<!--
}}<!--


Line 13: Line 12:
-->{{#if: {{{bx|}}}{{{by|}}} | <tr>
-->{{#if: {{{bx|}}}{{{by|}}} | <tr>
<th> [[Bounding box]] </th>
<th> [[Bounding box]] </th>
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown [[Category:Patterns with unknown bounding box]] }} </td></tr>
<td> {{#if: {{{bx|}}} | {{times|{{{bx}}}|{{{by}}}}} | Unknown {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown bounding box]]}} }} </td></tr>
}}<!--
}}<!--


Line 20: Line 19:
-->{{#if: {{{fc|}}} | <tr>
-->{{#if: {{{fc|}}} | <tr>
<th> [[Frequency class]] </th>
<th> [[Frequency class]] </th>
<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>
<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}}})}} | | {{#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]] }} }} | [[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|}}} | | [[Category:Patterns with unknown bounding box]] }}
{{#if: {{{bx|}}}{{{by|}}} | | {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown bounding box]]}} }}
}}<!--
}}<!--


Documentation
Documentation {{#if:{{NAMESPACE}}||}}


--></includeonly><noinclude>
--></includeonly><noinclude>
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.
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.


[[Category:Infobox templates]]
[[Category:Infobox subtemplates]]
</noinclude>
</noinclude>

Latest revision as of 15:19, 10 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.