Modul:Wikidata: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Hidayatsrf (bicara | kontrib) -- version 20200701 from master @cawiki; getValueOfParentClaim; rv getTAValue |
Hidayatsrf (bicara | kontrib) + mw.wikibase.getEntityObject() |
||
Baris 1.880:
param.editicon = setEditIcon(args.editicon)
return addEditIcon(param)
end
-- returns the page id (Q...) of the current page or nothing of the page is not connected to Wikidata (fix missing page id on some infobox from enwiki)
function p.pageId(frame)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil else return entity.id end
end
|