66 447
contributi
(Fixed number presentation) |
(Fallback in case of Title label error) |
||
(2 versioni intermedie di uno stesso utente non sono mostrate) | |||
Riga 46: | Riga 46: | ||
end | end | ||
ItemQ = p.QFromP('P14') | ItemQ = p.QFromP('P14') | ||
TitleText = mw.wikibase.getLabelByLang(ItemQ, 'it') | TitleText = mw.wikibase.getLabelByLang(ItemQ, 'it') | ||
if TitleText == nil then | |||
--Return Q item in case of error processing the label to troubleshoot | |||
TitleText = ItemQ | |||
end | |||
mw.smw.set("Istanza=" .. TitleText) | mw.smw.set("Istanza=" .. TitleText) | ||
Riga 64: | Riga 62: | ||
local HTMLTable | local HTMLTable | ||
local CollectionTable = '' | local CollectionTable = '' | ||
local ExcludeP = {P3 = true, P14 = true, P26 = true, P30 = true, P37 = true, P58 = true, P68 = true} | local ExcludeP = {P3 = true, P14 = true, P26 = true, P30 = true, P37 = true, P58 = true, P68 = true, P52 = true, P79 = true, P90 = true} | ||
local Item = mw.wikibase.getEntity() | local Item = mw.wikibase.getEntity() | ||
local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | local ItemQ = mw.wikibase.getEntityIdForCurrentPage() |