Difference between revisions of "Template:Death decade category header"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
m (BrownHairedGirl moved page Template:Death decade to Template:Death decade category header: for clarity and consistency)
imported>BrownHairedGirl
([[Category:{{{1}}}{{{2}}}0s endings]])
 
Line 3: Line 3:
 
{{Navseasoncats with centuries below decade}}
 
{{Navseasoncats with centuries below decade}}
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
[[Category:{{{1}}}{{{2}}}0s|Deaths]]
+
[[Category:{{{1}}}{{{2}}}0s endings|Deaths]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
[[Category:Deaths by decade|{{{1}}}{{{2}}}0s]]
 
[[Category:Deaths by decade|{{{1}}}{{{2}}}0s]]
{{#ifexist: Category:{{{1}}}{{{2}}}0s endings<!--
 
    -->|[[Category:{{{1}}}{{{2}}}0s endings{{!}}Deaths]]<!--
 
-->}}<!--
 
 
-->}}</includeonly><!--
 
-->}}</includeonly><!--
 
  # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
 
  # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded

Latest revision as of 00:41, 15 March 2020

Usage

To add this template to, for example, Category:1840s deaths, use the following command:

{{Death decade|18|4|19th}}

The parameters are:

  1. All the digits of the decade except the last 2
  2. The next-to-last digit of the decade
  3. The century the decade is in, as an ordinal number (e.g., 1st, 2nd, 3rd, 19th, etc.)

Redirects

See also