Difference between revisions 4112430 and 4261090 on simplewiki

<!-- Start common name check
-->{{#if:{{{common_name<includeonly>|</includeonly>}}}||
{{!}}- style="font-size: 85%;"
{{!}} colspan=2 {{!}} '''Warning''':  ''Value not specified for "[[Template:Infobox former country/doc#Name|common_name]]"''<includeonly>[[Category:Articles with infobox errors|c]]</includeonly>
}}<!-- Start Continent/Region Categories
-->{{#if:{{{continent|}}}|
 {{#switch:{{{region}}}
(contracted; show full)
-->|{{#ifexist:Category:{{{year_end}}} disestablishments<!--
  -->|[[Category:{{{year_end}}} disestablishments|{{{common_name}}}, {{{year_end}}}]]<!--
    -->|<includeonly>[[Category:Articles with infobox errors|J]]</includeonly><!--
  -->}}<!--
-->|<includeonly>[[Category:Articles with infobox errors|k<!--disestablishment year missing-->]]</includeonly><!--
-->}}<!-- End Disestablished Categories
--><noinclude>
{{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 ===
The template tests to see if "Category:{{{year_start}}} establishments" exists. If so, the article is added. Otherwise, or if the <code>year_start</code> parameter is not used, the article is added to [[:Category:Articles with infobox errors]].

=== Disestablishment dates ===
The template tests to see if "Category:{{{year_end}}} disestablishments" exists. If so, the article is added. Otherwise, or if the <code>year_end</code> parameter is not used, the article is added to [[:Category:Articles with infobox errors]].

=== Notes on categorisation ===
The more specific categorisation system of "States and territories established in the {{{year_start}}}" (as used on the [[:en:|English Wikipedia]]) is disabled at present. It may be enabled in the future, when the Simple Wikipedia has a high enough number of former country articles to warrant such categories.
}}
</noinclude>