Difference between revisions of "Module:Language/data/ISO 639 override"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trappist the monk
m (Protected "Module:Language/data/ISO 639 override": consistent with Module:Language/data/ISO 639-3 of the same series ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
blackwiki>Trappist the monk
(+article link support;)
Line 1: Line 1:
return {
+
--[[--------------------------< O V E R R I D E >--------------------------------------------------------------
 +
 
 +
Language codes and names in this table override the ISO 639 names in:
 +
Module:Language/data/iana languages
 +
Module:Language/data/ISO 639-2
 +
Module:Language/data/ISO 639-3
 +
Module:Language/data/ISO 639-5
 +
 
 +
code indexes in this table shall always be lower case
 +
 
 +
]]
 +
 
 +
local override = {
 
["ang"] = {"Old English"}, -- English, Old
 
["ang"] = {"Old English"}, -- English, Old
 
["dum"] = {"Middle Dutch"}, -- Dutch, Middle
 
["dum"] = {"Middle Dutch"}, -- Dutch, Middle
Line 22: Line 34:
 
["sga"] = {"Old Irish"}, -- Irish, Old
 
["sga"] = {"Old Irish"}, -- Irish, Old
 
["sot"] = {"Sotho"}, -- Sotho, Southern
 
["sot"] = {"Sotho"}, -- Sotho, Southern
 +
}
 +
 +
 +
--[[--------------------------< A R T I C L E _ L I N K >------------------------------------------------------
 +
 +
for those rare occasions when article titles don't fit with the normal '<language name> language', this table
 +
maps language code to article title.  Use of this table should be avoided and the use of redirects preferred as
 +
that is the long-standing method of handling article names that don't fit with the normal pattern
 +
 +
]]
 +
 +
local article_name = {
 +
["lij"] = {"Ligurian (Romance language)"}, -- see Template_talk:Lang#Ligurian_dab
 +
["xlg"] = {"Ligurian language (ancient)"}, -- see Template_talk:Lang#Ligurian_dab
 +
}
 +
 +
 +
--[[--------------------------< E X P O R T E D  T A B L E S >------------------------------------------------
 +
]]
 +
 +
return
 +
{
 +
override = override,
 +
article_name = article_name,
 
}
 
}

Revision as of 22:53, 18 December 2018

{{Module rating }}

Usage

{{#invoke:Language/data|function_name}}


--[[--------------------------< O V E R R I D E >--------------------------------------------------------------

Language codes and names in this table override the ISO 639 names in:
	Module:Language/data/iana languages
	Module:Language/data/ISO 639-2
	Module:Language/data/ISO 639-3
	Module:Language/data/ISO 639-5

code indexes in this table shall always be lower case

]]

local override = {
	["ang"] = {"Old English"},													-- English, Old
	["dum"] = {"Middle Dutch"},													-- Dutch, Middle
	["egy"] = {"Ancient Egyptian"},												-- 639-2, -3: Egyptian (Ancient)
	["el"] = {"Greek"},															-- 639-1: Modern Greek (1453-)
	["ell"] = {"Greek"},														-- Greek, Modern
	["enm"] = {"Middle English"},												-- English, Middle
	["frm"] = {"Middle French"},												-- French, Middle	
	["fro"] = {"Old French"},													-- French, Old
	["gmh"] = {"Middle High German"},											-- German, Middle High
	["goh"] = {"Old High German"},												-- German, Old High
	["grc"] = {"Ancient Greek"},												-- Greek, Ancient
	["mga"] = {"Middle Irish"},													-- Irish, Middle
	["nbl"] = {"Southern Ndebele"},												-- Ndebele, South
	["nde"] = {"Northern Ndebele"},												-- Ndebele, North
	["nob"] = {"Norwegian Bokmål"},												-- Bokmål, Norwegian
	["non"] = {"Old Norse"},													-- Norse, Old
	["ota"] = {"Ottoman Turkish"},												-- Turkish, Ottoman
	["peo"] = {"Old Persian"},													-- Persian, Old
	["pms"] = {"Piedmontese"},													-- ISO 639-3 name is Piemontese; to match en.wiki article title
	["pro"] = {"Old Occitan"},													-- Provençal, Old
	["sga"] = {"Old Irish"},													-- Irish, Old
	["sot"] = {"Sotho"},														-- Sotho, Southern
	}


--[[--------------------------< A R T I C L E _ L I N K >------------------------------------------------------

for those rare occasions when article titles don't fit with the normal '<language name> language', this table
maps language code to article title.  Use of this table should be avoided and the use of redirects preferred as
that is the long-standing method of handling article names that don't fit with the normal pattern

]]

local article_name = {
	["lij"] = {"Ligurian (Romance language)"},									-- see Template_talk:Lang#Ligurian_dab
	["xlg"] = {"Ligurian language (ancient)"},									-- see Template_talk:Lang#Ligurian_dab
	}


--[[--------------------------< E X P O R T E D   T A B L E S >------------------------------------------------
]]

return
	{
	override = override,
	article_name = article_name,
	}