வார்ப்புரு:ConvertAbbrev
&lt;includeonly&gt;{{ConvertAbbrev&lt;!--
 
 #####Detect if first parameter is a country#####
 
 --&gt;{{#ifexist:Template:ConvertAbbrev/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{{1}}}|force=abbr}}|&lt;!--
 
 ##########{{{1}}} = country name or 2-letter abbreviation##########
 
 --&gt;/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{{1}}}|force=abbr}}|{{#ifexist:Template:ConvertAbbrev/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{ConvertAbbrev/ISO 3166-1/alpha-3|{{{1}}}|force=long}}}}|&lt;!--
 
 ##########{{{1}}} = 3-letter abbreviation##########
 
 --&gt;/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{ConvertAbbrev/ISO 3166-1/alpha-3|{{{1}}}|force=long}}}}|&lt;!--
 
 #####Default to type parameter#####
 
 --&gt;/{{#switch: {{lc:{{{1}}}}}
 |iso 3166-1                                = ISO 3166-1
 |iso 3166-2                                = ISO 3166-2
 |countries                                 = ISO 3166-
 |iso 639|iso 639-1|languages1              = ISO 639-1
 |iso 639-2|languages2                      = ISO 639-2
 |languages                                 = ISO 639-
 |404&lt;!--Invalid first parameter--&gt;}}}}}}&lt;!--
 
 #####If {{{1}}} = &quot;countries&quot;#####
 
 --&gt;{{#ifeq: {{lc:{{{1}}}}}|countries|&lt;!--
 
 ##########If looking for province/state or specific type of abbreviation##########
 
 --&gt;{{#if:{{{3|}}}|&lt;!--
 
 ###############Try country names first################
 
 --&gt;{{#ifexist:Template:ConvertAbbrev/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{{2}}}|force=abbr}}|&lt;!--
 
 ####################{{{2}}} = country name or 2-letter abbreviation####################
 
 --&gt;2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{{2}}}|force=abbr}}|{{#ifexist:Template:ConvertAbbrev/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{ConvertAbbrev/ISO 3166-1/alpha-3|{{{2}}}|force=long}}}}|&lt;!--
 
 ####################{{{2}}} = 3-letter abbreviation####################
 
 --&gt;2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{ConvertAbbrev/ISO 3166-1/alpha-3|{{{2}}}|force=long}}}}|&lt;!--
 
 ###############Default to types, special abbreviations###############
 
 --&gt;{{#switch: {{lc:{{{2}}}}}
 |alpha-2|alpha 2|2-letter|2 letter|two|2   = 1/alpha-2
 |alpha-3|alpha 3|3-letter|3 letter|three|3 = 1/alpha-3
 |numeric|numbers|numeric-3                 = 1/numeric
 |usps                                      = 2/US
 |2/404&lt;!--Country not yet supported--&gt;}}}}}}|&lt;!--
 
 ##########If just country##########
 
 --&gt;1/alpha-2}}}}&lt;!--
 
 #####If {{{1}}} = &quot;ISO 3166-1&quot;#####
 
 --&gt;{{#ifeq: {{lc:{{{1}}}}}|iso 3166-1|&lt;!--
 
 ##########If type specified##########
 
 --&gt;/{{#if:{{{3|}}}|{{#switch: {{lc:{{{2}}}}}
 |alpha-2|alpha 2|2-letter|2 letter|two|2   = alpha-2
 |alpha-3|alpha 3|3-letter|3 letter|three|3 = alpha-3
 |numeric|numbers                           = numeric
 |404&lt;!--Invalid abbreviation type--&gt;}}|&lt;!--
 
 ##########If NOT specified##########
 
 --&gt;alpha-2}}}}&lt;!--
 
 #####If {{{1}}} = &quot;ISO 3166-2&quot;#####
 
 --&gt;{{#ifeq: {{lc:{{{1}}}}}|iso 3166-2|/{{#ifexist:Template:ConvertAbbrev/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{{2}}}|force=abbr}}|&lt;!--
 
 ##########{{{2}}} = country name or 2-letter abbreviation##########
 
 --&gt;{{ConvertAbbrev/ISO 3166-1/alpha-2|{{{2}}}|force=abbr}}|{{#ifexist:Template:ConvertAbbrev/ISO 3166-2/{{ConvertAbbrev/ISO 3166-1/alpha-2|{{ConvertAbbrev/ISO 3166-1/alpha-3|{{{2}}}|force=long}}}}|&lt;!--
 
 ##########{{{2}}} = 3-letter abbreviation##########
 
 --&gt;{{ConvertAbbrev/ISO 3166-1/alpha-2|{{ConvertAbbrev/ISO 3166-1/alpha-3|{{{2}}}|force=long}}}}|&lt;!--
 
 ##########Special abbreviations##########
 
 --&gt;{{#switch: {{lc:{{{2}}}}}|usps = US|404&lt;!--Country not yet supported--&gt;}}}}}}
 }}&lt;!--
 
 #####If {{{1}}} = &quot;languages&quot;#####
 
 --&gt;{{#ifeq: {{lc:{{{1}}}}}|languages|&lt;!--
 
 ##########If type specified##########
 
 --&gt;{{#if:{{{3|}}}|{{#switch: {{lc:{{{2}}}}}
 |639-1|-1|1|2-letter|2 letter              = 1
 |639-2|-2|2|3-letter|3 letter              = 2
 |1/404&lt;!--Invalid language type--&gt;}}|&lt;!--
 
 ##########If NOT specified##########