Template:Infobox former country/autocat

{{Documentation|content= This subtemplate of {{tl|Infobox country}} is used to automatically add categories to articles which transclude this template. It should not be used directly

Establishment dates
First the template tests to see if "Category:States and territories established in the " exists. If so, it is added, otherwise, the template tests to see if "Category:States and territories established in " exists. If so, it is added.

The reason for these two cases is to cases like "the 820s" or "the 18th century", before trying precise dates like "1820".

Disestablishment dates
First the template tests to see if "Category:States and territories disestablished in the " exists. If so, it is added, otherwise, the template tests to see if "Category:States and territories disestablished in " exists. If so, it is added.

The reason for these two cases is to cases like "the 820s" or "the 18th century", before trying precise dates like "1820".

}} bn:টেমপ্লেট:Infobox former country/autocat ne:ढाँचा:Infobox former country/autocat su:Citakan:Kotak info urut nagara/autocat