Difference between revisions of "Template:Infobox former country/autocat"
m |
m |
||
Line 14: | Line 14: | ||
|Ekuosia|Upper Ekuosia|Lower Ekuosia = [[Category:Former countries in Ekuosia|{{{common_name}}}, {{{year_start}}}]] | |Ekuosia|Upper Ekuosia|Lower Ekuosia = [[Category:Former countries in Ekuosia|{{{common_name}}}, {{{year_start}}}]] | ||
|Qonklaks = [[Category:Former countries in Qonklese history|{{{common_name}}}, {{{year_start}}}]] | |Qonklaks = [[Category:Former countries in Qonklese history|{{{common_name}}}, {{{year_start}}}]] | ||
|Parshita = [[Category:Former countries in Parshita|{{{common_name}}}, {{{year_start}}}]] | |Parshita|Milevia = [[Category:Former countries in Parshita|{{{common_name}}}, {{{year_start}}}]] | ||
|Soltenna = [[Category:Former countries in Soltenna|{{{common_name}}}, {{{year_start}}}]] | |Soltenna = [[Category:Former countries in Soltenna|{{{common_name}}}, {{{year_start}}}]] | ||
|East Miraria|Northern Miraria|North Miraria|Mahavia = [[Category:Former countries in Northern Miraria|{{{common_name}}}, {{{year_start}}}]] | |East Miraria|Northern Miraria|North Miraria|Mahavia = [[Category:Former countries in Northern Miraria|{{{common_name}}}, {{{year_start}}}]] |
Revision as of 03:11, 2 June 2024
This subtemplate of {{Infobox country}}
is used to automatically add categories to articles which transclude this template. It should not be used directly.
Regions and continents
The region and continent values should be entered without wikilinking. If a region is not recognized, an error will display at the bottom of the template. In this case, contact User:Alynnidalar to have it added to the template, unless you know what you're doing. Countries can also be added, if you request!
Establishment dates
- First the template tests to see if "Category:States and territories established in the {{{year_start}}}" exists. If so, it is added.
- If not, the template tests to see if "Category:States and territories established in {{{year_start}}}" exists. If so, it is added.
- If not, the template tests to see if "Category:States and territories established in the DECADEs" where DECADE is the decade containing {{{year_start}}} (ie Category:States and territories established in the 120s BCE). If so, it is added.
- If not, the template tests to see if "Category:States and territories established in the Nth century" where N is the century containing {{{year_start}}} (ie Category:States and territories established in the 1st century BCE). If so, it is added.
The reason for the first case is in case an imprecise date is imputed, such as "the 820s" or "the 18th century", before trying exact dates like "1820".
Disestablishment dates
- First the template tests to see if "Category:States and territories disestablished in the {{{year_start}}}" exists. If so, it is added.
- If not, the template tests to see if "Category:States and territories disestablished in {{{year_start}}}" exists. If so, it is added.
- If not, the template tests to see if "Category:States and territories disestablished in the DECADEs" where DECADE is the decade containing {{{year_start}}} (ie Category:States and territories disestablished in the 120s BCE). If so, it is added.
- If not, the template tests to see if "Category:States and territories disestablished in the Nth century" where N is the century containing {{{year_start}}} (ie Category:States and territories disestablished in the 1st century BCE). If so, it is added.
The reason for the first case is in case an imprecise date is imputed, such as "the 820s" or "the 18th century", before trying exact dates like "1820".