Fandom Developers Wiki
Advertisement

This is the talk page for discussing improvements to the Global Lua Modules/Country page.

Demonyms?[]

I have this template that has both nationality/citizenship (uses the demonym form) and country of residence (use country name). I hope it's not too difficult/tedious to add one more parameter for the demonym. — mfaizsyahmi (message wall) 21:46, December 31, 2015 (UTC)

While it is certainly possible to add this information, the problem is that there aren't any rules or formal body that decides demonyms, and naming stuff is generally a subject of a lot of controversy, and possibly "wars". This article  explains it quite well. So it doesn't seem like a good idea to add it to the module stored here, but you can copy Module:Country and Module:Country/data and to your wiki and add as many or as little as you need. Note, you'll need to replace the line in module:country :

local countryData = mw.loadData("Dev:Country/data")

With :

local countryData = mw.loadData("Module:Country/data")

The module that contains the country data is Module:Country/data. New entries can be added like this :

ar = {
    ["alpha-2"] = "AR",
    ["alpha-3"] = "ARG",
    ["country-code"] = "032",
    ["iso_3166-2"] = "ISO 3166-2:AR",
    name = "Argentina",
    region = "Americas",
    ["region-code"] = "019",
    ["sub-region"] = "South America",
    ["sub-region-code"] = "005",
    ["demonym"] = "argentinian" --<-- Add here
  },

That would be needed for all the entries. One can then use the module:

{{#invoke:Country|main|ar|demonym}}

.

Dessamator (talk) 10:52, January 1, 2016 (UTC)

Yes, it doesn't look difficult to implement. With 200+ countries, though, it'd certainly be a lot of work, hence why I want to look into whether it can be done here so I don't have to do the hard work! :P
By the way, you just picked the worst example. As I've learned from the wiki I need this on, they assert that it's never "Argentinian" but "Argentine". — mfaizsyahmi (message wall) 12:06, January 16, 2016 (UTC)
Anyone can edit these modules. So they could change it if they so wished. I didn't really write these all myself, I just converted it using a simple script.
My example is perfect because it clearly shows how people disagree with these names. The only way it could work is if something would be added to allow people to define custom / prefered names for each wiki.
Dessamator (talk) 12:40, January 16, 2016 (UTC)
Advertisement