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

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(See also)
imported>Wbm1058
(moving documentation to subpage)
Line 11: Line 11:
 
''See also:'' [[:Category:{{{1}}}{{{2}}}0s births]].  
 
''See also:'' [[:Category:{{{1}}}{{{2}}}0s births]].  
  
 +
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
[[Category:{{{1}}}{{{2}}}0s|Deaths]]
 
[[Category:{{{1}}}{{{2}}}0s|Deaths]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
[[Category:{{{3}}}-century deaths|#{{PAGENAME}}]]
 
+
}}</includeonly><noinclude>
</includeonly><noinclude>
+
{{documentation}}
{{doc|content=
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
==How to use==
 
The following code will generate a "dead by decade" category header for the 1840s:
 
<pre>
 
{{Death decade|18|4|19th}}
 
</pre>
 
 
 
==Redirects==
 
*{{tlx|deathdecade}}
 
 
 
== See also ==
 
*[[Template:Death year category header]]
 
*[[Template:DeathdecadeBC]]
 
*[[Template:Birthdecade]]
 
 
 
[[Category:People and person templates|{{PAGENAME}}]]
 
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
 
}}
 
 
</noinclude>
 
</noinclude>

Revision as of 19:58, 17 February 2017

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