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

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(change sort key in "NNNN beginnings" from year to "Births")
imported>BrownHairedGirl
([[Category:{{{1|}}}{{{2|1}}} beginnings]])
Line 9: Line 9:
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
<!-- Current template links to categories AD 1…AD 10, 11… -->
 
<!-- Current template links to categories AD 1…AD 10, 11… -->
[[Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&nbsp;|}}{{{1|}}}{{{2|1}}}|Births]]
 
 
[[Category:{{{1|}}}0s births|#{{{1|}}}{{{2|1}}}]]
 
[[Category:{{{1|}}}0s births|#{{{1|}}}{{{2|1}}}]]
 
[[Category:Births by year|{{{1|}}}{{{2|1}}}]]
 
[[Category:Births by year|{{{1|}}}{{{2|1}}}]]
{{#ifexist: Category:{{{1|}}}{{{2|1}}} beginnings<!--
+
[[Category:{{{1|}}}{{{2|1}}} beginnings{{!}}Births]]<!--
    -->|[[Category:{{{1|}}}{{{2|1}}} beginnings{{!}}Births]]<!--
 
-->}}<!--
 
 
-->}}</includeonly><!--
 
-->}}</includeonly><!--
 
  # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
 
  # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded

Revision as of 20:00, 14 March 2020

50px Template documentation[view] [edit] [history] [purge]

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