Jump to content

Module talk:Sandbox/Wqnvlz/Preprocess ISO 3166 data

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
return {
  lang = "EN",
-- Countries and province
  ["ENG"] = {name="ENGLAND"},
  ["SCT"] = {name="SCOTLAND"},
  ["WLS"] = {name="WALES",altnames={"CYMRU"}},
  ["NIR"] = {name="NORTHERNIRELAND"},
-- Included for completeness as mentioned in remark part 2
  ["EAW"] = {name="ENGLANDANDWALES"},
  ["GBN"] = {name="GREATBRITAIN"},
  ["UKM"] = {name="UNITEDKINGDOM"},
-- England: Greater London
  ["LND"] = {name="CITYOFLONDON",isoname="LONDONCITYOF"},
  ["BDG"] = {name="BARKINGANDDAGENHAM"},
  ["BEN"] = {name="BRENT"},
  ["BEX"] = {name="BEXLEY"},
  ["BNE"] = {name="BARNET"},
  ["BRY"] = {name="BROMLEY"},
  ["CMD"] = {name="CAMDEN"},
  ["CRY"] = {name="CROYDON"},
  ["EAL"] = {name="EALING"},
  ["ENF"] = {name="ENFIELD"},
  ["GRE"] = {name="GREENWICH"},
  ["HAV"] = {name="HAVERING"},
  ["HCK"] = {name="HACKNEY"},
  ["HIL"] = {name="HILLINGDON"},
  ["HMF"] = {name="HAMMERSMITHANDFULHAM"},
  ["HNS"] = {name="HOUNSLOW"},
  ["HRW"] = {name="HARROW"},
  ["HRY"] = {name="HARINGEY"},
  ["ISL"] = {name="ISLINGTON"},
  ["KEC"] = {name="KENSINGTONANDCHELSEA"},
  ["KTT"] = {name="KINGSTONUPONTHAMES"},
  ["LBH"] = {name="LAMBETH"},
  ["LEW"] = {name="LEWISHAM"},
  ["MRT"] = {name="MERTON"},
  ["NWM"] = {name="NEWHAM"},
  ["RDB"] = {name="REDBRIDGE"},
  ["RIC"] = {name="RICHMONDUPONTHAMES"},
  ["STN"] = {name="SUTTON"},
  ["SWK"] = {name="SOUTHWARK"},
  ["TWH"] = {name="TOWERHAMLETS"},
  ["WFT"] = {name="WALTHAMFOREST"},
  ["WND"] = {name="WANDSWORTH"},
  ["WSM"] = {name="CITYOFWESTMINSTER",isoname="WESTMINSTER"},
-- England: Metropolitan districts
  ["BIR"] = {name="BIRMINGHAM"},
  ["BNS"] = {name="BARNSLEY"},
  ["BOL"] = {name="BOLTON"},
  ["BRD"] = {name="BRADFORD"},
  ["BUR"] = {name="BURY"},
  ["CLD"] = {name="CALDERDALE"},
  ["COV"] = {name="COVENTRY"},
  ["DNC"] = {name="DONCASTER"},
  ["DUD"] = {name="DUDLEY"},
  ["GAT"] = {name="GATESHEAD"},
  ["KIR"] = {name="KIRKLEES"},
  ["KWL"] = {name="KNOWSLEY"},
  ["LDS"] = {name="LEEDS"},
  ["LIV"] = {name="LIVERPOOL"},
  ["MAN"] = {name="MANCHESTER"},
  ["NET"] = {name="NEWCASTLEUPONTYNE"},
  ["NTY"] = {name="NORTHTYNESIDE"},
  ["OLD"] = {name="OLDHAM"},
  ["RCH"] = {name="ROCHDALE"},
  ["ROT"] = {name="ROTHERHAM"},
  ["SAW"] = {name="SANDWELL"},
  ["SFT"] = {name="SEFTON"},
  ["SHF"] = {name="SHEFFIELD"},
  ["SHN"] = {name="STHELENS",isoname="ST",altnames={"SAINTHELENS"}},
  ["SKP"] = {name="STOCKPORT"},
  ["SLF"] = {name="SALFORD"},
  ["SND"] = {name="SUNDERLAND"},
  ["SOL"] = {name="SOLIHULL"},
  ["STY"] = {name="SOUTHTYNESIDE"},
  ["TAM"] = {name="TAMESIDE"},
  ["TRF"] = {name="TRAFFORD"},
  ["WGN"] = {name="WIGAN"},
  ["WKF"] = {name="WAKEFIELD"},
  ["WLL"] = {name="WALSALL"},
  ["WLV"] = {name="WOLVERHAMPTON"},
  ["WRL"] = {name="WIRRAL"},
-- England: Two-tier counties
  ["BKM"] = {name="BUCKINGHAMSHIRE"},
  ["CAM"] = {name="CAMBRIDGESHIRE"},
  ["CMA"] = {name="CUMBRIA"},
  ["DBY"] = {name="DERBYSHIRE"},
  ["DEV"] = {name="DEVON"},
  ["DOR"] = {name="DORSET"},
  ["ESS"] = {name="ESSEX"},
  ["ESX"] = {name="EASTSUSSEX"},
  ["GLS"] = {name="GLOUCESTERSHIRE"},
  ["HAM"] = {name="HAMPSHIRE"},
  ["HRT"] = {name="HERTFORDSHIRE"},
  ["KEN"] = {name="KENT"},
  ["LAN"] = {name="LANCASHIRE"},
  ["LEC"] = {name="LEICESTERSHIRE"},
  ["LIN"] = {name="LINCOLNSHIRE"},
  ["NFK"] = {name="NORFOLK"},
  ["NTT"] = {name="NOTTINGHAMSHIRE"},
  ["NYK"] = {name="NORTHYORKSHIRE"},
  ["OXF"] = {name="OXFORDSHIRE"},
  ["SFK"] = {name="SUFFOLK"},
  ["SOM"] = {name="SOMERSET"},
  ["SRY"] = {name="SURREY"},
  ["STS"] = {name="STAFFORDSHIRE"},
  ["WAR"] = {name="WARWICKSHIRE"},
  ["WOR"] = {name="WORCESTERSHIRE"},
  ["WSX"] = {name="WESTSUSSEX"},
-- England: Unitary authorities
  ["CBF"] = {name="CENTRALBEDFORDSHIRE"},
  ["BAS"] = {name="BATHANDNORTHEASTSOMERSET"},
  ["BBD"] = {name="BLACKBURNWITHDARWEN"},
  ["BDF"] = {name="BEDFORD"},
  ["BCP"] = {name="BOURNEMOUTHCHRISTCHURCHANDPOOLE"},
  ["BNH"] = {name="BRIGHTONANDHOVE"},
  ["BPL"] = {name="BLACKPOOL"},
  ["BRC"] = {name="BRACKNELLFOREST"},
  ["BST"] = {name="BRISTOL",isoname="BRISTOLCITYOF",altnames={"CITYOFBRISTOL"}},
  ["CHE"] = {name="CHESHIREEAST"},
  ["CHW"] = {name="CHESHIREWESTANDCHESTER"},
  ["CON"] = {name="CORNWALL"},
  ["DAL"] = {name="DARLINGTON"},
  ["DER"] = {name="DERBY"},
  ["DUR"] = {name="DURHAM",isoname="DURHAMCOUNTY"},
  ["ERY"] = {name="EASTRIDINGOFYORKSHIRE"},
  ["HAL"] = {name="HALTON"},
  ["HEF"] = {name="HEREFORDSHIRE"},
  ["HPL"] = {name="HARTLEPOOL"},
  ["IOS"] = {name="ISLESOFSCILLY"},
  ["IOW"] = {name="ISLEOFWIGHT"},
  ["KHL"] = {name="KINGSTONUPONHULL"},
  ["LCE"] = {name="LEICESTER"},
  ["LUT"] = {name="LUTON"},
  ["MDB"] = {name="MIDDLESBROUGH"},
  ["MDW"] = {name="MEDWAY"},
  ["MIK"] = {name="MILTONKEYNES"},
  ["NBL"] = {name="NORTHUMBERLAND"},
  ["NEL"] = {name="NORTHEASTLINCOLNSHIRE"},
  ["NGM"] = {name="NOTTINGHAM"},
  ["NLN"] = {name="NORTHLINCOLNSHIRE"},
  ["NNH"] = {name="NORTHNORTHAMPTONSHIRE"},
  ["NSM"] = {name="NORTHSOMERSET"},
  ["PLY"] = {name="PLYMOUTH"},
  ["POR"] = {name="PORTSMOUTH"},
  ["PTE"] = {name="PETERBOROUGH"},
  ["RCC"] = {name="REDCARANDCLEVELAND"},
  ["RDG"] = {name="READING"},
  ["RUT"] = {name="RUTLAND"},
  ["SGC"] = {name="SOUTHGLOUCESTERSHIRE"},
  ["SHR"] = {name="SHROPSHIRE"},
  ["SLG"] = {name="SLOUGH"},
  ["SOS"] = {name="SOUTHENDONSEA"},
  ["STE"] = {name="STOKEONTRENT"},
  ["STH"] = {name="SOUTHAMPTON"},
  ["STT"] = {name="STOCKTONONTEES"},
  ["SWD"] = {name="SWINDON"},
  ["TFW"] = {name="TELFORDANDWREKIN"},
  ["THR"] = {name="THURROCK"},
  ["TOB"] = {name="TORBAY"},
  ["WBK"] = {name="WESTBERKSHIRE"},
  ["WIL"] = {name="WILTSHIRE"},
  ["WNH"] = {name="WESTNORTHAMPTONSHIRE"},
  ["WNM"] = {name="WINDSORANDMAIDENHEAD"},
  ["WOK"] = {name="WOKINGHAM"},
  ["WRT"] = {name="WARRINGTON"},
  ["YOR"] = {name="YORK"},
-- Scotland
  ["ABD"] = {name="ABERDEENSHIRE"},
  ["ABE"] = {name="ABERDEENCITY",altnames={"ABERDEEN"}},
  ["AGB"] = {name="ARGYLLANDBUTE"},
  ["ANS"] = {name="ANGUS"},
  ["CLK"] = {name="CLACKMANNANSHIRE"},
  ["DGY"] = {name="DUMFRIESANDGALLOWAY"},
  ["DND"] = {name="DUNDEECITY",altnames={"DUNDEE"}},
  ["EAY"] = {name="EASTAYRSHIRE"},
  ["EDH"] = {name="CITYOFEDINBURGH",isoname="EDINBURGHCITYOF",altnames={"EDINBURGH"}},
  ["EDU"] = {name="EASTDUNBARTONSHIRE"},
  ["ELN"] = {name="EASTLOTHIAN"},
  ["ELS"] = {name="EILEANSIAR",altnames={"NAHEILEANANSIAR","OUTERHEBRIDES"}},
  ["ERW"] = {name="EASTRENFREWSHIRE"},
  ["FAL"] = {name="FALKIRK"},
  ["FIF"] = {name="FIFE"},
  ["GLG"] = {name="GLASGOWCITY",altnames={"GLASGOW"}},
  ["HLD"] = {name="HIGHLAND"},
  ["IVC"] = {name="INVERCLYDE"},
  ["MLN"] = {name="MIDLOTHIAN"},
  ["MRY"] = {name="MORAY"},
  ["NAY"] = {name="NORTHAYRSHIRE"},
  ["NLK"] = {name="NORTHLANARKSHIRE"},
  ["ORK"] = {name="ORKNEYISLANDS",altnames={"ORKNEY"}},
  ["PKN"] = {name="PERTHANDKINROSS"},
  ["RFW"] = {name="RENFREWSHIRE"},
  ["SAY"] = {name="SOUTHAYRSHIRE"},
  ["SCB"] = {name="SCOTTISHBORDERS",altnames={"SCOTTISHBORDERS"}},
  ["SLK"] = {name="SOUTHLANARKSHIRE"},
  ["STG"] = {name="STIRLING"},
  ["WDU"] = {name="WESTDUNBARTONSHIRE"},
  ["WLN"] = {name="WESTLOTHIAN"},
  ["ZET"] = {name="SHETLANDISLANDS",altnames={"SHETLAND"}},
-- Northern Ireland
  ["ABC"] = {name="ARMAGHCITYBANBRIDGEANDCRAIGAVON"},
  ["AND"] = {name="ARDSANDNORTHDOWN"},
  ["ANN"] = {name="ANTRIMANDNEWTOWNABBEY"},
  ["BFS"] = {name="BELFAST",isoname="BELFASTCITY"},
  ["CCG"] = {name="CAUSEWAYCOASTANDGLENS"},
  ["DRS"] = {name="DERRYCITYANDSTRABANE",isoname="DERRYANDSTRABANE"},
  ["FMO"] = {name="FERMANAGHANDOMAGH"},
  ["LBC"] = {name="LISBURNANDCASTLEREAGH"},
  ["MEA"] = {name="MIDANDEASTANTRIM"},
  ["MUL"] = {name="MIDULSTER"},
  ["NMD"] = {name="NEWRYMOURNEANDDOWN"},
-- Wales
  ["AGY"] = {name="ANGLESEY",isoname="ISLEOFANGLESEY",altnames={"YNYSMON","SIRYNYSMON"}},
  ["BGE"] = {name="BRIDGEND",altnames={"PENYBONTAROGWR"}},
  ["BGW"] = {name="BLAENAUGWENT"},
  ["CAY"] = {name="CAERPHILLY",altnames={"CAERFFILI"}},
  ["CGN"] = {name="CEREDIGION",altnames={"SIRCEREDIGION"}},
  ["CMN"] = {name="CARMARTHENSHIRE",altnames={"SIRGAERFYRDDIN"}},
  ["CRF"] = {name="CARDIFF",altnames={"CAERDYDD"}},
  ["CWY"] = {name="CONWY"},
  ["DEN"] = {name="DENBIGHSHIRE",altnames={"SIRDDINBYCH"}},
  ["FLN"] = {name="FLINTSHIRE",altnames={"SIRYFFLINT"}},
  ["GWN"] = {name="GWYNEDD"},
  ["MON"] = {name="MONMOUTHSHIRE",altnames={"SIRFYNWY"}},
  ["MTY"] = {name="MERTHYRTYDFIL",altnames={"MERTHYRTUDFUL"}},
  ["NTL"] = {name="NEATHPORTTALBOT",altnames={"CASTELLNEDDPORTTALBOT"}},
  ["NWP"] = {name="NEWPORT",altnames={"CASNEWYDD"}},
  ["PEM"] = {name="PEMBROKESHIRE",altnames={"SIRBENFRO"}},
  ["POW"] = {name="POWYS"},
  ["RCT"] = {name="RHONDDACYNONTAF",isoname="RHONDDACYNONTAFF"},
  ["SWA"] = {name="SWANSEA",altnames={"ABERTAWE"}},
  ["TOF"] = {name="TORFAEN",altnames={"TORFAEN"}},
  ["VGL"] = {name="VALEOFGLAMORGAN",isoname="VALEOFGLAMORGANTHE",altnames={"VALEOFGLAMORGAN","BROMORGANNWG"}},
  ["WRX"] = {name="WREXHAM",altnames={"WRECSAM"}}
}

Start a discussion about improving the Module:Sandbox/Wqnvlz/Preprocess ISO 3166 data page

Start a discussion