Module:Wikidata/doc: Difference between revisions

Content deleted Content added
m clean up from old page move, replaced: Hillary Rodham ClintonHillary Clinton (2) using AWB
Example: spouse (P26): fixing documentation following the renaming of the page Hilary Clinton
Line 50:
* <code><nowiki>{{#invoke:Wikidata|getValue|P26|}}</nowiki></code> = returns nothing, so suppresses the display of spouse in an infobox
* <code><nowiki>{{#invoke:Wikidata|getValue|P26|FETCH_WIKIDATA}}</nowiki></code> = returns the linked value(s) of property P26 (spouse) stored in wikidata for the corresponding article (e.g. for article [[Bill Clinton]], it returns [[Hillary Clinton]])
* <code><nowiki>{{#invoke:Wikidata|getValue|P26|[[Hillary Rodham Clinton]]}}</nowiki></code> = returns [[Hillary Rodham Clinton]], allowing an infobox to use a local value rather than the value stored in Wikidata.
 
=== Example in Infobox template ===