Difference between revisions of "Template:Birth year category header/doc"

From blackwiki
Jump to navigation Jump to search
imported>소언예
m
imported>BrownHairedGirl
(Birth year category header)
Line 13: Line 13:
  
 
To create such a page, add
 
To create such a page, add
<pre>{{birthyr|D|Y}}</pre>
+
<pre>{{Birth year category header|D|Y}}</pre>
 
where D is the year without the last digit, and Y is the last digit of the year.  
 
where D is the year without the last digit, and Y is the last digit of the year.  
  
 
For example, for births in year 2017, add  
 
For example, for births in year 2017, add  
<pre>{{birthyr|201|7}}</pre>
+
<pre>{{Birth year category header|201|7}}</pre>
  
 
The template will put the category into a parent category for births in that decade, [[:Category:2010s births]], as well as the category for events in that year.
 
The template will put the category into a parent category for births in that decade, [[:Category:2010s births]], as well as the category for events in that year.

Revision as of 19:31, 11 March 2020

People born in the year [[Template:Year article]].
See also: 1685 deaths. Template:Navseasoncats with decades below year


People born in the year [[Template:Year article]].
See also: AD  1 deaths. Template:Navseasoncats with decades below year


People born in the year [[Template:Year article]].
See also: AD 10 deaths. Template:Navseasoncats with decades below year


Usage

This template is for use on category pages for births by year in the Common Era.

To create such a page, add

{{Birth year category header|D|Y}}

where D is the year without the last digit, and Y is the last digit of the year.

For example, for births in year 2017, add

{{Birth year category header|201|7}}

The template will put the category into a parent category for births in that decade, Category:2010s births, as well as the category for events in that year.

Redirects

Subtemplate

See also