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

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(enhanced documentation)
imported>BrownHairedGirl
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==
To add this template to, for example, [[:Category:1840 deaths]], use the following command:
+
To add this template to, for example, [[:Category:1840s deaths]], use the following command:
 
<pre>
 
<pre>
 
{{Death decade|18|4|19th}}
 
{{Death decade|18|4|19th}}
Line 11: Line 11:
 
#The next-to-last digit of the decade
 
#The next-to-last digit of the decade
 
#The century the decade is in, as an [[ordinal number (linguistics)|ordinal number]] (e.g., 1st, 2nd, 3rd, 19th, etc.)
 
#The century the decade is in, as an [[ordinal number (linguistics)|ordinal number]] (e.g., 1st, 2nd, 3rd, 19th, etc.)
 
== Examples ==
 
{{Death decade|18|4|19th}}
 
 
{{Death decade| |1|1st}}
 
  
 
==Redirects==
 
==Redirects==
Line 23: Line 18:
 
* [[Template:Death year category header]]
 
* [[Template:Death year category header]]
 
* [[Template:DeathdecadeBC]]
 
* [[Template:DeathdecadeBC]]
* [[Template:Birthdecade]]
+
* [[Template:Birth decade category header]]
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:People and person templates|{{PAGENAME}}]]
+
[[Category:People and person category header templates]]
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
+
[[Category:Chronology category header templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 20:35, 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