ISO3166 Countries and Subcountries from Wikipedia

### WWW::Scraper::Wikipedia::ISO3166 V <: $version :>

### ISO3166 Countries and Subcountries from Wikipedia

This data displayed here is shipped in the above module in share/www.scraper.wikipedia.iso3166.sqlite, and installed in a shared directory when you install the module. See the FAQ entry Where is the database? for details.

The database structure is documented in the FAQ entry What is the database schema?. This includes a discussion of countries not having a Code3 (3-letter country code).

The Wikipedia sources for this are:

- Countries
- 3-letter country codes

Also, the subcountry pages are linked off each country's 2-letter code entry in the first of those 2 links.

To check your browser's rendering, scroll to the bottom and check entry 249, AX. The Å of Åland should have a ring on top of it, just as this line and Wikipedia do.

Wikipedia sorts countries by their Code2, whereas I have chosen to sort by NFC($name), where the NFC() method comes from Unicode::Normalize. Usage of NFC() is discussed in the module's FAQ entry Why did you use Unicode::Normalize's NFC() for sorting?.

Lastly: # is just a sequential number, while 'Db key' is the primary key in the countries table.

### Countries and Subcountries

: include "basic.table.tx" { row => $country_data };