Wikidata/Notes/Inclusion syntax v0.4 and Translations:Tech/News/3/it: Difference between pages

From Meta, a Wikimedia project coordination wiki
(Difference between pages)
Content deleted Content added
 
No edit summary
 
Line 1: Line 1:
Come ricevere le notizie dal Tech?
{{draft/en}}
{{Message | type = attention | '''New Version (May 2013)'''
This is a subset of the [[Wikidata/Notes/Inclusion_syntax_v0.3|previous draft]]!
}}

This page describes the data inclusion syntax for the Wikibase client, by which the [[d:Wikidata:Glossary#Entities, Items, Properties and Queries|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 [[mw:Extension:WikibaseClient/Lua|Lua]].

== Accessing Item Data ==

=== Properties ===

Properties of a Wikidata Item can be used via the #property parser function:

<nowiki>{{#property:P36}}</nowiki>
<nowiki>{{#property:capital}}</nowiki>

This will provide a representation of the value of the <tt>capital</tt> 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).

''(Note: currently, only IDs work, the property labels should be switched on in May 20 (en)/22 (others))''

=== Properties of different items ===

To access properties of a different item, it has to be specified explicitly, either by ID or by their Wikipedia title.

<nowiki>{{#property:capital|of=Q183}}</nowiki>
<nowiki>{{#property:capital|of=Germany}}</nowiki>

''(Note: this is not implemented yet)''

[[Category:Wikidata]]

Revision as of 21:48, 24 May 2013

Come ricevere le notizie dal Tech?