Template:DisestcatCountry
This template is used on approximately 7,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
changeIn September 2019, this template's syntax was changed to a new format which doesn't need year parameters. If used, they will now trigger an error message, and the page will be categorised in Category:Errors reported by Template DisestcatCountry (population: 0) Purge page to update total
Syntax
change{{DisestcatCountry| country [ | sort key [ | new name ]] }}
- Examples
{{DisestcatCountry|the United States|United States}} for Category:1993 disestablishments in the United States
{{DisestcatCountry|Belgium}} for Category:2007 disestablishments in Belgium
Change of country name
changeThe optional 5th parameter sort key can also be used to override the country name in the parent category, "Disestablishments in 'X' by year".
This is useful where a country has changed its name, and the only parent category by year uses the new name.
This feature was introduced in September 2015. For more info, see Template talk:EstcatCountry.
As of August 2019[update], pages that use this parameter are in Category:DisestcatCountry with newname parameter.
- Example
{{disestcatCountry|Burma|Burma|Myanmar}}
The parent categories will be Category:Disestablishments in Myanmar by year, but still Category:1940s disestablishments in Burma.
Suppressing parent category for decade
changeThe template normally adds the page into a parent for the decade. In cases where that decade category does not exist, and it would not be useful to create it because of the short duration or small number of categories for this country, append |decadeparent=no
Disambiguation
changeIf the country name used in the category title is ambiguous, use the optional named dab parameter to link to the mainspace article about the country.
- Example
{{DisestcatCountry|Malaya|Malaya|dab=Malayan Union}}
Error checking
changeError messages are display if this template is used in a which is not named "Category:YYYY disestablishments in Foo"
These errors are tracked in two tracking categories:
- Category:DisestcatCountry used in establishments category (0 pages) — where Template:DisestcatCountry has been used in a "Category:YYYY establishments in Foo"
- Category:DisestcatCountry used inappropriately (0 pages) — other misuses, including mis-spellings of "disestablishments"
See also
change- Template:DisestcatCountryDecade
- Template:DisestcatCountryCentury
- Template:DisestcatCountry2ndMillennium
- Template:DisestcatCountry3rdMillennium
- Template:DisestcatContinent
- Template:Disestcatsubcountry (for subdivisions of countries, like states, provinces, departments; or regions of continents)
- Template:DisestcatUSstate
- Template:EstcatCountry