Module:Flags/MasterData: Difference between revisions

Content deleted Content added
mNo edit summary
Documenting and cleaning.
Line 1:
-- You don't want to touch this. :)
local m = {}
 
-- Defining tables
m.fullName = {}
m.twoLetter = {}
Line 7 ⟶ 6:
m.variant = {}
 
-- Structure of the table:
-- Misc flags --- m.fullName[""] = ""
-- 1. Full names
-- 1.1 International organizations
-- 1.2 ISO 3166-1 territories with subdivisions and/or variants
-- 1.3 Rest of ISO 3166-1 territories without additional flags
-- 1.4 Other territories not fitting above
-- 1.5 Other flags supported and not fitting above
-- 2. All 2 letter codes ISO 3166-1 alpha-2
-- 3. All 3 letter codes ISO 3166-1 alpha-3
 
-- 1. FULL NAMES
-- 1.1 INTERNATIONAL ORGANIZATIONS
m.fullName["African Union"] = ""
m.fullName["NATO"] = ""
 
m.fullName["Western Sahara"] = ""
-- 1.2 ISO 3166-1 TERRITORIES WITH SUBDIVISIONS AND/OR VARIANTS
-- ListFor ofthe countrieslist and dependentof territories according tosee http://en.wikipedia.org/wiki/ISO_3166-1
-- For the subdivisions see http://en.wikipedia.org/wiki/ISO_3166-2
-- For the subdivisions and variants see http://en.wikipedia.org/wiki/Category:Country_data_templates
 
-- AD, Andorra - http://en.wikipedia.org/wiki/Template:Country_data_Andorra
Line 66 ⟶ 80:
m.fullName["Wales"] = ""
 
-- 1.3 REST OF ISO 3166-1 TERRITORIES
-- Table of translations.
-- Format: ["english"] = "locale",
-- Some "english" labels have been modified to match the flag names in Commons.
-- Don't edit the "english" labels unless you know what you are doing!
-- Edit the "locale" labels only when they differ from "english".
-- Flag icons link to the article about "locale", or fallback to "english" if it's empty.
-- List of countries and dependent territories according to http://en.wikipedia.org/wiki/ISO_3166-1
 
m.fullName["Åland"] = ""
Line 478 ⟶ 486:
m.fullName["the United States Virgin Islands"] = ""
 
-- 1.4 OTHER TERRITORIES NOT FITTING ABOVE
-- 2 letter code http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements --
 
m.fullName["the Sahrawi Arab Democratic Republic"] = "Western Sahara"
 
-- 1.5 OTHER FLAGS SUPPORTED NOT FITTING ABOVE
 
 
-- ALL 2 LETTER CODES ISO 3166-1 alpha-2
-- 2 letter codeSee http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements --
 
m.twoLetter["Andorra"] = "AD"
Line 726 ⟶ 742:
m.twoLetter["Zimbabwe"] = "ZW"
 
-- ALL 3 LETTER CODES ISO 3166-1 alpha-3
-- 3 letter code list of countries and dependent territories according to http://en.wikipedia.org/wiki/ISO_3166-1
-- See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
 
m.threeLetter["Afghanistan"] = "AFG"
m.threeLetter["Åland"] = "ALA"
Line 972 ⟶ 990:
m.threeLetter["Zimbabwe"] = "ZWE"
 
-- You don't want to touch this either!
return m