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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
imported>BrownHairedGirl
({{Navseasoncats with decades below year}} no longer needs any parameters)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- Current template applies "AD" prefix to years 1…100 per RfC decision on [[Talk:AD 1]] -->
+
<includeonly><!--
 +
-->{{Portal<!--
 +
      -->|Biography<!--
 +
      -->|{{FindYDCportal|{{{1|}}}{{{2|1}}}}}<!--
 +
-->}}<!--
 +
Current template applies "AD" prefix to years 1…100 per RfC decision on [[Talk:AD 1]] -->
 
'''People who died''' in the year '''[[{{Year article|{{{1|}}}{{{2|1}}}}}]]'''.<br />''See also:'' [[:Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&nbsp;|}}{{{1|}}}{{{2|1}}} births|{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&nbsp;|}}{{{1|}}}{{{2|1}}} births]].<!--  
 
'''People who died''' in the year '''[[{{Year article|{{{1|}}}{{{2|1}}}}}]]'''.<br />''See also:'' [[:Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&nbsp;|}}{{{1|}}}{{{2|1}}} births|{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&nbsp;|}}{{{1|}}}{{{2|1}}} births]].<!--  
 
Current template links to categories AD 1 births…AD 10 births, 11 births…100 births. It will need an update after [[:Category:11 births]]..[[:Category:99 births]] are replaced by decades categories.  
 
Current template links to categories AD 1 births…AD 10 births, 11 births…100 births. It will need an update after [[:Category:11 births]]..[[:Category:99 births]] are replaced by decades categories.  
-->{{Navseasoncats with decades below year||{{{1|}}}{{{2|1}}}| deaths}}
+
-->{{Navseasoncats with decades below year}}
 
{{#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 | AD&nbsp;|}}{{{1|}}}{{{2|1}}}|Deaths]]
+
[[Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD&#32;|}}{{{1|}}}{{{2|1}}} endings|Deaths]]
[[Category:{{{1|}}}0s deaths|#{{PAGENAME}}]]
+
[[Category:{{{1|}}}0s deaths|#{{{1|}}}{{{2|1}}}]]
[[Category:Deaths by year]]
+
[[Category:Deaths by year|{{{1|}}}{{{2|1}}}]]<!--
}}</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
 
-->{{CatAutoTOC}}<noinclude>
 
-->{{CatAutoTOC}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:04, 19 August 2020

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