Created tracking category statistics edit

Lua sandbox output edit

Name retrieval edit

3166-1 edit

  • {{ISO 3166 name/sandbox|AF|error=error}} → Afghanistan
  • {{ISO 3166 name/sandbox|AFG|error=error}} → Afghanistan
  • {{ISO 3166 name/sandbox|004|error=error}} → Afghanistan
  • {{ISO 3166 name/sandbox|GB|error=error}} → United Kingdom of Great Britain and Northern Ireland
  • {{ISO 3166 name/sandbox|GBR|error=error}} → United Kingdom of Great Britain and Northern Ireland
  • {{ISO 3166 name/sandbox|826|error=error}} → United Kingdom of Great Britain and Northern Ireland
  • {{ISO 3166 name/sandbox|BO|error=error}} → Bolivia, Plurinational State of
  • {{ISO 3166 name/sandbox|BO|error=error|isoname=1}} → Bolivia, Plurinational State of

3166-2 edit

  • {{ISO 3166 name/sandbox|GB-ENG|error=error}} → England
  • {{ISO 3166 name/sandbox|GB|ENG|error=error}} → England
  • {{ISO 3166 name/sandbox|GB-WLS|error=error}} → Wales
  • {{ISO 3166 name/sandbox|GB|WLS|error=error}} → Wales
  • {{ISO 3166 name/sandbox|GBR|ENG|error=error}} → England
  • {{ISO 3166 name/sandbox|UK|ENG|error=error}} → England
  • {{ISO 3166 name/sandbox|AQ|ENG|error=error}}

Code retrieval edit

3166-1 edit

  • {{ISO 3166 code/sandbox||error=error}}
  • {{ISO 3166 code/sandbox|Afghanistan|error=error}} → AF
  • {{ISO 3166 code/sandbox|Afghanistan|error=error|codetype=numeric}} → 004
  • {{ISO 3166 code/sandbox|Afghanistan|error=error|codetype=alpha3}} → AFG
  • {{ISO 3166 code/sandbox|004|error=error}} → AF
  • {{ISO 3166 code/sandbox|AF|error=error|codetype=numeric}} → 004
  • {{ISO 3166 code/sandbox|Bolivia Plurinational State Of|error=error}} → BO
  • {{ISO 3166 code/sandbox|Unitedkingdom|error=error}} → GB
  • {{ISO 3166 code/sandbox|UK|error=error}} → GB
  • {{ISO 3166 code/sandbox|Congo-Kinshasa|error=error}}
  • {{ISO 3166 code/sandbox|DRC|error=error}} → CD

3166-2 edit

  • {{ISO 3166 code/sandbox|UK|England|error=error}} → GB-ENG
  • {{ISO 3166 code/sandbox|UK|Scot Land|error=error}} → GB-SCT
  • {{ISO 3166 code/sandbox|Netherlands|Fryslan|error=error}} → NL-FR
  • {{ISO 3166 code/sandbox|NL|Friesland|error=error}} → NL-FR
  • {{ISO 3166 code/sandbox|Foo|Bar|error=error}}
  • {{ISO 3166 code/sandbox|UK|Bar|error=error}}
  • {{ISO 3166 code/sandbox|Antarctica|Bar|error=error}}

Display names edit

  • {{ISO 3166 code/sandbox|CZ|Karlovy Vary|error=error}} → CZ-412
  • {{ISO 3166 code/sandbox|CZ|Karlovy Vary (district)|error=error}} → CZ-412
  • {{ISO 3166 name/sandbox|CZ|KA|error=error}}
  • {{ISO 3166 name/sandbox|CZ|412|error=error}} → Karlovy Vary

Multilanguage ISO names edit

  • {{ISO 3166 name/sandbox|BE|BRU|error=error}} → Bruxelles-Capitale, Région de
  • {{ISO 3166 name/sandbox|BE|BRU|error=error|isoname=1}} → Bruxelles-Capitale, Région de
  • {{ISO 3166 name/sandbox|BE|BRU|error=error|lang=fr}} → Bruxelles-Capitale, Région de
  • {{ISO 3166 name/sandbox|BE|BRU|error=error|lang=nl}} → Brussels Hoofdstedelijk Gewest
  • {{ISO 3166 name/sandbox|BE|BRU|error=error|lang=ar}} → Bruxelles-Capitale, Région de
  • {{ISO 3166 code/sandbox|BE|Brussels Hoofdstedelijk Gewest|error=error}} → BE-BRU

Module:Country extract aliases test edit

Alternative names not in Module:ISO 3166/data/National:

  • CD: {{ISO 3166 code/sandbox|DROC|error=empty}}
  • CG: {{ISO 3166 code/sandbox|Congo Republic|error=empty}}
  • CG: {{ISO 3166 code/sandbox|West Congo|error=empty}}
  • CY: {{ISO 3166 code/sandbox|Republic of Cyprus|error=empty}}
  • LY: {{ISO 3166 code/sandbox|Libyan Arab Jamahiriya|error=empty}}
  • VG: {{ISO 3166 code/sandbox|Virgin Islands of the United Kingdom|error=empty}}
  • VG: {{ISO 3166 code/sandbox|Virgin Islands of the UK|error=empty}}
  • VI: {{ISO 3166 code/sandbox|American Virgin Islands|error=empty}}
  • VI: {{ISO 3166 code/sandbox|Virgin Islands of the United States|error=empty}}
  • VI: {{ISO 3166 code/sandbox|Virgin Islands of the U.S.|error=empty}}
  • VI: {{ISO 3166 code/sandbox|Virgin Islands of the US|error=empty}}

Disputed states using parent countries' codes:

  • AZ: {{ISO 3166 code/sandbox|Nagorno-Karabakh|error=empty}}
  • AZ: {{ISO 3166 code/sandbox|Nagorno-Karabakh Republic|error=empty}}
  • CY: {{ISO 3166 code/sandbox|Northern Cyprus|error=empty}}
  • CY: {{ISO 3166 code/sandbox|Turkish Republic of Northern Cyprus|error=empty}}
  • GE: {{ISO 3166 code/sandbox|South Ossetia|error=empty}}
  • GE: {{ISO 3166 code/sandbox|Tskhinvali Region|error=empty}}
  • MD: {{ISO 3166 code/sandbox|Transnistria|error=empty}}
  • RS: {{ISO 3166 code/sandbox|Kosovo|error=empty}}
  • SO: {{ISO 3166 code/sandbox|Somaliland|error=empty}}

Subnational codes:

  • GB-ENG: {{ISO 3166 code/sandbox|England|error=empty}} → GB-ENG
  • GB-SCT: {{ISO 3166 code/sandbox|Scotland|error=empty}} → GB-SCT
  • GB-WLS: {{ISO 3166 code/sandbox|Wales|error=empty}} → GB-WLS
  • GB-NIR: {{ISO 3166 code/sandbox|Northern Ireland|error=empty}} → GB-NIR
  • GB-EAW: {{ISO 3166 code/sandbox|England and Wales|error=empty}} → GB-EAW
  • GE-AB: {{ISO 3166 code/sandbox|Abkhazia|error=empty}}
  • GE-AB: {{ISO 3166 code/sandbox|Republic of Abkhazia|error=empty}}

Borders edit

Existence & redirects edit

  • France:   France
  • FRA:   FRA
  • Belgium: package.lua:80: module 'Module:Sandbox/Ahecht/flag/Belgium' not found
  • BEL: package.lua:80: module 'Module:Sandbox/Ahecht/flag/Belgium' not found

getvar edit

Without fallback:

  • foo: nil
  • alias: United States
  • alias-foo: nil
  • flag alias: Flag of the United States.svg
  • flag alias-foo: nil
  • flag alias-1776: Flag of the United States (1776–1777).svg
  • flag alias-navy: Flag of the United States Navy (official).svg
  • flag alias-navy-foo: nil
  • flag alias-navy-1864: Flag of the United States Navy (1864-1959).svg
  • link alias-rugby union: nil
  • link alias-rugby union-A: USA Selects
  • border: nil
  • border-Ohio: false
  • border-Nepal: false
  • border-Nepal-foo: nil
  • border-Nepal-Kathmandu: true

With fallback:

  • foo: nil
  • alias: United States
  • alias-foo: United States
  • flag alias: Flag of the United States.svg
  • flag alias-foo: Flag of the United States.svg
  • flag alias-1776: Flag of the United States (1776–1777).svg
  • flag alias-navy: Flag of the United States Navy (official).svg
  • flag alias-navy-foo: Flag of the United States Navy (official).svg
  • flag alias-navy-1864: Flag of the United States Navy (1864-1959).svg
  • link alias-rugby union: nil
  • link alias-rugby union-A: USA Selects
  • border: nil
  • border-Ohio: false
  • border-Nepal: false
  • border-Nepal-foo: false
  • border-Nepal-Kathmandu: true