Modulo:Collegamenti esterni: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+Architettura
m mw.wikibase.getLabel tramite mWikidata
Riga 45:
local function getCurrentTitle(from)
local ret
local label = mwmWikidata.wikibase.getLabel_getLabel({ from })
if from then
ret = label
Riga 111:
function ExtLink:_getTitolo()
local currTitle = getCurrentTitle()
return self.from and mwmWikidata.wikibase.getLabel_getLabel({ self.from }) or
(self.linkConf.titolo and self.linkConf.titolo:gsub('$1', currTitle) or currTitle)
end
Riga 373:
for _, linkConf in ipairs(cfg[groupName]) do
local wdLink = string.format('* [[d:Property:%s|%s (%s)]]',
linkConf.pid, mwmWikidata.wikibase.getLabel_getLabel({ linkConf.pid }), linkConf.pid)
table.insert(wdLinks, wdLink)
end