Módulu:Wikidata/i18n

De Wikipedia
Saltar a navegación Saltar a la gueta

La documentación pa esti módulu pue crease'n Módulu:Wikidata/i18n/usu

local i18n = {
	["errors"] = {
		["property-not-found"] = "Nun s'alcontró la propiedá.",
		["qualifier-not-found"] = "Nun s'alcontró el cualificador.",
		['not-from-content-page'] = "Nun invoques a Wikidata direutamente nun artículu. Usa una plantía o Wikidata/pruebes."
	},
	["datetime"] =
	{
		-- $1 is a placeholder for the actual number
		[0] = "$1 mil millones d'años",	-- precision: billion years
		[1] = "$100 millones d'años",	-- precision: hundred million years
		[2] = "$10 millones d'años",	-- precision: ten million years
		[3] = "$1 millones d'años",		-- precision: million years
		[4] = "$100000 años",			-- precision: hundred thousand years
		[5] = "$10000 años",			-- precision: ten thousand years
		[8] = "década del $1",			-- precision: decade
		-- the following use the format of #time parser function
		[6] = 'xrY "mileniu"',			-- precision: millennium
		[7] = '"sieglu" xrY',			-- precision: century
		[9]  = "Y",						-- precision: year
		[10] = "F Y",					-- precision: month
		[11] = function(ts) return mw.ustring.match(ts, "\-(%d+)T") == "01" and 'j F Y' or "j F Y" end, -- precision: day
		["beforenow"] = "va $1",		-- how to format negative numbers for precisions 0 to 5
		["afternow"] = "d'equí en $1",	-- how to format positive numbers for precisions 0 to 5
		["bc"] = '$1 edC',				-- how print negative years
		["ad"] = "$1",					-- how print positive years
	},
	["monolingualtext"] = '<span lang="%language">%text</span>',
	
	["cite"] = {					-- Cite web parameters
		["url"]          = "url",
		["title"]        = "títulu",
		["website"]      = "obra",
		["access-date"]  = "fechaaccesu",
		["archive-url"]  = "urlarchivu",
		["archive-date"] = "fechaarchivu",
		["author"]       = "autor",
		["publisher"]    = "editorial",
		["quote"]        = "cita",
		["language"]     = "idioma",
		["date"]         = "fecha",
		["pages"]        = "páxines"
	}
}

-- Functions for local grammatical cases
local cases = {
	["infoboxlabel"] = function(word) return require("Module:Wikidata/labels").fixInfoboxLabel(word) end,
	["infoboxdata"] = function(word) return require("Module:Wikidata/labels").infoboxdata[word] or word end,
	["smallcaps"] = function(word) return '<span style="font-variant: small-caps;">' .. word .. '</span>' end,
	-- case gender and item is female, now fetched from Wikidata
	--["feminine"] = function(word, ...) if arg[1] == "ast" then return require("Module:ast-flexón").fem(word) end return word end,
}

return {
	i18n = i18n,
	cases = cases
}