Difference between revisions of "Template:Infobox former country/autocat"
Alynnidalar (talk | contribs) |
Alynnidalar (talk | contribs) |
||
Line 20: | Line 20: | ||
|#default = {{#switch:{{{continent}}} | |#default = {{#switch:{{{continent}}} | ||
|Alpa|Baredina|Boroso|Miraria|Nagu|Shekku|Ystel = [[Category:Former countries in {{{continent}}}|{{{common_name}}}, {{{year_start}}}]] | |Alpa|Baredina|Boroso|Miraria|Nagu|Shekku|Ystel = [[Category:Former countries in {{{continent}}}|{{{common_name}}}, {{{year_start}}}]] | ||
|Šekku = [[Category:Former countries in Shekku|{{{common_name}}}, {{{year_start}}}]] | |||
|Üstel = [[Category:Former countries in Ystel|{{{common_name}}}, {{{year_start}}}]] | |||
|#default={{!}}- style="font-size: 85%;" | |#default={{!}}- style="font-size: 85%;" | ||
{{!}} colspan=2 {{!}} '''Warning''': ''Value specified for "[[Template:Infobox former country/doc#Location|continent]]" [[Template:Infobox former country/doc#Location|does not comply]]''[[Category:Former country articles requiring maintenance|C]] | {{!}} colspan=2 {{!}} '''Warning''': ''Value specified for "[[Template:Infobox former country/doc#Location|continent]]" [[Template:Infobox former country/doc#Location|does not comply]]''[[Category:Former country articles requiring maintenance|C]] |
Revision as of 18:43, 6 November 2015
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 BC). 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 BC). 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 BC). 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 BC). 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".