Template:Establishment category in country by century
Usage
{{Establishment category in country by century|| country [ | sort key ] [ |decades=yes ] [ |no-table=yes ] }}
Examples
{{Establishment category in country by century|the United States|United States}} – for Category:20th-century establishments in the United States
{{Establishment category in country by century|China}} – for Category:1st-century establishments in China
{{Establishment category in country by century|the Byzantine Empire|Byzantine Empire|decades=yes}} – for Category:5th-century establishments in the Byzantine Empire
Parent categories
The template generates appropriate parent categories. Two of these are only generated conditionally:
- "Establishments in [Foo] by century" is only generated if it exists; if it does not exist, the century category will be placed directly in "Establishments in [Foo]", e.g. Category:Establishments in the Burgundian Netherlands (see CFD discussion).
- "Xth-millennium establishments in [Foo]" is only generated if it exists (via {{category if exists}}).
Table of decades and years
A table of decades and years will be produced if the century is 11th or later. This can be suppressed by appending the parameter |no-table=yes
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
From 2015 to January 2022, this template took an optional parameter for a new name of the country. That parameter is now obsolete, as the template makes use of category redirects instead.
If the default parent category "Establishments in 'X' by century" is a category redirect page, the template will resolve the category redirect, i.e. it will use the target page with the new name instead. Similarly, it will resolve a redirect on the millennium parent.
- Example
{{EstcatCountryCentury|Burma}}
The parent categories will be Category:Establishments in Myanmar by century and Category:2nd-millennium establishments in Myanmar, because the default category names Category:Establishments in Burma by century and Category:2nd-millennium establishments in Burma are both redirected to the corresponding names using "Myanmar".
To resolve links using redirects at every decade and year when an old country name was in use, use {{EstcatCountryCentury/resolve}}, e.g. as at Category:18th-century establishments in Siam.
Where a different result is desired, it may be best to create a specific template like those in Category:20th-century establishments templates by country. Some centuries in some countries have one-off tailored versions instead – see this template's talk page for examples.
See also
- Template:Establishment category in country
- Template:Establishment category in country by decade
- Template:Second millennium establishment category in country
- Template:Third millennium establishment category in country
- Template:US state (dis)establishment category by century
- Template:Disestablishment category in country by century