<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nb">
	<id>https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Mal%3ACountry_alias%2Fdok</id>
	<title>Mal:Country alias/dok - Sideversjonshistorikk</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Mal%3ACountry_alias%2Fdok"/>
	<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Mal:Country_alias/dok&amp;action=history"/>
	<updated>2026-04-12T21:53:01Z</updated>
	<subtitle>Versjonshistorikk for denne siden på wikien</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Mal:Country_alias/dok&amp;diff=8870&amp;oldid=prev</id>
		<title>Wikisida: Én sideversjon ble importert</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Mal:Country_alias/dok&amp;diff=8870&amp;oldid=prev"/>
		<updated>2026-02-09T12:42:30Z</updated>

		<summary type="html">&lt;p&gt;Én sideversjon ble importert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nb&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Eldre sideversjon&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Sideversjonen fra 9. feb. 2026 kl. 12:42&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;nb&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen forskjell)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Wikisida</name></author>
	</entry>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Mal:Country_alias/dok&amp;diff=8869&amp;oldid=prev</id>
		<title>nb&gt;Tholme på 20. okt. 2025 kl. 14:43</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Mal:Country_alias/dok&amp;diff=8869&amp;oldid=prev"/>
		<updated>2025-10-20T14:43:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny side&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Lua|Module:Country alias|Module:Country alias/data}}&lt;br /&gt;
This template returns either a country name or the flag associated with that country, depending on the input parameters.&lt;br /&gt;
&lt;br /&gt;
{{Tl|Country alias}} is primarily meant to be used for sporting competitions such as the [[Olympics]], [[Commonwealth Games]], [[Asian Games]], etc.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
There is one required parameter and three optional parameters.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;code&amp;gt;country&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;:The three-letter country code used by [[List of IOC country codes|IOC]], [[List of CGF country codes|CGF]], or [[List of FINA member federations|FINA]]. This parameter can be an unnamed parameter.&lt;br /&gt;
;&amp;lt;code&amp;gt;flag&amp;lt;/code&amp;gt;:If set to &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;, will return the flag of the country.&lt;br /&gt;
;&amp;lt;code&amp;gt;year&amp;lt;/code&amp;gt;:The input year will determine which flag is used. For example, any year before 1999 will give &amp;quot;Pre-1999 Flag of Tunisia.svg&amp;quot; for Tunisia (TUN), while any year after 1999 will give &amp;quot;Flag of Tunisia.svg&amp;quot;.&lt;br /&gt;
;&amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt;:This is another method of determining which flag is used. Some countries, such as Great Britain, used the Olympic flag during the [[1980 Summer Olympics]].&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
Here are some examples based on the entry for Italy (ITA)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
ITA = {&lt;br /&gt;
	name = &amp;quot;Italy&amp;quot;,&lt;br /&gt;
	{1946, &amp;quot;Flag of Italy (1861-1946).svg&amp;quot;},&lt;br /&gt;
	{2002, &amp;quot;Flag of Italy.svg&amp;quot;},&lt;br /&gt;
	{2006, &amp;quot;Flag of Italy (2003-2006).svg&amp;quot;},&lt;br /&gt;
	&amp;quot;Flag of Italy.svg&amp;quot;,&lt;br /&gt;
	[&amp;quot;Summer Olympics&amp;quot;] = {&lt;br /&gt;
		[1980] = &amp;quot;Olympic flag.svg&amp;quot;,&lt;br /&gt;
	},&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Country alias|ITA}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Country alias|country=ITA}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Country alias|ITA|flag=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Country alias|country=ITA|flag=yes}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Country alias|ITA|flag=yes|year=1946}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Country alias|country=ITA|flag=yes|year=1946}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Country alias|ITA|flag=yes|year=1947}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Country alias|country=ITA|flag=yes|year=1947}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Country alias|ITA|flag=yes|year=1980|games=Summer Olympics}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Country alias|country=ITA|flag=yes|year=1980|games=Summer Olympics}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Country alias|ITA|flag=yes|year=2006|games=Summer Olympics}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Country alias|country=ITA|flag=yes|year=2006|games=Summer Olympics}}&lt;br /&gt;
&lt;br /&gt;
Note that in the last example &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; does not factor into the flag image. &lt;br /&gt;
&lt;br /&gt;
===Lua script error messages===&lt;br /&gt;
If the country code is not supplied, or does not exist in the module, an error will be returned:&lt;br /&gt;
*{{tlc|Country alias}} → {{error|Lua error in Module:Country_alias at line 181: Invalid country alias: {{{country}}}.}}&lt;br /&gt;
*{{tlc|Country alias|}} → {{error|Lua error in Module:Country_alias at line 181: Invalid country alias: nil.}}&lt;br /&gt;
*{{tlc|Country alias|EXZ}} → {{error|Lua error in Module:Country_alias at line 181: Invalid country alias: EXZ.}}&lt;br /&gt;
*{{tlc|Country alias|2=country=EXZ}} → {{error|Lua error in Module:Country_alias at line 181: Invalid country alias: EXZ.}}&lt;br /&gt;
To avoid generating a script error, use {{para|error|value}}.&lt;br /&gt;
*{{tlc|Country alias|EXZ|3=error=ERROR}} → {{Country alias|EXZ|error=ERROR}}&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:Wikipedia classification templates]]&lt;br /&gt;
[[Category:Wikipedia formatting and function templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>nb&gt;Tholme</name></author>
	</entry>
</feed>