Mòdul:Wikidata/i18n: diferència entre les revisions

Contingut suprimit Contingut afegit
actualització
trec missatges d'error no usats
Línia 2:
["errors"] = {
["property-not-found"] = "Propietat no trobada.",
["entity-not-found"] = "Entitat no trobada.",
["unknown-claim-type"] = "Tipus d'afirmació (claim) desconegut.",
["unknown-entity-type"] = "Tipus d'entitat desconegut.",
["qualifier-not-found"] = "Qualificador no trobat.",
["site-not-found"] = "Projecte Wikimedia no trobat.",
["unknown-datetime-format"] = "Format data/horari desconegut.",
["local-article-not-found"] = "L'article encara no està disponible en aquest wiki",
['not-from-content-page'] = "No invoqueu Wikidata directament en un article. Useu una plantilla o bé Wikidata/proves."
},
Linha 18 ⟶ 12:
[2] = "$10 milions d'anys", -- precision: ten million years
[3] = "$1 milions d'anys", -- precision: million years
[4] = "$100.000100000 anys", -- precision: hundred thousand years; thousand separators added afterwards
[5] = "$10.00010000 anys", -- precision: ten thousand years; thousand separators added afterwards
[8] = "dècada del $1", -- precision: decade
-- the following use the format of #time parser function
Linha 38 ⟶ 32:
},
["monolingualtext"] = '<span lang="%language">%text</span>',
["warnDump"] = "[[Categoria:Funció Dump del mòdul Wikidata]]",
["cite"] = { -- Cite web parameters
Linha 55 ⟶ 48:
}
}
 
 
-- Functions for local grammatical cases
local cases = {
["smallcaps"] = function(word) return '<span style="font-variant: small-caps;">' .. word .. '</span>' end,
-- local fixes
["infoboxlabel"] = function(word) return require("Module:Wikidata/labels").fixInfoboxLabel(word) end,
["infoboxdata"] = function(word) return require("Module:Wikidata/labels").fixInfoboxData(word) end,
["smallcaps"] = function(word) return '<span style="font-variant: small-caps;">' .. word .. '</span>' end,
}