Difference between revisions of "Template:DisestcatCountry/doc"
imported>Fayenatic london (→Usage: link to example categories) |
imported>WOSlinker m (add {{documentation subpage}}) |
||
| Line 1: | Line 1: | ||
| + | {{documentation subpage}} | ||
=== Usage === | === Usage === | ||
'''<nowiki>{{</nowiki>DisestcatCountry|''''' YYY | Y | country [ | sort key [ | new name ]] ''}} | '''<nowiki>{{</nowiki>DisestcatCountry|''''' YYY | Y | country [ | sort key [ | new name ]] ''}} | ||
Revision as of 13:26, 1 November 2018
| 40px | This is a documentation subpage for Template:DisestcatCountry. It contains usage information, categories and other content that is not part of the original template page. |
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.
As of September 2015[update] 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 (Template:PAGESINCATEGORY pages) — where Template:DisestcatCountry has been used in a "Category:YYYY establishments in Foo"
- Category:DisestcatCountry used inappropriately (Template:PAGESINCATEGORY 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