-- returns the page id (Q...) of the current page, or nil if the page is not connected to Wikidata local p = {} function p.pageId(frame) return mw.wikibase.getEntityIdForCurrentPage() end return p