Template:PatternPopulationAndBoundingBox: Difference between revisions
Jump to navigation
Jump to search
only main namespace |
|||
| Line 13: | Line 13: | ||
-->{{#if: {{{bx|}}}{{{by|}}} | <tr> | -->{{#if: {{{bx|}}}{{{by|}}} | <tr> | ||
<th> [[Bounding box]] </th> | <th> [[Bounding box]] </th> | ||
<td> {{#if: {{{bx|}}} | {{{bx}}}×{{{by}}} | Unknown [[Category:Patterns with unknown bounding box]] }} </td></tr> | <td> {{#if: {{{bx|}}} | {{{bx}}}×{{{by}}} | Unknown {{#if:{{NAMESPACE}}||[[Category:Patterns with unknown bounding box]]}} }} </td></tr> | ||
}}<!-- | }}<!-- | ||
| Line 26: | Line 26: | ||
-->{{#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]] }} }} | [[Category:Patterns with unknown population]] }} | {{#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: {{{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> | ||
Revision as of 02:00, 2 October 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.