Difference between revisions of "Template:Death year category header"
Jump to navigation
Jump to search
imported>BrownHairedGirl |
imported>BrownHairedGirl (add [[Category:{{{1|}}}{{{2|1}}} endings]] if it exists) |
||
| Line 6: | Line 6: | ||
<!-- 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 |}}{{{1|}}}{{{2|1}}}|Deaths]] | [[Category:{{#ifexpr: {{{1|}}}{{{2|1}}} <= 10 | AD |}}{{{1|}}}{{{2|1}}}|Deaths]] | ||
| − | [[Category:{{{1|}}}0s deaths|#{{ | + | [[Category:{{{1|}}}0s deaths|#{{{1|}}}{{{2|1}}}]] |
| − | [[Category:Deaths by year]] | + | [[Category:Deaths by year|{{{1|}}}{{{2|1}}}]] |
| − | }}</includeonly><!-- | + | {{#ifexist: Category:{{{1|}}}{{{2|1}}} endings<!-- |
| + | -->|[[Category:{{{1|}}}{{{2|1}}} endings{{!}}{{{1|}}}{{{2|1}}}]]<!-- | ||
| + | -->}}<!-- | ||
| + | -->}}</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> | ||
Revision as of 20:48, 11 March 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
{{Death category header}}{{Deathyr}}
See also
| The above documentation is transcluded from Template:Death year category header/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |