قالب:DisestcatCountry
Usage
{{DisestcatCountry| YYY | Y | country [ | sort key [ | new name ]] }}
- Examples
{{DisestcatCountry|199|3|the United States|United States}} for Category:1993 disestablishments in the United States
{{DisestcatCountry|200|7|Belgium}} for Category:2007 disestablishments in Belgium
Change of country name
The 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.
اعتبارا من 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
{{disestcatCountry|194|8|Burma|Burma|Myanmar}}
The parent categories will be Category:Disestablishments in Myanmar by year, but still Category:1940s disestablishments in Burma.
Disambiguation
If 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|194|6|Malaya|Malaya|dab=Malayan Union}}
Error checking
Error 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
- 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
The above documentation is transcluded from قالب:DisestcatCountry/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |