සැකිල්ල:EstcatCountry/core
මෙම සැකිල්ල පිටු 27,000 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
Usage
[සංස්කරණය]In 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 establishment and disestablishment templates (population: 0) Purge page to update total
Syntax
[සංස්කරණය]{{EstcatCountry| country [ | sort key ]}}
- Examples
{{EstcatCountry|the United States|United States}}
{{EstcatCountry|Belgium}}
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 year" 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 decade parent.
- Examples
The name Myanmar is used on all categories for 1989 onwards, and for any periods ending in or after that year, e.g. 1980s and 20th century.
For categories up to 1988, use the old name, i.e.
{{EstcatCountry|Burma}}
On Category:1988 establishments in Burma, the template generates parent categories Category:1980s establishments in Myanmar and Category:Establishments in Myanmar by year, because both Category:1980s establishments in Burma and Category:Establishments in Burma by year are category redirects to the corresponding names using Myanmar.
On Category:1906 establishments in Burma, the parent categories will be Category:1900s establishments in Burma, which is not redirected, but Category:Establishments in Myanmar by year.
Suppressing parent category for decade
[සංස්කරණය]The 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
[සංස්කරණය]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
{{estcatCountry|Malaya|dab=Malayan Union}}
Error checking
[සංස්කරණය]Error messages are display if this template is used in a which is not named "Category:YYYY establishments in Foo"
These errors are tracked in two tracking categories:
- Category:EstcatCountry used in disestablishments category (0 pages) — where Template:EstcatCountry has been used in a "Category:YYYY disestablishments in Foo"
- Category:EstcatCountry used inappropriately (0 pages) — other misuses, including mis-spellings of "establishments"
See also
[සංස්කරණය]- Template:EstcatCountryDecade
- Template:EstcatCountryCentury
- Template:EstcatCountry2ndMillennium
- Template:EstcatCountry3rdMillennium
- Template:Estcatsubcountry (for subdivisions of countries, like states, provinces, departments; or regions of continents)
- Template:EstcatUSstate
- Template:DisestcatCountry