<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACountry_showdata%2Fdoc</id>
	<title>Template:Country showdata/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACountry_showdata%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Country_showdata/doc&amp;action=history"/>
	<updated>2026-04-04T13:25:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Template:Country_showdata/doc&amp;diff=11137&amp;oldid=prev</id>
		<title>Akarea: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Country_showdata/doc&amp;diff=11137&amp;oldid=prev"/>
		<updated>2025-05-07T09:51:40Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:51, 7 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key tdk_wiki-tdkw_:diff:1.41:old-11136:rev-11137 --&gt;
&lt;/table&gt;</summary>
		<author><name>Akarea</name></author>
	</entry>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Template:Country_showdata/doc&amp;diff=11136&amp;oldid=prev</id>
		<title>Wikipedia&gt;Paine Ellsworth: /* Redirect aliases */ update /doc</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Country_showdata/doc&amp;diff=11136&amp;oldid=prev"/>
		<updated>2025-02-04T13:42:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Redirect aliases: &lt;/span&gt; update /doc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Lua|Module:String}}&lt;br /&gt;
&lt;br /&gt;
This template is used for documenting country data meta-templates used by the [[:Category:Flag template system|flag template system]].  The output of this template can be seen by directly viewing any of the templates in [[:Category:Country data templates]].&lt;br /&gt;
&lt;br /&gt;
See [[Wikipedia:WikiProject Flag Template]] for the main documentation and discussion page for the flag template system.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
This template is automatically invoked by the standard syntax of a country data template: &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{ {{{1&amp;lt;noinclude&amp;gt;|country showdata&amp;lt;/noinclude&amp;gt;}}}&lt;br /&gt;
| alias = Countryname&lt;br /&gt;
| shortname alias = Shortcountryname  &amp;lt;!-- only necessary if Shortcountryname ≠ Countryname, otherwise omit --&amp;gt;&lt;br /&gt;
| flag alias = Flag of Countryname.svg&lt;br /&gt;
| size = {{{size|}}}&lt;br /&gt;
| name = {{{name|}}}&lt;br /&gt;
| variant = {{{variant|}}}  &amp;lt;!-- only necessary if there is one or more flag alias-variant parameters, otherwise omit --&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The first parameter to a country data template is usually the name of a &amp;#039;&amp;#039;formatting meta-template&amp;#039;&amp;#039;. For example, [[Template:Flag]] uses [[Template:Flag/core]] to actually render the flag icon and wikilink. If the first parameter is missing, which is the case when a country data template is viewed directly, the template code fragment &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{1&amp;amp;lt;noinclude&amp;amp;gt;|country showdata&amp;amp;lt;/noinclude&amp;amp;gt;}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; ensures that &amp;#039;&amp;#039;this&amp;#039;&amp;#039; template will be used as the default first parameter. This technique ensures that country data templates are &amp;quot;self-documenting&amp;quot; if they use the standard syntax.&lt;br /&gt;
&lt;br /&gt;
==Additional parameters==&lt;br /&gt;
Many country data templates require additional documentation beyond the standard mandatory &amp;lt;code&amp;gt;alias&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;flag alias&amp;lt;/code&amp;gt; parameters. This template will automatically document standard optional parameters (such as &amp;lt;code&amp;gt;shortname alias&amp;lt;/code&amp;gt;) if present&amp;lt;!-- the documentation is in the template code --&amp;gt;, and can document unique optional parameters (such as flag variants) if instructed to. This latter method uses documentation-specific parameters in the country data template to activate the additional output from this template. These documentation parameters are set off from the rest of the parameters in the country data template by a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;lt;noinclude&amp;amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
| var1 = ...&lt;br /&gt;
| redir1 = ...&lt;br /&gt;
| related1 = ...&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hatnote===&lt;br /&gt;
If a brief hatnote is needed, then it can be added to the top of the documentation page by including the {{para|hatnote}} parameter with any of the existing hatnote templates. Example:&lt;br /&gt;
: {{para|hatnote|&amp;lt;nowiki&amp;gt;{{Hatnote|This template contains data that applies to the [[Republic of Ireland|sovereign state]]. For the island of [[Ireland]], see [[Template:Country data Ireland]].}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
results in:&lt;br /&gt;
{{Hatnote|This template contains data that applies to the [[Republic of Ireland|sovereign state]]. For the island of [[Ireland]], see [[Template:Country data Ireland]].}}&lt;br /&gt;
&lt;br /&gt;
See also {{tl|Country data Georgia (country)}} for another hatnote example.&lt;br /&gt;
&lt;br /&gt;
===Flag variants===&lt;br /&gt;
Flag variants are added to a country data template by the inclusion of one or more &amp;lt;code&amp;gt;flag alias-&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameters, where each &amp;lt;code&amp;gt;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; is a unique identifier that is subsequently used as an input parameter to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag icon|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, etc. To document these flag variants, use the &amp;lt;code&amp;gt;var&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; documentation parameters to identify each label.&lt;br /&gt;
&lt;br /&gt;
For example, [[Template:Country data Seychelles]] identifies three flag variants (in addition to the current flag) with the following code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
| flag alias-1976 = Flag of the Seychelles 1976.svg&lt;br /&gt;
| flag alias-1977 = Flag of the Seychelles 1977.svg&lt;br /&gt;
| flag alias-colonial = Government Ensign of the United Kingdom.svg&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
These three variants are documented by the following code segment later in the template:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
| var1 = 1976&lt;br /&gt;
| var2 = 1977&lt;br /&gt;
| var3 = colonial&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
Up to forty flag variants can be documented by this method (using &amp;lt;code&amp;gt;var1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;var40&amp;lt;/code&amp;gt;).  If more are present, these can be listed on a separate documentation subpage as described below.&lt;br /&gt;
&lt;br /&gt;
Note that you do &amp;#039;&amp;#039;not&amp;#039;&amp;#039; have to use a &amp;lt;code&amp;gt;var&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; parameter for the standard optional variant labels &amp;lt;code&amp;gt;naval&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;air force&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;army&amp;lt;/code&amp;gt; (used for the country&amp;#039;s naval, air force and army ensigns, respectively). If present, they will automatically be documented.&lt;br /&gt;
&lt;br /&gt;
===Redirect aliases===&lt;br /&gt;
Many country data templates have &amp;#039;&amp;#039;alias&amp;#039;&amp;#039; names that can be used instead of the usual country name with all of the main flag templates. These are usually, but not exclusively, standard country code abbreviations such as those specified in [[ISO 3166-1 alpha-3]] or by the [[List of IOC country codes|IOC]] or [[List of FIFA country codes|FIFA]]. These are implemented as redirects, and are listed in [[:Category:Country data redirects]]. Template {{tl|R country data}} is used to populate that category.&lt;br /&gt;
&lt;br /&gt;
For example, [[Template:Country data DEU]] and [[Template:Country data GER]] both redirect to [[Template:Country data Germany]], because &amp;#039;&amp;#039;DEU&amp;#039;&amp;#039; is the ISO code and &amp;#039;&amp;#039;GER&amp;#039;&amp;#039; is the IOC and FIFA code for Germany. Therefore, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag icon|DEU}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag icon|GER}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{flag icon|Germany}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; all have the same result. These redirect aliases are documented by the following template code fragment:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
| redir1 = DEU&lt;br /&gt;
| redir2 = GER&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Up to five flag redirects can be documented by this method (using &amp;lt;code&amp;gt;redir1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;redir5&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
===Related templates===&lt;br /&gt;
Several country data templates are used for alternative forms to the common country data template for the nation, usually but not exclusively for historic nations. Pointers to these alternative templates are useful additions to the template documentation so that editors can use the correct template for their specific purposes.&lt;br /&gt;
&lt;br /&gt;
For example, [[Template:Country data Serbia and Montenegro]] includes the following code to document three other related country data templates:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
| related1 = Serbia&lt;br /&gt;
| related2 = Montenegro&lt;br /&gt;
| related3 = FR Yugoslavia&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;!-- (Does not work yet)&lt;br /&gt;
Parameters may be passed to the related templates like this:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
| related1 = Central America&lt;br /&gt;
| related1param = 1823&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Up to six related flags can be documented by this method (using &amp;lt;code&amp;gt;related1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;related6&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
===Flag article link===&lt;br /&gt;
This template shows a large flag image on the right of the documentation box, with a link to an article about the flag in the caption if it exists. The page that it evaluates is &amp;quot;Flag of {{param|alias}}&amp;quot;, with the value of {{para|alias}} in the template code replacing {{param|alias}}. If there is an article about the flag even though &amp;quot;Flag of {{param|alias}}&amp;quot; does not exist, either create the latter as a redirect to the correct page or add the following parameter:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
| flag link = &amp;#039;&amp;#039;Article name&amp;#039;&amp;#039;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can also be used to override the automatic link if &amp;quot;Flag of {{param|alias}}&amp;quot; does exist but leads to the wrong article.&lt;br /&gt;
&lt;br /&gt;
===Additional documentation===&lt;br /&gt;
{{hatnote|&amp;#039;&amp;#039;&amp;#039;There is no need&amp;#039;&amp;#039;&amp;#039; to &amp;quot;noinclude&amp;quot; template {{tl|Documentation}} in the main country data template.}}&lt;br /&gt;
For situations where the automatic documentation method is not completely adequate, additional documentation can be displayed by &amp;lt;code&amp;gt;country showdata&amp;lt;/code&amp;gt;. Simply create a documentation subpage (named as &amp;lt;code&amp;gt;Template:Country data Countryname/doc&amp;lt;/code&amp;gt;) with the additional material, and it will be transcluded to a section called &amp;quot;Other information&amp;quot; at or near the end of the automatic documentation. This &amp;quot;extra&amp;quot; documentation page can usually be edited even if the country data template is edit-protected.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
* [[Template:Country data Ireland/doc]] is used to explain why that template is distinct from [[Template:Country data Republic of Ireland]]&lt;br /&gt;
* [[Template:Country data France/doc]] is used to document the list of country data templates available for each of the regions of France&lt;br /&gt;
* [[Template:Country data United States/doc]] is used to document the full set of flag variants (for each number of stars), and to list all of the country data templates available for state and territory flags&lt;br /&gt;
* [[Template:Country data Empire of Japan/doc]] sorts its template into individualized categories.&lt;br /&gt;
&lt;br /&gt;
===Categorization===&lt;br /&gt;
This template automatically categorizes pages it is transcluded on in [[:Category:All country data templates]] and in the tracking categories in [[:Category:Country data tracking categories]]. Content categories, such as those [[:Category:Country data templates by country|by country]] or [[:Category:Country data templates by type of entity|by type/status]], should be added manually by putting them inside {{tag|includeonly}} tags on a template&amp;#039;s documentation subpage. If a template does not have a documentation page yet, click on the &amp;quot;/doc&amp;quot; link at the bottom of the automatic documentation, add categories between the preloaded {{tag|includeonly|open}} tags and save the page.&lt;br /&gt;
&lt;br /&gt;
The default sort key used for the automatic categories is the part after &amp;lt;code&amp;gt;Template:Country data&amp;lt;/code&amp;gt; in the page title. The parameter {{para|cat}} can be used to specify a custom ASCII sorting key for these categories. For example, [[Template:Country data Åland Islands]] and [[Template:Country data Republic of Ireland]] use this parameter to sort them under &amp;quot;A&amp;quot; and &amp;quot;I&amp;quot; respectively.&lt;br /&gt;
&lt;br /&gt;
Automatically added by this template:&lt;br /&gt;
* {{clc|All country data templates}}&lt;br /&gt;
* {{clc|Country data template sandboxes}}&lt;br /&gt;
* {{clc|Country data templates with distinct default size}}&lt;br /&gt;
* {{clc|Country data templates with distinct shortname}}&lt;br /&gt;
* {{clc|Country data templates with distinct template name}}&lt;br /&gt;
* {{clc|Country data templates with documentation subpage}}&lt;br /&gt;
* {{clc|Country data templates without flag alias}}&lt;br /&gt;
* {{clc|Uncategorized country data templates}}&lt;br /&gt;
&lt;br /&gt;
Manually added to templates or documentation pages:&lt;br /&gt;
* {{clc|Country data templates of countries}}&lt;br /&gt;
* {{clc|Subnational country data templates}}&lt;br /&gt;
* {{clc|Country data templates of cities}}&lt;br /&gt;
* {{clc|Country data templates of continents}}&lt;br /&gt;
* {{clc|Country data templates of dependent territories}}&lt;br /&gt;
* {{clc|Country data templates of geographical regions}}&lt;br /&gt;
* {{clc|Country data templates of governments}}&lt;br /&gt;
* {{clc|Country data templates of historical entities}}&lt;br /&gt;
* {{clc|Country data templates of international organizations}}&lt;br /&gt;
* {{clc|Country data templates of micronations}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
[[Category:Flag template system| ]]&lt;br /&gt;
[[Category:Data retrieval templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Paine Ellsworth</name></author>
	</entry>
</feed>