66 773
contributi
(Show label not item) |
(SMW property for P14) |
||
Riga 39: | Riga 39: | ||
-- |FileIcona=dsg.png | -- |FileIcona=dsg.png | ||
local ItemQ | local ItemQ | ||
local TitleText | |||
local Item = mw.wikibase.getEntity() | local Item = mw.wikibase.getEntity() | ||
Riga 53: | Riga 54: | ||
--return mw.wikibase.getEntity(ItemQ)['claims']['P3'][1].mainsnak.datavalue['value'] | --return mw.wikibase.getEntity(ItemQ)['claims']['P3'][1].mainsnak.datavalue['value'] | ||
TitleText = mw.wikibase.getLabelByLang(ItemQ, 'it') | |||
mw.smw.set("Istanza=" .. TitleText) | |||
return TitleText | |||
end | end | ||
function p.ListAllP(frame) | function p.ListAllP(frame) |