Jump to content

Module:TestGetReferencedEntities

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 104.151.103.93 (talk) at 09:45, 3 March 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p.subscribeToAllAspects(frame)
	-- wikidata sandbox QID for testing 
	local qid = 'Q4115189' 
	local entity = mw.wikibase.getEntity ( qid );
	if entity then
--		return '[[' .. entity:getSitelink( ) .. ']]'
		return '[[' .. mw.wikibase.addDescriptionUsage( qid ) .. ']]'
	end
end

return p