Template:WikidataOI/doc

{{Wikidata/doc|template={{ROOTPAGENAME}}|intro=This version of {{t|Wikidata}} includes an Opt-In toggle (i.e. {{para|fetch|true}}, hence the name WikidataOI). The template doesn't fetch any data by default unless the said parameter is set.
 * 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). }}