Changes
Jump to navigation
Jump to search
Template:Century in country category/doc (view source)
Revision as of 20:16, 30 July 2018
, 6 years agoMismatched formatting repaired
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
'''{{tlx|Century in country category|''centuryyear'' | ''centuryname'' | ''previous century'' | ''next century'' | [ ''millennium'' ] | ''country'' | [ ''sort key'' ] | [ ''continent'' ] [ | ''region1'' ] [ | ''region2'' ] [ | ''region3'' ] [ | ''region4'' ] [ | ''newname=NEWNAME'' ]] [ |''decades=yes'' ] [ |''no-table=yes'' ] }}'''<br>
;where
*'''''centuryyear''''' is the two-digit century, like '''18''' for 1801 to 1900, '''19''' for 1901–2000, '''20''' for 2001–2100 etc.<br>
*'''''centuryname''''' is the equivalent name of that century, such as '''19th''' for the period 1801–1900, '''20th''' for 1901–2000, '''21st''' for 2001–2100 etc.<br>
;Examples
'''<nowiki>{{</nowiki>Century in country category|19|20th|19th|21st|2nd|the United Kingdom|United Kingdom|Europe<nowiki>}}</nowiki>''' – for [[:Category:20th century in the United Kingdom]]
'''<nowiki>{{</nowiki>Century in country category|0|1st|1st BC|2nd|1st|China||Asia<nowiki>}}</nowiki>''' – for [[:Category:1st century in China]]
'''<nowiki>{{</nowiki>Century in country category|4|5th|4th|6th|1st|the Roman Empire|Roman Empire|decades=yes<nowiki>}}</nowiki>''' – for [[:Category:5th century in the Roman Empire]]
The 5th parameter is optional. If it is omitted, the millennium category will not be populated; e.g. '''<nowiki>{{</nowiki>Century in country category|15|16th|15th|17th||Aragon||Europe<nowiki>}}</nowiki>''' will '''not''' put the century category into a parent [[:Category:2nd millennium in Aragon]]. Consensus at [[WP:CFD]] discussions points to not having millennium categories for territories that only existed during one millennium.
==== Optional parameters ====
* the 9th to 12th parameters can be used to add parent categories for a second continent or regions, empires etc.
* <code>|newname=NEWNAME</code> can also be used to override the country name in the parent category "Nth millennium in 'X'". This is useful where a country has changed its name, and the parent category by millennium uses the new name.
* <code>|decades=yes</code> – shows a line of links to decades
* <code>|no-table=yes</code> – omits the table of links to decades and years
=== See also ===
* {{tl|EstcatCountryCentury}} for things founded established in the century
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
}}</includeonly>
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
'''{{tlx|Century in country category|''centuryyear'' | ''centuryname'' | ''previous century'' | ''next century'' | [ ''millennium'' ] | ''country'' | [ ''sort key'' ] | [ ''continent'' ] [ | ''region1'' ] [ | ''region2'' ] [ | ''region3'' ] [ | ''region4'' ] [ | ''newname=NEWNAME'' ]] [ |''decades=yes'' ] [ |''no-table=yes'' ] }}'''<br>
;where
*'''''centuryyear''''' is the two-digit century, like '''18''' for 1801 to 1900, '''19''' for 1901–2000, '''20''' for 2001–2100 etc.<br>
*'''''centuryname''''' is the equivalent name of that century, such as '''19th''' for the period 1801–1900, '''20th''' for 1901–2000, '''21st''' for 2001–2100 etc.<br>
;Examples
'''<nowiki>{{</nowiki>Century in country category|19|20th|19th|21st|2nd|the United Kingdom|United Kingdom|Europe<nowiki>}}</nowiki>''' – for [[:Category:20th century in the United Kingdom]]
'''<nowiki>{{</nowiki>Century in country category|0|1st|1st BC|2nd|1st|China||Asia<nowiki>}}</nowiki>''' – for [[:Category:1st century in China]]
'''<nowiki>{{</nowiki>Century in country category|4|5th|4th|6th|1st|the Roman Empire|Roman Empire|decades=yes<nowiki>}}</nowiki>''' – for [[:Category:5th century in the Roman Empire]]
The 5th parameter is optional. If it is omitted, the millennium category will not be populated; e.g. '''<nowiki>{{</nowiki>Century in country category|15|16th|15th|17th||Aragon||Europe<nowiki>}}</nowiki>''' will '''not''' put the century category into a parent [[:Category:2nd millennium in Aragon]]. Consensus at [[WP:CFD]] discussions points to not having millennium categories for territories that only existed during one millennium.
==== Optional parameters ====
* the 9th to 12th parameters can be used to add parent categories for a second continent or regions, empires etc.
* <code>|newname=NEWNAME</code> can also be used to override the country name in the parent category "Nth millennium in 'X'". This is useful where a country has changed its name, and the parent category by millennium uses the new name.
* <code>|decades=yes</code> – shows a line of links to decades
* <code>|no-table=yes</code> – omits the table of links to decades and years
=== See also ===
* {{tl|EstcatCountryCentury}} for things founded established in the century
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
}}</includeonly>