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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
({{Navseasoncats with centuries below decade}} {{CatAutoTOC}})
imported>BrownHairedGirl
(add decade endings cat if it exists)
Line 7: Line 7:
 
[[Category:{{{1}}}{{{2}}}0s|Deaths]]
 
[[Category:{{{1}}}{{{2}}}0s|Deaths]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 +
{{#ifexist: Category:{{{1}}}{{{2}}}0s endings<!--
 +
    -->|[[Category:{{{1}}}{{{2}}}0s endings{{!}}Deaths]]<!--
 +
-->}}
 +
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 15:24, 11 March 2020

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

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