Difference between revisions of "Template:(Dis)estCatUSstateCentury/core"

From blackwiki
Jump to navigation Jump to search
blackwiki>BrownHairedGirl
(close }})
m (6 revisions imported)
 
(4 intermediate revisions by one other user not shown)
Line 34: Line 34:
 
{{Category see also if exists|<!--
 
{{Category see also if exists|<!--
 
     -->{{Ordinal|{{{centurynum}}}}}-century {{#switch: {{{type}}}<!--
 
     -->{{Ordinal|{{{centurynum}}}}}-century {{#switch: {{{type}}}<!--
         -->|establishments=disestablishments
+
         -->|establishments=disestablishments<!--
 
         -->|disestablishments=establishments<!--
 
         -->|disestablishments=establishments<!--
     -->}} in {{{state}}}}}<!--
+
     -->}} in {{{state}}}<!--
 
-->}}
 
-->}}
  
Line 42: Line 42:
 
[[Category:{{Ordinal|{{{centurynum}}}}} century in {{{state}}}|/{{{type}}}]]
 
[[Category:{{Ordinal|{{{centurynum}}}}} century in {{{state}}}|/{{{type}}}]]
 
[[Category:{{Ordinal|{{{centurynum}}}}}-century {{{type}}} in the United States|{{{state}}}]]
 
[[Category:{{Ordinal|{{{centurynum}}}}}-century {{{type}}} in the United States|{{{state}}}]]
{{#if:{{#expr: 1 + floor({{{MC}}} / 10)}}| [[Category:{{Ordinal|{{#expr: 1 + floor({{{MC}}} / 10)}}}}-millennium {{{type}}} in {{{state}}}]]
+
{{#ifexist: Category:{{Ordinal|{{#expr: 1 + floor({{{MC}}} / 10)}}}}-millennium {{{type}}} in {{{state}}}<!--
 +
  -->| [[Category:{{Ordinal|{{#expr: 1 + floor({{{MC}}} / 10)}}}}-millennium {{{type}}} in {{{state}}}]]
 
|}}</includeonly><noinclude>
 
|}}</includeonly><noinclude>
 
{{Documentation|Template:(Dis)estCatUSstateCentury/doc}}
 
{{Documentation|Template:(Dis)estCatUSstateCentury/doc}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:59, 30 September 2020

Template documentation[view] [edit] [history] [purge]

Creates a category of the form "YYth-century establishments in Foo" or "YYth-century disestablishments in Foo", where "YY" is a 2-digit century, and "Foo" is a state of the United States.

The template detects whether this is an "establishments" or "disestablishments" category, and adjusts accordingly.

Usage

{{(Dis)estCatUSstateCentury}}

No parameters are needed.

See also