Difference between revisions of "Template:DisestcatCountryCentury/doc"

From blackwiki
Jump to navigation Jump to search
imported>PanchoS
m (refine categorization)
imported>Fayenatic london
(update)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==
'''<nowiki>{{</nowiki>DisestcatCountryCentury|''''' YY | century | previous century | next century | [ millennium ] | country [ | sort key [ | new name ]] ''}}
+
'''<nowiki>{{</nowiki>DisestcatCountryCentury|''''' YY | century | previous century | next century | [ millennium ] | country [ | sort key [ | new name ]]  [ |decades=yes ] ''}}
  
 
;Examples
 
;Examples
Line 8: Line 8:
 
'''<nowiki>{{</nowiki>DisestcatCountryCentury|19|20th|19th|21st|2nd|the United States|United States<nowiki>}}</nowiki>''' – for Category:20th-century disestablishments in the United States
 
'''<nowiki>{{</nowiki>DisestcatCountryCentury|19|20th|19th|21st|2nd|the United States|United States<nowiki>}}</nowiki>''' – for Category:20th-century disestablishments in the United States
  
'''<nowiki>{{</nowiki>DisestcatCountryCentury|20|21st|20th|22nd|3rd|Belgium<nowiki>}}</nowiki>''' – for Category:21st-century disestablishments in Belgium
+
'''<nowiki>{{</nowiki>DisestcatCountryCentury|0|1st|1st BC|2nd|1st|China<nowiki>}}</nowiki>''' – for Category:1st-century disestablishments in China
 +
 
 +
'''<nowiki>{{</nowiki>DisestcatCountryCentury|4|5th|4th|6th|1st|the Roman Empire|Roman Empire|decades=yes<nowiki>}}</nowiki>''' – for [[:Category:5th-century disestablishments in the Roman Empire]]
  
 
The 5th parameter is optional. If it is omitted, the millennium category will not be populated; e.g. '''<nowiki>{{</nowiki>DisestcatCountryCentury|15|16th|15th|17th||Aragon<nowiki>}}</nowiki>''' will '''not''' put the century category into a parent [[:Category:2nd-millennium disestablishments in Aragon]]. Consensus at [[WP:CFD]] discussions points to not having millennium categories for territories that only existed during one millennium.
 
The 5th parameter is optional. If it is omitted, the millennium category will not be populated; e.g. '''<nowiki>{{</nowiki>DisestcatCountryCentury|15|16th|15th|17th||Aragon<nowiki>}}</nowiki>''' will '''not''' put the century category into a parent [[:Category:2nd-millennium disestablishments in Aragon]]. Consensus at [[WP:CFD]] discussions points to not having millennium categories for territories that only existed during one millennium.
 +
 +
===Table of decades and years===
 +
A table of decades and years will be produced if the century is 11th or later.
 +
 +
Note that categories for decades and years by country before the 11th century are generally deprecated following a series of CFD discussions in 2017, e.g. [[Wikipedia:Categories for discussion/Log/2017 October 3]].
 +
 +
However, decade categories were not merged for the Roman Empire or Byzantine Empire. To display a list of decade categories (but not years), append the parameter <code>|decades=yes</code>
  
 
===Change of country name===
 
===Change of country name===
Line 30: Line 39:
 
* [[Template:DisestcatCountry3rdMillennium]]
 
* [[Template:DisestcatCountry3rdMillennium]]
 
* [[Template:DisestcatUSstateCentury]]
 
* [[Template:DisestcatUSstateCentury]]
 
+
* [[Template:EstcatCountryCentury]]
  
 
<includeonly>
 
<includeonly>
 
[[Category:Disestablishments-by-century templates]]
 
[[Category:Disestablishments-by-century templates]]
 
</includeonly>
 
</includeonly>

Revision as of 09:25, 18 October 2017

Usage

{{DisestcatCountryCentury| YY | century | previous century | next century | [ millennium ] | country [ | sort key [ | new name ]] [ |decades=yes ] }}

Examples

{{DisestcatCountryCentury|19|20th|19th|21st|2nd|the United States|United States}} – for Category:20th-century disestablishments in the United States

{{DisestcatCountryCentury|0|1st|1st BC|2nd|1st|China}} – for Category:1st-century disestablishments in China

{{DisestcatCountryCentury|4|5th|4th|6th|1st|the Roman Empire|Roman Empire|decades=yes}} – for Category:5th-century disestablishments in the Roman Empire

The 5th parameter is optional. If it is omitted, the millennium category will not be populated; e.g. {{DisestcatCountryCentury|15|16th|15th|17th||Aragon}} will not put the century category into a parent Category:2nd-millennium disestablishments in Aragon. Consensus at WP:CFD discussions points to not having millennium categories for territories that only existed during one millennium.

Table of decades and years

A table of decades and years will be produced if the century is 11th or later.

Note that categories for decades and years by country before the 11th century are generally deprecated following a series of CFD discussions in 2017, e.g. Wikipedia:Categories for discussion/Log/2017 October 3.

However, decade categories were not merged for the Roman Empire or Byzantine Empire. To display a list of decade categories (but not years), append the parameter |decades=yes

Change of country name

The optional 8th parameter sort key can also be used to override the country name in the parent categories, "Disestablishments in 'X' by century" and "Nth-millennium disestablishments in 'X'".

This is useful where a country has changed its name, and the only parent categories by century & millennium use the new name..

As of September 2015 this is a new feature. Please leave a note at Template talk:EstcatCountry if you use this parameter, in case it changes.

Example

{{DisestcatCountryCentury|18|19th|18th|20th|2nd|Burma|Burma|Myamnar}}

The parent categories will be Category:Disestablishments in Myanmar by century and Category:2nd-millennium disestablishments in Myanmar.

See also