<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?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://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AISO_3166_conversion_template_doc"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Template:ISO_3166_conversion_template_doc&amp;action=history"/>
	<updated>2026-05-15T09:46:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Template:ISO_3166_conversion_template_doc&amp;diff=3451&amp;oldid=prev</id>
		<title>Tachyony: Imported page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Template:ISO_3166_conversion_template_doc&amp;diff=3451&amp;oldid=prev"/>
		<updated>2021-12-09T13:29:26Z</updated>

		<summary type="html">&lt;p&gt;Imported page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;{{{{{|safesubst:}}}#invoke:Unsubst||subst=|$flags=override,keep-whitespace,remove-empty|$B={{Documentation|1=Template:ISO 3166 conversion template doc|content=&amp;lt;span style=&amp;quot;font-size:90%;&amp;quot;&amp;gt;{{Bracket|[[Template:ISO_3166_conversion_template_doc|view]]}} [{{Edit|Template:ISO_3166_conversion_template_doc}}] [{{purge|purge}}]&amp;lt;/span&amp;gt;&lt;br /&gt;
{{#if:{{{lua|}}}|{{lua|{{{lua|}}}}}|}}&lt;br /&gt;
==Templates==&lt;br /&gt;
===ISO 3166-1===&lt;br /&gt;
ISO 3166-1 alpha-2: {{Tl|ISO 3166 code}} (Eg: {{ISO 3166 code|Iran}})&amp;lt;br&amp;gt;&lt;br /&gt;
ISO 3166-1 alpha-3: {{Tl|ISO 3166 code-3}} (Eg: {{ISO 3166 code-3|Iran}})&amp;lt;br&amp;gt;&lt;br /&gt;
ISO 3166-1 numeric: {{Tl|ISO 3166 numeric}} (Eg: {{ISO 3166 numeric|Iran}})&lt;br /&gt;
===ISO 3166-2===&lt;br /&gt;
ISO 3166-2: {{Tl|ISO 3166 code}} (Eg: {{ISO 3166 code|Iran|Alborz}})&amp;lt;br&amp;gt;&lt;br /&gt;
ISO 3166-2 name: {{tl|ISO 3166 name}} (Eg: {{ISO 3166 name|Iran}})&lt;br /&gt;
===Non-ISO 3166===&lt;br /&gt;
Country name: {{tl|Country name}} (Eg: {{Country name|Iran}})&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--===ISO 3166-3===&lt;br /&gt;
ISO 3166-3:--&amp;gt;&lt;br /&gt;
==Usage==&lt;br /&gt;
{{#switch:{{NAMESPACE}}&lt;br /&gt;
|Template=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.&lt;br /&gt;
|Category=This category contains part of the series of templates resolves the country and subdivision names to [[ISO 3166-1]] and [[ISO 3166-2]] codes, and vice versa.&lt;br /&gt;
|This {{lcfirst:{{NAMESPACE}}}} relates to a series of templates resolves the country and subdivision names to [[ISO 3166-1]] and [[ISO 3166-2]] codes, and vice versa.&lt;br /&gt;
}}{{#ifeq:{{Str len|{{{3|}}}}}|2|See also: [[ISO 3166-2:{{{3}}}]]}}{{#if:{{{spec|}}}|&lt;br /&gt;
==Special case==&lt;br /&gt;
{{{spec|}}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==ISO 3166==&lt;br /&gt;
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;
==Using the family of templates==&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;
; To get the &amp;#039;&amp;#039;&amp;#039;Alpha-2&amp;#039;&amp;#039;&amp;#039; code we can use {{Tlx|ISO 3166 code}} with any of the country identifiers.&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;
; To get the &amp;#039;&amp;#039;&amp;#039;Alpha-3&amp;#039;&amp;#039;&amp;#039; 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|پاکستان}} Pakistan &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;
;The subdivision code can be obtained in the following ways.&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;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{{4|}}}|name|{{#if:{{{2|}}}|[[Category:ISO 3166 name from code templates{{!}}{{{1}}} {{{2}}}]]|[[Category:ISO 3166 name from code country templates{{!}}{{{1|}}}]]}}|{{#if:{{{2|}}}|[[Category:ISO 3166 code from name templates{{!}}{{{1}}} {{{2}}}]]|[[Category:ISO 3166 code from name country templates{{!}}{{{1|}}}]]}}}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Documentation shared content templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>