Difference between revisions of "Template:BirthdecadeBC"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(Year categories for 12th–9th centuries BC were merged at CFD in 2017)
imported>WOSlinker
(tidy style for better HTML5 compatibility)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
{{#ifexist:Category:{{{1}}}{{{2}}}0s BC deaths |''See also:'' [[:Category:{{{1}}}{{{2}}}0s BC deaths]].}}
 
{{#ifexist:Category:{{{1}}}{{{2}}}0s BC deaths |''See also:'' [[:Category:{{{1}}}{{{2}}}0s BC deaths]].}}
  
{| class="toccolours" align=center
+
{| class="toccolours" style="margin:1em auto;"
|[[:Category:{{#expr:{{{1}}}+1}}00s BC births|<<]]
+
|{{LinkCatIfExists2|{{#expr:{{{1}}}+1}}00s BC births|←}}
 
|[[:Category:{{{3}}}-century BC births|{{{3}}}-century BC births]]:  
 
|[[:Category:{{{3}}}-century BC births|{{{3}}}-century BC births]]:  
|[[:Category:{{{1}}}90s BC births|{{{1}}}90s]]–[[:Category:{{{1}}}80s BC births|{{{1}}}80s]]–[[:Category:{{{1}}}70s BC births|{{{1}}}70s]]–[[:Category:{{{1}}}60s BC births|{{{1}}}60s]]–[[:Category:{{{1}}}50s BC births|{{{1}}}50s]]–[[:Category:{{{1}}}40s BC births|{{{1}}}40s]]–[[:Category:{{{1}}}30s BC births|{{{1}}}30s]]–[[:Category:{{{1}}}20s BC births|{{{1}}}20s]]–[[:Category:{{{1}}}10s BC births|{{{1}}}10s]]–[[:Category:{{{1}}}{{#if:{{{1}}}|0|}}0s BC births|{{{1}}}{{#if:{{{1}}}|0|}}0s]]
+
|{{LinkCatIfExists2|{{{1}}}90s BC births|{{{1}}}90s}} • {{LinkCatIfExists2|{{{1}}}80s BC births|{{{1}}}80s}} • {{LinkCatIfExists2|{{{1}}}70s BC births|{{{1}}}70s}} • {{LinkCatIfExists2|{{{1}}}60s BC births|{{{1}}}60s}} • {{LinkCatIfExists2|{{{1}}}50s BC births|{{{1}}}50s}} • {{LinkCatIfExists2|{{{1}}}40s BC births|{{{1}}}40s}} • {{LinkCatIfExists2|{{{1}}}30s BC births|{{{1}}}30s}} • {{LinkCatIfExists2|{{{1}}}20s BC births|{{{1}}}20s}} • {{LinkCatIfExists2|{{{1}}}10s BC births|{{{1}}}10s}} • {{LinkCatIfExists2|{{{1}}}{{#if:{{{1}}}|0|}}0s BC births|{{{1}}}{{#if:{{{1}}}|0|}}0s}}
|{{#ifeq: {{{3}}} | 1st | [[:Category:0s births|>>]] | {{#ifeq: {{{3}}} | 2nd | [[:Category:90s BC births|>>]] | [[:Category:{{#expr:{{{1}}}-1}}90s BC births|>>]] }}}}
+
|{{#ifeq: {{{3}}} | 1st | [[:Category:0s births|]] | {{#ifeq: {{{3}}} | 2nd | [[:Category:90s BC births|]] | {{LinkCatIfExists2|{{#expr:{{{1}}}-1}}90s BC births|→}} }}}}
 
|}
 
|}
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|
 
{{#if: {{{1|}}} | {{#ifexpr: {{{1}}} < 8 |[[Category:{{{1}}}{{{2}}}0s BC|Births]]}} | [[Category:{{{2}}}0s BC|Births]]}}
 
{{#if: {{{1|}}} | {{#ifexpr: {{{1}}} < 8 |[[Category:{{{1}}}{{{2}}}0s BC|Births]]}} | [[Category:{{{2}}}0s BC|Births]]}}
 
[[Category:{{{3}}}-century BC births| {{PAGENAME}}]]
 
[[Category:{{{3}}}-century BC births| {{PAGENAME}}]]
 +
[[Category:Births by decade|-{{PAGENAME}}]]
 
}}</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 12:10, 12 October 2018

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

Usage

This template is for use on category pages for births by decade BC.

To create such a page, add

{{birthdecadeBC|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 births in the 690s BC, add

{{birthdecadeBC|6|9|7th}}

The template will put the category into a parent category for births in that decade, e.g. Category:7th-century BC births.

For years in the 12th 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 were born in the 690s BC.


7th-century BC births: 690s • 680s • 670s • 660s • 650s • 640s • 630s • 620s • 610s • 600s


People who were born in the 10s BC.


1st-century BC births: 90s • 80s • 70s • 60s • 50s • 40s • 30s • 20s • 10s • 0s


See also