3 864
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 6: | Riga 6: | ||
Crediamo nella psicologia e nella psicoterapia, come potenziale soluzione dei problemi, crediamo nella massima di Jung e nel pensiero di gente come Cialdini, Mark Fisher. | Crediamo nella psicologia e nella psicoterapia, come potenziale soluzione dei problemi, crediamo nella massima di Jung e nel pensiero di gente come Cialdini, Mark Fisher. | ||
{{#statements:member of political party}} | |||
{{#invoke:Wikidata|getValue|P26|}} = returns nothing, so suppresses the display of spouse in an infobox | |||
{{#invoke:Wikidata|getValue|P26|FETCH_WIKIDATA}} = 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) | |||
{{#invoke:Wikidata|getValue|P26|[[Hillary Rodham Clinton]]}} = returns Hillary Rodham Clinton, allowing an infobox to use a local value rather than the value stored in Wikidata. | |||
Example in Infobox template | |||
Inside an infobox definition, it may be called like this: | |||
| data55 = {{#invoke:Wikidata|getValue|P26|{{{spouse|FETCH_WIKIDATA}}} }} | |||
which causes the infobox to: | |||
not display spouse if the infobox parameter |spouse is set to be blank (as "| spouse ="} | |||
display the linked value(s) from Wikidata if the infobox parameter |spouse is not supplied | |||
display the local infobox parameter |spouse if it is supplied (e.g. "|spouse = Hillary Rodham Clinton") |