Difference between revisions of "Template:DeathdecadeBC"
imported>WOSlinker (tidy style for better HTML5 compatibility) |
imported>Dreamy Jazz (Adding Category:Deaths by decade, as this template is used for decade of death categories) |
||
| Line 12: | Line 12: | ||
{{#if: {{{1|}}} | {{#ifexpr: {{{1}}} < 8 |[[Category:{{{1}}}{{{2}}}0s BC|Deaths]]}} | [[Category:{{{2}}}0s BC|Deaths]]}} | {{#if: {{{1|}}} | {{#ifexpr: {{{1}}} < 8 |[[Category:{{{1}}}{{{2}}}0s BC|Deaths]]}} | [[Category:{{{2}}}0s BC|Deaths]]}} | ||
[[Category:{{{3}}}-century BC deaths| {{PAGENAME}}]] | [[Category:{{{3}}}-century BC deaths| {{PAGENAME}}]] | ||
| + | <includeonly>[[Category:Deaths by decade|-{{PAGENAME}}]]</includeonly> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:03, 16 June 2020
}}</includeonly>
Usage
This template is for use on category pages for deaths by decade BC.
To create such a page, add
{{deathdecadeBC|C|D|Ccc}}
where C is the century digit(s) within the year number, Y is the next digit in the year number (that specifies the decade), and Ccc is the name of the century.
For example, for deaths in the 690s BC, add
{{deathdecadeBC|6|9|7th}}
The template will put the category into a parent category for deaths in that decade, e.g. Category:7th-century BC deaths.
For years in the 8th to 1st centuries BC, it will also put the category into a parent category for events in that decade, e.g. Category:690s BC. (Year categories for 13th century BC and earlier were merged by consensus at CFD in 2015, but the year and decade categories for births and deaths were recreated following an RFC on biographies. Year categories for 12th–9th centuries BC were merged at CFD in 2017.)
Examples
People who died in the 690s BC.
| ← | 7th-century BC deaths: | 690s • 680s • 670s • 660s • 650s • 640s • 630s • 620s • 610s • 600s | → |
People who died in the 10s BC.
| ← | 1st-century BC deaths: | 90s • 80s • 70s • 60s • 50s • 40s • 30s • 20s • 10s • 0s | → |
See also
| The above documentation is transcluded from Template:DeathdecadeBC/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |