nrf for Norman

Jump to navigation Jump to search

nrf for Norman

OK, so if I want to edit Module:wikimedia_languages/data so that it knows that what we call "nrf" is what Wikipedia calls "nrm", can I write:

m["nrm"] = {
	wiktionary_code = "roa-nor", "nrf",
}

or do I have to repeat the whole shebang and write:

m["nrm"] = {
	wiktionary_code = "roa-nor",
}

m["nrm"] = {
	wiktionary_code = "nrf",
}

in full? I don't want to eliminate "roa-nor" yet, because there are still pages that use that.

Aɴɢʀ (talk)18:46, 25 January 2015

Neither would work. The first would trigger an error, and in the second example the second definition will override the first.

CodeCat19:04, 25 January 2015

So there's no way to get both {{wikipedia|lang=roa-nor}} and {{wikipedia|lang=nrf}} to point to w:nrm:?

Aɴɢʀ (talk)19:07, 25 January 2015

Module:wikimedia languages/data defines the mapping from Wikimedia languages to Wiktionary ones. So it's what you'd use if you have a Wikimedia code and want to convert it to a local code. What you're doing is the reverse, which is handled by our regular language modules.

CodeCat19:10, 25 January 2015