--Code Editor local p = {} function p.getid() local args if frame == mw.getCurrentFrame() then args = frame:getParent().args else args = frame end return wikibase.getEntityIdForTitle( args[1] ) end return p