<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AISO_3166%2Fdoc</id>
	<title>Module:ISO 3166/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AISO_3166%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:ISO_3166/doc&amp;action=history"/>
	<updated>2026-04-30T18:35:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:ISO_3166/doc&amp;diff=23164793&amp;oldid=prev</id>
		<title>imported&gt;Ymblanter: /* Tracking categories */</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:ISO_3166/doc&amp;diff=23164793&amp;oldid=prev"/>
		<updated>2025-08-10T21:06:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Tracking categories&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|p}}&lt;br /&gt;
{{High risk|493000+}}&lt;br /&gt;
&lt;br /&gt;
This module returns a country&amp;#039;s or subdivision&amp;#039;s code (alpha-2, alpha-3, numeric) or name (ISO, non-ISO) from [[ISO 3166]] from a variety of inputs (alpha-2, alpha-3, numeric, name, ISO-name, alternative names). The module also removes junk from the input.&lt;br /&gt;
==Examples==&lt;br /&gt;
===Countries (ISO 3166-1)===&lt;br /&gt;
All three types of [[ISO 3166-1]] codes (alpha-2, alpha-3 and numeric) work as inputs to &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, as well as to &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; (which can therefore also be used to convert between different code types). Use {{para|codetype}} to output alpha-3 or numeric codes in &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; instead of the default alpha-2 codes.&lt;br /&gt;
====Name====&lt;br /&gt;
To get the common name use the name function&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GB}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GB}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GBR}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GBR}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|826}} &amp;amp;rarr; {{#invoke:ISO 3166|name|826}}&lt;br /&gt;
====ISO Name====&lt;br /&gt;
To get the ISO name use the name function with isoname = yes&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GB|isoname{{=}}yes}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GB|isoname=yes}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GBR|isoname{{=}}yes}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GBR|isoname=yes}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|826|isoname{{=}}yes}} &amp;amp;rarr; {{#invoke:ISO 3166|name|826|isoname=yes}}&lt;br /&gt;
&lt;br /&gt;
====Alpha-2====&lt;br /&gt;
To get the alpha 2 code use the code function&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|826}} &amp;amp;rarr; {{#invoke:ISO 3166|code|826}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|United Kingdom}} &amp;amp;rarr; {{#invoke:ISO 3166|code|United Kingdom}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|UK}} &amp;amp;rarr; {{#invoke:ISO 3166|code|UK}}&lt;br /&gt;
====Alpha-3====&lt;br /&gt;
To get the alpha 3 code use the code function with codetype = 3&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|United Kingdom|codetype{{=}}alpha3}} &amp;amp;rarr; {{#invoke:ISO 3166|code|United Kingdom|codetype=alpha3}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GB}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GB}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GBR}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GBR}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|826}} &amp;amp;rarr; {{#invoke:ISO 3166|name|826}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|UK|codetype{{=}}alpha3}} &amp;amp;rarr; {{#invoke:ISO 3166|code|UK|codetype=alpha3}}&lt;br /&gt;
====Numeric====&lt;br /&gt;
To get the numeric code use the code function with codetype = numeric &amp;#039;&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;#039; use the numeric function&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|numeric|GB}} &amp;amp;rarr; {{#invoke:ISO 3166|numeric|GB}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|GB|codetype{{=}}numeric}} &amp;amp;rarr; {{#invoke:ISO 3166|code|GB|codetype=numeric}}&lt;br /&gt;
===Subdivisions (ISO 3166-2)===&lt;br /&gt;
Inputs to &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; must be valid [[ISO 3166-2]] codes, i.e. the country&amp;#039;s alpha-2 code for the first part, and up to three alphanumeric characters for the second part. They may be given normally (with a hyphen between the parts), or split between two unnamed parameters. For &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt;, the first parameter is the country name (or any of its three codes, like above), and the second the subdivision name.&lt;br /&gt;
====Code (alpha-2)====&lt;br /&gt;
To get the alpha-2 code of a subdivision use the code function with parameter 1 being the country and parameter 2 being the subdivision&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|United Kingdom|England}} &amp;amp;rarr; {{#invoke:ISO 3166|code|United Kingdom|England}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|GBR|England}} &amp;amp;rarr; {{#invoke:ISO 3166|code|GBR|England}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|code|GB|England}} &amp;amp;rarr; {{#invoke:ISO 3166|code|GB|England}}&lt;br /&gt;
====Name====&lt;br /&gt;
To get the name of a subdivision use the name function with parameter 1 being the country and parameter 2 being the subdivsion &amp;#039;&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;#039; parameter 1 being the subdivsion code&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GB-ENG}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GB-ENG}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|GB|ENG}} &amp;amp;rarr; {{#invoke:ISO 3166|name|GB|ENG}}&lt;br /&gt;
&lt;br /&gt;
{{para|isoname}} works for subnational entities as well; keep in mind that ISO 3166-2 uses (transliterations of) local names that may differ from English ones. Set {{para|lang}} to a [[ISO 639|language code]] to switch between different languages for entities that have multiple ISO names. The default language for multilingual entities can be set on the country&amp;#039;s [[Module:ISO 3166/data|data page]].&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|BE|BRU}} &amp;amp;rarr; {{#invoke:ISO 3166|name|BE|BRU}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|BE|BRU|isoname{{=}}yes}} &amp;amp;rarr; {{#invoke:ISO 3166|name|BE|BRU|isoname=yes}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|BE|BRU|lang{{=}}fr}} &amp;amp;rarr; {{#invoke:ISO 3166|name|BE|BRU|lang=fr}}&lt;br /&gt;
*{{tnull|&amp;amp;#35;invoke:ISO 3166|name|BE|BRU|lang{{=}}nl}} &amp;amp;rarr; {{#invoke:ISO 3166|name|BE|BRU|lang=nl}}&lt;br /&gt;
&lt;br /&gt;
== Tracking categories ==&lt;br /&gt;
* {{clc|Wikipedia articles with obscure country}}&lt;br /&gt;
* {{clc|Wikipedia articles with obscure country or subdivision}}&lt;br /&gt;
* {{clc|Wikipedia articles with obscure subdivision}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Wikipedia:Templates for discussion/Log/2015 November 12#Template:ISO 3166 name DE-HB]] &amp;amp;ndash; discussion of replacement of [[Template:ISO 3166 conversion template doc|template-based system]] with Lua&lt;br /&gt;
*[[Wikipedia:Templates_for_discussion/Log/2018_September_10#Template:ISO_3166_code-3_AD]] &amp;amp;ndash; discussion of full removal of [[Template:ISO 3166 conversion template doc|template-based system]]&lt;br /&gt;
*{{tl|ISO 3166 name}} &amp;amp;ndash; (ISO name)&lt;br /&gt;
*{{tl|Country name}} &amp;amp;ndash; (Standard name)&lt;br /&gt;
*{{tl|ISO 3166 code}} &amp;amp;ndash; (Code)&lt;br /&gt;
*{{tl|ISO 3166 code-3}} &amp;amp;ndash; (3 letter code)&lt;br /&gt;
*{{tl|ISO 3166 numeric}} &amp;amp;ndash; (numeric code)&lt;br /&gt;
*[[Module:ISO 3166/data]] &amp;amp;ndash; the data subpages used by this module&lt;br /&gt;
&lt;br /&gt;
==Subpages==&lt;br /&gt;
{{Special:Prefixindex/Module:ISO 3166/}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
[[Category:Data retrieval templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Ymblanter</name></author>
	</entry>
</feed>