66 505
contributi
(New labels for Interwiki) |
(ForcedLabel) |
||
Riga 285: | Riga 285: | ||
return Value | return Value | ||
end | end | ||
function p.LabelOrLink(QItem, SMWProperty, AddSemantic) | function p.LabelOrLink(QItem, SMWProperty, AddSemantic, ForcedLabel) | ||
local Label | local Label | ||
local WTLink | local WTLink | ||
Riga 300: | Riga 300: | ||
end | end | ||
if not Item['claims'] or not Item['claims']['P20'] then | if ForcedLabel ~= "" and ForcedLabel ~= nil then | ||
Label = ForcedLabel | |||
elseif not Item['claims'] or not Item['claims']['P20'] then | |||
Label = Item.labels['it'].value | Label = Item.labels['it'].value | ||
else | else |