Extension:WikidataShow

The WikidataShow extension allows to add data to a wiki page based on a link set in the Semantic MediaWiki that retrieves data from Wikidata.

It is basically developed for the School Archives Project and handles the following information from Wikidata. You can also use it as a blueprint to write your own extension to get data from Wikidata.


 * Supported items
 * P18 (picture)
 * P6375 (address)
 * P856 (website)
 * P625 (coordinates)
 * P1448 (names)
 * P1249 (earliest written record)
 * P571 (inception)
 * P31 (instance of)
 * P137 (operator)
 * Link to Wikipedia
 * P227: Link to GND (German national library)

The extension adds two parser functions:
 * : creates a box like to one in the example
 * : takes in the p-value you want to show and only shows this information (fits great if you want to display local data from semantic mediawiki together with data from wikidata)

Usage
You can use the extension by simply adding the parser functions  or   to the wiki. You can provide the Wikidata ID, but you do not have to. If you do not provide the Wikidata ID, the extension tries to retrieve the Wikidata ID via the "Wikidata ID" property. You need to have Semantic MediaWiki installed for this to work.


 * Examples
 * -> gives you P227 of the wikidata ID Q1533809
 * --> gives you P227 and gets the wikidata ID automatically -> this makes it work very well inside a template
 * -> gives you a box with all defined attributes for Q1533809
 * --> gives you the same box and gets wikidata ID automatically

Using  results in this infobox: