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

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(Undid revision 759345825 by JFG (talk) done out-of-sequence)
imported>Wbm1058
(remove special handling for 100)
Line 7: Line 7:
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
<!-- Current template links to categories AD 1…AD 10, 11…99 and AD 100. It will need an update after [[:Category:11]]..[[:Category:99]] are replaced by decades categories. -->
 
<!-- Current template links to categories AD 1…AD 10, 11…99 and AD 100. It will need an update after [[:Category:11]]..[[:Category:99]] are replaced by decades categories. -->
[[Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 or {{{1|}}}{{{2|1}}} = 100 | AD&nbsp;|}}{{{1|}}}{{{2|1}}}|Deaths]]
+
[[Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&nbsp;|}}{{{1|}}}{{{2|1}}}|Deaths]]
 
[[Category:{{{1|}}}0s deaths|#{{PAGENAME}}]]
 
[[Category:{{{1|}}}0s deaths|#{{PAGENAME}}]]
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 23:42, 9 March 2017

People who died in AD 1.
See also: AD 1 births.

Template:TOC top Template:TOC bottom
Template documentation[view] [edit] [history] [purge]

Usage

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

To create such a page, add

{{Death 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 deaths in year 2017, add

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

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

Redirects

See also