Module:Wikidata/doc: Difference between revisions

Content deleted Content added
Undid revision 1008258690 by 1.127.104.10 (talk)
{{get QID|<title>}} example
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|Q151973{{qid|Prince (musician)}}|P26|FETCH_WIKIDATA}}</nowiki></code>
will fetch a list of the linked values for 'spouse' (P26) from 'Richardpage Burton'title [[Prince (musician)]] (corresponding to Wikidata label {{Q|{{Get QID|Prince (Q151973musician)}}}}) 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.