<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://attuproject.org/wiki?action=history&amp;feed=atom&amp;title=Template%3AISO_3166_conversion_template_doc</id>
	<title>Template:ISO 3166 conversion template doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://attuproject.org/wiki?action=history&amp;feed=atom&amp;title=Template%3AISO_3166_conversion_template_doc"/>
	<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Template:ISO_3166_conversion_template_doc&amp;action=history"/>
	<updated>2026-11-15T06:16:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.6</generator>
	<entry>
		<id>https://attuproject.org/wiki?title=Template:ISO_3166_conversion_template_doc&amp;diff=5332&amp;oldid=prev</id>
		<title>Dervot: Created page with &quot;{{Lua|Module:ISO 3166}}  This template is part of a series that resolves the country and subdivision names to ISO 3166-1 and ISO 3166-2 codes, and vice versa. {{#ifeq:{{Str len|{{{3|}}}}}|2|See also: ISO 3166-2:{{{3}}}}} ISO 3166 defines names, two and three letter codes and code numbers for all countries and six character codes (the two letter country code followed by a dash and a two or three character subdivision code) for all top level subdivisions.   ==T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Template:ISO_3166_conversion_template_doc&amp;diff=5332&amp;oldid=prev"/>
		<updated>2023-12-24T04:44:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Lua|Module:ISO 3166}}  This template is part of a series that resolves the country and subdivision names to &lt;a href=&quot;/wiki?title=ISO_3166-1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ISO 3166-1 (page does not exist)&quot;&gt;ISO 3166-1&lt;/a&gt; and &lt;a href=&quot;/wiki?title=ISO_3166-2&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ISO 3166-2 (page does not exist)&quot;&gt;ISO 3166-2&lt;/a&gt; codes, and vice versa. {{#ifeq:{{Str len|{{{3|}}}}}|2|See also: [[ISO 3166-2:{{{3}}}]]}} ISO 3166 defines names, two and three letter codes and code numbers for all countries and six character codes (the two letter country code followed by a dash and a two or three character subdivision code) for all top level subdivisions.   ==T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Lua|Module:ISO 3166}}&lt;br /&gt;
&lt;br /&gt;
This template is part of a series that resolves the country and subdivision names to [[ISO 3166-1]] and [[ISO 3166-2]] codes, and vice versa. {{#ifeq:{{Str len|{{{3|}}}}}|2|See also: [[ISO 3166-2:{{{3}}}]]}} ISO 3166 defines names, two and three letter codes and code numbers for all countries and six character codes (the two letter country code followed by a dash and a two or three character subdivision code) for all top level subdivisions. &lt;br /&gt;
&lt;br /&gt;
==Templates==&lt;br /&gt;
===ISO 3166-1===&lt;br /&gt;
* ISO 3166-1 alpha-2: {{Tl|ISO 3166 code}} (&amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039;, {{ISO 3166 code|Iran}})&lt;br /&gt;
* ISO 3166-1 alpha-3: {{Tl|ISO 3166 code-3}} (&amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039;, {{ISO 3166 code-3|Iran}})&lt;br /&gt;
* ISO 3166-1 numeric: {{Tl|ISO 3166 numeric}} (&amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039;, {{ISO 3166 numeric|Iran}})&lt;br /&gt;
&lt;br /&gt;
===ISO 3166-2===&lt;br /&gt;
* ISO 3166-2: {{Tl|ISO 3166 code}} (&amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039;, {{ISO 3166 code|Iran|Alborz}})&lt;br /&gt;
* ISO 3166-2 name: {{Tl|ISO 3166 name}} (&amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039;, {{ISO 3166 name|Iran}})&lt;br /&gt;
&lt;br /&gt;
===Non-ISO 3166===&lt;br /&gt;
Country name: {{Tl|Country name}} (&amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039;, {{Country name|Iran}})&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
When we wish to convert between various identifiers that may loosely be defined as &amp;#039;&amp;#039;user input&amp;#039;&amp;#039; and ISO 3166 entities, there may be more than one way to do each conversion. For our examples we use [[Pakistan]] as the country and [[Balochistan (Pakistan)]] as the subdivision.&lt;br /&gt;
&lt;br /&gt;
The ISO-3166 identifiers for Pakistan are:&lt;br /&gt;
* Name: Pakistan&lt;br /&gt;
* Alpha-2 code: PK&lt;br /&gt;
* Alpha-3 code: PAK&lt;br /&gt;
* Numeric code: 586&lt;br /&gt;
&lt;br /&gt;
The ISO-3166 identifiers for Balochistan (Pakistan) is:&lt;br /&gt;
* Subdivision code:PK-BK&lt;br /&gt;
&lt;br /&gt;
Now Pakistan also has a number of synonyms, for example, [[Pakistán]] and [[پاکستان]].&lt;br /&gt;
&lt;br /&gt;
Similarly Baluchistan is known, for example, as [[Balochistan]] (on Wikipedia) and [[Bagh Sanjari]].&lt;br /&gt;
&lt;br /&gt;
=== Finding the Alpha-2 code ===&lt;br /&gt;
Any of the country identifiers can be used.&lt;br /&gt;
&lt;br /&gt;
* {{Tlx|ISO 3166 code|Pakistan}} PK&lt;br /&gt;
* {{Tlx|ISO 3166 code|PK}} PK&lt;br /&gt;
* {{Tlx|ISO 3166 code|PAK}} PK&lt;br /&gt;
* {{Tlx|ISO 3166 code|586}} PK&lt;br /&gt;
* {{Tlx|ISO 3166 code|Pakistán}} PK&lt;br /&gt;
* {{Tlx|ISO 3166 code|پاکستان}} PK&lt;br /&gt;
&lt;br /&gt;
=== Finding the Alpha-3 code ===&lt;br /&gt;
&lt;br /&gt;
* {{Tlx|ISO 3166 code-3|Pakistan}} PAK&lt;br /&gt;
* {{Tlx|ISO 3166 code-3|PK}} PAK&lt;br /&gt;
* {{Tlx|ISO 3166 code-3|PAK}} PAK&lt;br /&gt;
* {{Tlx|ISO 3166 code-3|586}} PAK&lt;br /&gt;
* {{Tlx|ISO 3166 code-3|Pakistán}} PAK&lt;br /&gt;
* {{Tlx|ISO 3166 code-3|پاکستان}} PAK&lt;br /&gt;
&lt;br /&gt;
=== Finding the name of a country ===&lt;br /&gt;
&lt;br /&gt;
* {{Tlx|ISO 3166 name|Pakistan}} Pakistan&lt;br /&gt;
* {{Tlx|ISO 3166 name|PK}} Pakistan&lt;br /&gt;
* {{Tlx|ISO 3166 name|PAK}} Pakistan&lt;br /&gt;
* {{Tlx|ISO 3166 name|586}} Pakistan&lt;br /&gt;
* {{Tlx|ISO 3166 name|Pakistán}} Pakistan&lt;br /&gt;
* {{Tlx|ISO 3166 name|پاکستان}} Pakistan&lt;br /&gt;
&lt;br /&gt;
=== Finding the common name of a country ===&lt;br /&gt;
&lt;br /&gt;
* {{Tlx|Country name|Pakistan}} Pakistan&lt;br /&gt;
* {{Tlx|Country name|PK}} Pakistan&lt;br /&gt;
* {{Tlx|Country name|PAK}} Pakistan&lt;br /&gt;
* {{Tlx|Country name|586}} Pakistan&lt;br /&gt;
* {{Tlx|Country name|Pakistán}} Pakistan&lt;br /&gt;
* {{Tlx|Country name|پاکستان}} Pakista&lt;br /&gt;
&lt;br /&gt;
=== Finding the numeric code of a country ===&lt;br /&gt;
&lt;br /&gt;
* {{Tlx|ISO 3166 numeric|Pakistan}} 586&lt;br /&gt;
* {{Tlx|ISO 3166 numeric|PK}} 586&lt;br /&gt;
* {{Tlx|ISO 3166 numeric|PAK}} 586&lt;br /&gt;
* {{Tlx|ISO 3166 numeric|586}} 586&lt;br /&gt;
* {{Tlx|ISO 3166 numeric|Pakistán}} 586&lt;br /&gt;
&lt;br /&gt;
=== Finding the subdivision code ===&lt;br /&gt;
&lt;br /&gt;
* {{Tlx|ISO 3166 code|Pakistan|Baluchistan}} PK-BA&lt;br /&gt;
* {{Tlx|ISO 3166 code|Pakistan|Balochistan}} PK-BA&lt;br /&gt;
* {{Tlx|ISO 3166 code|Pakistan|Bagh Sanjari}} PK-BA&lt;br /&gt;
* {{Tlx|ISO 3166 code|Pakistán|Baluchistan}} PK-BA&lt;br /&gt;
* {{Tlx|ISO 3166 code|Paquistán|Balochistan}} PK-BA&lt;br /&gt;
* {{Tlx|ISO 3166 code|PK|Baluchistan}} PK-BA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:ISO 3166 templates]]&lt;br /&gt;
[[Category:Data retrieval templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dervot</name></author>
	</entry>
</feed>