Mòdul:Wikidades/proves: diferència entre les revisions
Contingut suprimit Contingut afegit
protecció next, cascade rtl |
case amb function |
||
Línia 1:
-- version
local p = {}
Línia 154:
if not isSet(label) then return label end
if type(localcase) == "
return localcase(label)
elseif localcase == "smallcaps" then
return '<span style="font-variant: small-caps;">' .. label .. '</span>'
elseif cases[localcase] then
Linha 171 ⟶ 173:
end
return ret
end
-- mw.wikibase.getLabelWithLang or getLabelByLang with a table of languages
|