Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Syntax  



1.1.1  Change of country name  





1.1.2  Suppressing parent category for decade  





1.1.3  Disambiguation  









2 Error checking  





3 See also  














Template:Disestablishment category in country/core






فارسی
Bahasa Indonesia
Simple English

Tiếng Vit
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

< Template:Disestablishment category in country
(Redirected from Template:DisestcatCountry/core)

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

{{DisestcatCountry| country [ | sort key ]}}

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

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 "Disestablishments 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.

{{DisestcatCountry|Burma}}

OnCategory:1988 disestablishments in Burma, the template generates parent categories Category:1980s disestablishments in Myanmar and Category:Disestablishments in Myanmar by year, because both Category:1980s disestablishments in Burma and Category:Disestablishments in Burma by year are category redirects to the corresponding names using Myanmar.

OnCategory:1945 disestablishments in Burma, the parent categories will be Category:1940s disestablishments in Burma, which is not redirected, but Category:Disestablishments 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

{{DisestcatCountry|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:

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Disestablishment_category_in_country/core&oldid=1223144234"

Category: 
Disestablishments by year templates
Hidden category: 
Wikipedia template-protected templates
 



This page was last edited on 10 May 2024, at 05:33 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki