Template:Infobox former country/autocat: Difference between revisions
(Created page with "<!-- Start common name check -->{{#if:{{{common_name<includeonly>|</includeonly>}}}|| {{!}}- style="font-size: 85%;" {{!}} colspan=2 {{!}} '''Warning''': ''Value not specifie...") |
No edit summary |
||
Line 19: | Line 19: | ||
|China|Japan|Korea|Malaysia = [[Category:Former countries in {{{country}}} history|{{{common_name}}}, {{{year_start}}}]]] | |China|Japan|Korea|Malaysia = [[Category:Former countries in {{{country}}} history|{{{common_name}}}, {{{year_start}}}]]] | ||
|#default = {{#switch:{{{continent}}} | |#default = {{#switch:{{{continent}}} | ||
|Africa|Asia|Europe|North America|South America = [[Category:Former countries in {{{continent}}}|{{{common_name}}}, {{{year_start}}}]] | |Africa|Asia|Europe|North America|South America|Internatia = [[Category:Former countries in {{{continent}}}|{{{common_name}}}, {{{year_start}}}]] | ||
|Australia|Oceania = [[Category:Former countries in Oceania|{{{common_name}}}, {{{year_start}}}]] | |Australia|Oceania = [[Category:Former countries in Oceania|{{{common_name}}}, {{{year_start}}}]] | ||
|Asia, Europe|Eurasia = [[Category:Former countries in Europe|{{{common_name}}}, {{{year_start}}}]][[Category:Former countries in Asia|{{{common_name}}}, {{{year_start}}}]] | |Asia, Europe|Eurasia = [[Category:Former countries in Europe|{{{common_name}}}, {{{year_start}}}]][[Category:Former countries in Asia|{{{common_name}}}, {{{year_start}}}]] |
Latest revision as of 19:59, 22 June 2013
This subtemplate of {{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 {{{year_start}}}" exists. If so, it is added, otherwise, the template tests to see if "Category:States and territories established in {{{year_start}}}" 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 {{{year_end}}}" exists. If so, it is added, otherwise, the template tests to see if "Category:States and territories disestablished in {{{year_end}}}" 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".