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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
([[Category:{{{1}}}{{{2}}}0s endings]])
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><!--
{| class="toc plainlinks" style="float: right;"
+
-->People who died in the decade '''[[{{Decade link|{{{1}}}{{{2}}}0}}]]'''.<br />''See also: [[:Category:{{{1}}}{{{2}}}0s births]].''
|-
+
{{Navseasoncats with centuries below decade}}
| [[:Category:{{#expr:{{{1}}}-1}}90s deaths|<<]]
+
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
| [[:Category:{{{3}}}-century deaths|{{{3}}}-century deaths]]:
+
[[Category:{{{1}}}{{{2}}}0s endings|Deaths]]
| [[:Category:{{{1}}}00s deaths|{{{1}}}00s]]–[[:Category:{{{1}}}10s deaths|{{{1}}}10s]]–[[:Category:{{{1}}}20s deaths|{{{1}}}20s]]–[[:Category:{{{1}}}30s deaths|{{{1}}}30s]]–[[:Category:{{{1}}}40s deaths|{{{1}}}40s]]–[[:Category:{{{1}}}50s deaths|{{{1}}}50s]]–[[:Category:{{{1}}}60s deaths|{{{1}}}60s]]–[[:Category:{{{1}}}70s deaths|{{{1}}}70s]]–[[:Category:{{{1}}}80s deaths|{{{1}}}80s]]–[[:Category:{{{1}}}90s deaths|{{{1}}}90s]]
 
| [[:Category:{{#expr:{{{1}}}+1}}00s deaths|>>]]
 
|}
 
 
 
People who died in the '''[[{{{1}}}{{#ifeq:{{{2}}} | 0 | {{{2}}}0–{{{1}}}{{{2}}}9{{!}}{{{1}}}}}{{{2}}}0s]]'''.<br>
 
''See also:'' [[:Category:{{{1}}}{{{2}}}0s births]].  
 
 
 
[[Category:{{{1}}}{{{2}}}0s|Deaths]]
 
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
+
[[Category:Deaths by decade|{{{1}}}{{{2}}}0s]]
</includeonly>
+
-->}}</includeonly><!--
<noinclude>
+
# Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
{{doc|content=
+
-->{{CatAutoTOC}}<noinclude>
==How to use==
+
{{documentation}}
The following code will generate a "dead by decade" category header for the 1840s:
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
<pre>
 
{{Death decade|18|4|19th}}
 
</pre>
 
 
 
[[Category:People and person templates|{{PAGENAME}}]]
 
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
 
}}
 
 
</noinclude>
 
</noinclude>

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