Module:Wikidata/doc: Difference between revisions

Content deleted Content added
{{get QID|<title>}} example
Sticks to Burton
Line 37:
will do the same as getValue, but takes an extra parameter, which is the QID of the Wikidata item that you want to get the property value from.
For example:
* <code><nowiki>{{#invoke:Wikidata|getValueFromID|{{qid|PrinceRichard Burton (musicianactor) }}|P26|FETCH_WIKIDATA}}</nowiki></code>
will fetch a list of the linked values for 'spouse' (P26) from redirect page title [[PrinceRichard Burton (musicianactor) ]] (corresponding to Wikidata label {{Q|{{Get QID|PrinceRichard Burton (musicianactor) }}}}) from anywhere in the English Wikipedia.
 
This means that testing environments may be set up in user space, but remember that these calls are classed as ''expensive'', so please use them as sparingly as possible.