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

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(create documentation)
 
imported>BrownHairedGirl
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{documentation subpage}}
 
<!-- 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 ==
The following code will generate a "dead by decade" category header for the 1840s:
+
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}}
 
</pre>
 
</pre>
 +
 +
The parameters are:
 +
#All the digits of the decade except the last 2
 +
#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.)
  
 
==Redirects==
 
==Redirects==
Line 11: Line 16:
  
 
== See also ==
 
== See also ==
*[[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