Content deleted Content added
→Can't get this working: ping DePiep |
m →Can't get this working: typo |
||
Line 65:
:* <code><nowiki>{{#invoke:WikidataIB |getValue |P176 |name=manufacturer |fetchwikidata=ALL}}</nowiki></code> → {{#invoke:WikidataIB |getValue |qid=Q882458 |P176 |name=manufacturer |fetchwikidata=ALL}}
: Although if you're designing an infobox, you'll probably want to pass the whitelist (and blacklist) as parameters so the article editor supplies them once and the infobox passes them to each call in the design. Lets say we give them the names {{para|whitelist}} and {{para|blacklist}}. Then the code in the infobox design for the 'Manufacturer' field would be:
:* <code><nowiki>{{#invoke:WikidataIB |getValue |P176 |name=manufacturer |fetchwikidata={{{whitelist|}}} |suppressfields={{{blacklist|}}}
: The second unnamed parameter allows a local parameter (called 'manufacturer' in this case) to override the Wikidata call as ususal.
: The infobox in use in an article could look something as simple as:
|