Template:WikidataOI/doc

{{Wd/doc|intro=This version of {{t|Wikidata}} includes an opt-in toggle (i.e. ), hence the name {{ WikidataOI }} .|seealso=*{{t|Wikidata}}, the same template but without the opt-in toggle.|extraparams=fetch{{=}}true|section=

Opt-in toggle
The opt-in toggle is a convenience feature to allow data from Wikidata only to be fetched when explicitly requested. It consists of two named flags, which are name-value pairs (i.e. ), that can be given anywhere inside the call. The default behaviour (i.e. if the flags are not given or left empty) is not to fetch data from Wikidata. Note that a value consisting merely out of whitespace is also considered empty. The following table describes their usage. Used to request data to be fetched from Wikidata. Any non-empty value assigned to this flag (e.g.,  ,  ) will trigger the template to fetch data from Wikidata, but only if the   flag is not given or empty. If the  flag is given and not empty, then the value assigned to this flag must be equal to the value of the   flag to trigger the template to fetch data from Wikidata. The default behaviour is not to fetch data from Wikidata.  Adds a constraint to the value that the  flag must have before it triggers the template to fetch data from Wikidata. If the value assigned to this flag is non-empty, then data from Wikidata is only fetched if the  flag has the same value (e.g.   will trigger the template to fetch data, whereas   will not). }}