Home
Random
Log in
Settings
About OrangDev Labs Wiki
Disclaimers
OrangDev Labs Wiki
Search
Editing
Module:Country2nationality
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} local data = { catalonia = "Catalan", ['guinea-bissau'] = "Bissau-Guinean", kosovo = "Kosovan", ['timor-leste'] = "East Timorese" } function p.c2n(country) country = mw.ustring.gsub( mw.text.trim(country), "^St. ", "Saint " ) local iso = require("Module:ISO 3166").code({country}) if #iso == 2 or #iso == 6 then return require("Module:Iso2nationality").i2n(iso) elseif data[mw.ustring.lower(country)] then return data[mw.ustring.lower(country)] end return country end p[''] = function (frame) return p.c2n(frame.args[1]) end return p
Summary:
Please note that all contributions to OrangDev Labs Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
OrangDev Labs Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Module:Country2nationality/doc
(
edit
)