The main source of Wikibase documentation is now https://doc.wikimedia.org/Wikibase/master/php/ |
This page describes the data inclusion syntax for the Wikibase client, by which the properties of data items can be included and rendered on a wiki page using templates. In short: This is how we want Wikipedia articles to include data from Wikidata.
The inclusion syntax presented here is meant to work for very simple cases, and only for them.
Complicated cases are to be realized using Lua.
Accessing Item Data
editProperties
editProperties of a Wikidata Item can be used via the #property parser function:
{{#property:P36}} {{#property:capital}}
This will provide a representation of the value of the capital
property of the page's default item. The default item is the Wikidata item that is associated with this page via language links.
The property label is case sensitive. It is also possible to use the identifier of the property (this is more stable against changes of the label of a property).
Properties of different items
editTo access properties of a different item, it has to be specified explicitly by Q-ID (not by label, because that label may be used for multiple items).
{{#property:capital|from=Q183}}
{{#property:P17|from=Q64}}