Difference between revisions of "Template:CountryAbbr"

From blackwiki
Jump to navigation Jump to search
imported>Yashovardhan Dhanania
(Updating TFD template: discussion was relisted (XFDcloser))
imported>Plastikspork
(Update)
Line 1: Line 1:
<noinclude>{{Tfm/dated|page=CountryAbbr|otherpage=Country abbreviation|link=Wikipedia:Templates for discussion/Log/2017 June 5#Template:CountryAbbr|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}</noinclude><includeonly>{{{{{subst|}}}#switch:{{{1}}}
+
<noinclude>{{Tfm/dated|page=CountryAbbr|otherpage=Country abbreviation|link=Wikipedia:Templates for discussion/Log/2017 June 5#Template:CountryAbbr|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}</noinclude><includeonly>{{safesubst:#switch:{{{1}}}
 
|=
 
|=
|United States|[[United States]]=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}}}}
+
|United States|[[United States]]={{safesubst:ISO 3166 code|United States|{{{2|}}}}}
|Canada|[[Canada]]|[[Canada]] [[Image:Flag of Canada.svg|25px]]|[[Image:Flag of Canada.svg|25px]] [[Canada]]=CA-{{{{{subst|}}}#switch:{{{2|}}}
+
|Canada|[[Canada]]|[[Canada]] [[Image:Flag of Canada.svg|25px]]|[[Image:Flag of Canada.svg|25px]] [[Canada]]=CA-{{safesubst:#switch:{{{2|}}}
 
  |Alberta|[[Alberta]]=AB
 
  |Alberta|[[Alberta]]=AB
 
  |British Columbia|[[British Columbia]]=BC
 
  |British Columbia|[[British Columbia]]=BC
Line 15: Line 15:
 
  |Quebec|[[Quebec]]|Québec|[[Québec]]|[[Quebec|Québec]]=QC
 
  |Quebec|[[Quebec]]|Québec|[[Québec]]|[[Quebec|Québec]]=QC
 
  |Saskatchewan|[[Saskatchewan]]=SK
 
  |Saskatchewan|[[Saskatchewan]]=SK
  |Yukon|[[Yukon]]=YT|{{{{{subst|}}}CanAbbr2|{{{2|}}}|subst={{{subst|}}}}}}}
+
  |Yukon|[[Yukon]]=YT|{{safesubst:ISO 3166 code|Canada|{{{2|}}}}}}}
 
|Brazil|[[Brazil]]|[[Image:Flag of Brazil.svg|25px]] [[Brazil]]=BR
 
|Brazil|[[Brazil]]|[[Image:Flag of Brazil.svg|25px]] [[Brazil]]=BR
 
|Andorra|[[Andorra]]=AD
 
|Andorra|[[Andorra]]=AD
Line 25: Line 25:
 
|Armenia|[[Armenia]]=AM
 
|Armenia|[[Armenia]]=AM
 
|Netherlands Antilles|[[Netherlands Antilles]]=AN
 
|Netherlands Antilles|[[Netherlands Antilles]]=AN
|Kingdom of the Netherlands|[[Kingdom of the Netherlands]]={{{{{subst|}}}#switch:{{{2|}}}
+
|Kingdom of the Netherlands|[[Kingdom of the Netherlands]]={{safesubst:#switch:{{{2|}}}
 
  |{{nowrap|[[Netherlands Antilles]]}}|Netherlands Antilles|[[Netherlands Antilles]]=AN
 
  |{{nowrap|[[Netherlands Antilles]]}}|Netherlands Antilles|[[Netherlands Antilles]]=AN
 
  |[[Aruba]]|Aruba=AW
 
  |[[Aruba]]|Aruba=AW
Line 74: Line 74:
 
|Cyprus|[[Cyprus]]=CY
 
|Cyprus|[[Cyprus]]=CY
 
|Czech Republic|Czechia|[[Czech Republic]]|[[Czechia]]=CZ
 
|Czech Republic|Czechia|[[Czech Republic]]|[[Czechia]]=CZ
|Germany|[[Germany]]=DE{{{{{subst|}}}#switch:{{{2|}}}
+
|Germany|[[Germany]]=DE{{safesubst:#switch:{{{2|}}}
 
  |Baden-Wuerttemberg|Baden-Württemberg|[[Baden-Württemberg]]=-BW
 
  |Baden-Wuerttemberg|Baden-Württemberg|[[Baden-Württemberg]]=-BW
 
  |Bayern|Bavaria|[[Bavaria]]=-BY
 
  |Bayern|Bavaria|[[Bavaria]]=-BY
Line 92: Line 92:
 
  |Thüringen|Thuringia|[[Thuringia]]=-TH|}}
 
  |Thüringen|Thuringia|[[Thuringia]]=-TH|}}
 
|Djibouti|[[Djibouti]]|[[Image:Flag of Djibouti.svg|25px]] [[ Djibouti]]=DJ
 
|Djibouti|[[Djibouti]]|[[Image:Flag of Djibouti.svg|25px]] [[ Djibouti]]=DJ
|Denmark|[[Denmark]]|Kingdom of Denmark|[[Kingdom of Denmark]]={{{{{subst|}}}#switch:{{{2|}}}
+
|Denmark|[[Denmark]]|Kingdom of Denmark|[[Kingdom of Denmark]]={{safesubst:#switch:{{{2|}}}
 
  |Greenland|[[Greenland]]|[[Image:Flag of Greenland.svg|25px]] [[Greenland]]=GL
 
  |Greenland|[[Greenland]]|[[Image:Flag of Greenland.svg|25px]] [[Greenland]]=GL
 
  |DK}}
 
  |DK}}
Line 110: Line 110:
 
|Federated States of Micronesia |Micronesia|[[Federated States of Micronesia]]|[[Micronesia]]=FM
 
|Federated States of Micronesia |Micronesia|[[Federated States of Micronesia]]|[[Micronesia]]=FM
 
|Faroe Islands|[[Faroe Islands]]=FO
 
|Faroe Islands|[[Faroe Islands]]=FO
|France|[[France]]=FR{{{{{subst|}}}#switch:{{{2|}}}
+
|France|[[France]]=FR{{safesubst:#switch:{{{2|}}}
 
  |Ain|[[Ain]]=-01
 
  |Ain|[[Ain]]=-01
 
  |Charente-Maritime|[[Charente-Maritime]]=-17
 
  |Charente-Maritime|[[Charente-Maritime]]=-17
Line 127: Line 127:
 
  |Yonne|[[Yonne]]=-89
 
  |Yonne|[[Yonne]]=-89
 
  |Territoire de Belfort|[[Territoire de Belfort]]=-90
 
  |Territoire de Belfort|[[Territoire de Belfort]]=-90
  |{{{{{subst|}}}FraAbbr|{{{2|}}}|subst={{{subst|}}}}}}}
+
  |{{safesubst:ISO 3166 code|France|{{{2|}}}}}}}
 
|Gabon|[[Gabon]]|[[Image:Flag of Gabon.svg|25px]] [[Gabon]]=GA
 
|Gabon|[[Gabon]]|[[Image:Flag of Gabon.svg|25px]] [[Gabon]]=GA
 
|United Kingdom|Great Britain|UK|GB|England|Wales|[[England]]|[[United Kingdom]]|[[Great Britain]]|[[UK]]|[[GB]]|[[Wales]]|[[UK|United Kingdom]]=GB
 
|United Kingdom|Great Britain|UK|GB|England|Wales|[[England]]|[[United Kingdom]]|[[Great Britain]]|[[UK]]|[[GB]]|[[Wales]]|[[UK|United Kingdom]]=GB
Line 157: Line 157:
 
|Israel|[[Israel]]=IL
 
|Israel|[[Israel]]=IL
 
|Isle of Man|[[Isle of Man]]=IM
 
|Isle of Man|[[Isle of Man]]=IM
|India|[[India]]=IN-{{{{{subst|}}}IndAbbr|{{{2|}}}|subst={{{subst|}}}}}
+
|India|[[India]]={{safesubst:ISO 3166 code|India|{{{2|}}}}}
 
|British Indian Ocean Territory|[[British Indian Ocean Territory]]=IO
 
|British Indian Ocean Territory|[[British Indian Ocean Territory]]=IO
 
|Iraq|[[Iraq]]|[[Image:Flag of Iraq.svg|25px]] [[Iraq]]=IQ
 
|Iraq|[[Iraq]]|[[Image:Flag of Iraq.svg|25px]] [[Iraq]]=IQ
Line 209: Line 209:
 
|Maldives|[[Maldives]]=MV
 
|Maldives|[[Maldives]]=MV
 
|Malawi|[[Malawi]]|[[Image:Flag of Malawi.svg|25px]] [[Malawi]]=MW
 
|Malawi|[[Malawi]]|[[Image:Flag of Malawi.svg|25px]] [[Malawi]]=MW
|Mexico|[[Mexico]]|[[Image:Flag of Mexico.svg|border|20px]] [[Mexico]]|[[Image:Flag of Mexico.svg|25px]] [[Mexico]]=MX{{{{{subst|}}}#switch:{{{2|}}}
+
|Mexico|[[Mexico]]|[[Image:Flag of Mexico.svg|border|20px]] [[Mexico]]|[[Image:Flag of Mexico.svg|25px]] [[Mexico]]=MX{{safesubst:#switch:{{{2|}}}
 
  |Guerrero|[[Guerrero]]=-GRO|}}
 
  |Guerrero|[[Guerrero]]=-GRO|}}
 
|Malaysia|[[Malaysia]]|[[Image:Flag of Malaysia.svg|25px]] [[Malaysia]]=MY
 
|Malaysia|[[Malaysia]]|[[Image:Flag of Malaysia.svg|25px]] [[Malaysia]]=MY
Line 300: Line 300:
 
|Zambia|[[Zambia]]|[[Image:Flag of Zambia.svg|25px]] [[Zambia]]=ZM
 
|Zambia|[[Zambia]]|[[Image:Flag of Zambia.svg|25px]] [[Zambia]]=ZM
 
|Zimbabwe|[[Zimbabwe]]=ZW
 
|Zimbabwe|[[Zimbabwe]]=ZW
|{{USA}}=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}}}}
+
|{{USA}}={{safesubst:ISO 3166 code|United States|{{{2|}}}}}
|USA|United States of America|US|[[USA]]|[[United States of America|United States]]|[[United States of America|USA]]|[[United States of America]]|[[United States|United States of America]]|[[US]]|[[Image:Flag of the United States.svg|20px]] [[United States]]|[[Image:Flag of the United States.svg|20px]][[United States]]|{{flagicon|USA}} [[United States]]=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}}}}{{{{{subst|}}}CountryAbbr/debug}}
+
|USA|United States of America|US|[[USA]]|[[United States of America|United States]]|[[United States of America|USA]]|[[United States of America]]|[[United States|United States of America]]|[[US]]|[[Image:Flag of the United States.svg|20px]] [[United States]]|[[Image:Flag of the United States.svg|20px]][[United States]]|{{flagicon|USA}} [[United States]]={{safesubst:ISO 3166 code|United States|{{{2|}}}}}
|{{CAN}}=CA-{{{{{subst|}}}CanAbbr2|{{{2|}}}|subst={{{subst|}}}}}
+
|{{CAN}}={{safesubst:ISO 3166 code|Canada|{{{2|}}}}}
 
|{{PRC}}=CN
 
|{{PRC}}=CN
|{{{{{subst|}}}CountryAbbr2|{{{1|}}}|{{{2|}}}|subst={{{subst|}}}|{{#if:{{{debug|}}}|debug={{{debug}}}}}}}
+
|{{safesubst:ISO 3166 code|{{{1|}}}|{{{2|}}}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 23:41, 5 June 2017

Template:Tfm/dated

Template documentation[create]