Module:TestGetReferencedEntities: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
Restored revision 1248042511 by Joely Rooke WMDE (talk): Restore |
||
Line 1: | Line 1: | ||
local p = {} |
local p = {} |
||
function p. |
function p.test(frame) |
||
mw.wikibase.getReferencedEntityId( 'Q637739', 'P31', { 'Q7397', 'Q2095', 'Q55488' } ) |
|||
-- 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 |
end |
||