Modul:Wikidata: Porovnání verzí

Smazaný obsah Přidaný obsah
pageId
m od toho tu je dávno getCurrentId, pageId znamená něco jiného
značka: vrácení zpět
Řádek 458:
end
 
p.getCurrentId = mw.wikibase.getEntityIdForCurrentPage
-- returns the page id (Q...) of the current page or nothing of the page is not connected to Wikidata
function p.pageId(frame)
local entity = mw.wikibase.getEntityObject()
if not entity then return nil else return entity.id end
end
 
function p.getBadges(frame)
Řádek 700 ⟶ 696:
 
----- API pro moduly -----
 
p.getCurrentId = mw.wikibase.getEntityIdForCurrentPage
 
function p.formatStatementsFromLua(options)