Extension:UnlinkedWikibase

The UnlinkedWikiata extension provides access to Wikibase entities from wikis that are not linked to a Wikibase site. For example, a private wiki with a page about Goats could retrieve metadata from the Wikidata item and display it in an infobox.

The re are two data-retrieval methods are Lua functions for a) getting a single entity; and b) getting the results of a Sparql query.

The first function is, which returns the entire entity object (as is seen at d:Special:EntityData/Q2934.json for the goat example). This is similar to Wikibase's own, which works for pages that do have sitelinks to a entity.

The second function is, which runs the given Sparql query against the Wikidata Query Service and returns the result.

There is also a means to associate a wiki page with a Wikibase entity. This is done with the parser function, which stores the given ID as a page property for the page on which it's used. This ID can then be retrieved in the context of other pages via the method, which returns a Title object for the relevant page.

Reference

 * Parser function
 * Set a page's Wikibase entity ID.


 * Lua method
 * Get entity data from Wikidbase.


 * Lua method
 * Get a Title object for a page that uses.


 * Lua method
 * Get the results of a Sparql query.