Modulo:Wikidata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
+parametro snaktype |
migliorata formatEntityId: wikilink usando label quando sitelink=label e controllo maiuscola |
||
Riga 87:
local function formatEntityId(entityId)
local label = mw.wikibase.getLabel(entityId)
local
local ret
if
ret = mw.getContentLanguage():ucfirst(label)
string.format('[[
string.format('[[%s|%s]]',
elseif siteLink then
ret = string.format('[[%s]]', siteLink)
elseif label then
ret = label
else
ret =
end
return ret
|