<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AWikidataOI%2Fdoc</id>
	<title>Template:WikidataOI/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AWikidataOI%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:WikidataOI/doc&amp;action=history"/>
	<updated>2026-04-05T22:02:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:WikidataOI/doc&amp;diff=39383&amp;oldid=prev</id>
		<title>Wikipedia&gt;Thayts at 10:16, 7 November 2021</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:WikidataOI/doc&amp;diff=39383&amp;oldid=prev"/>
		<updated>2021-11-07T10:16:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Wikidata/doc|template={{ROOTPAGENAME}}|intro=This version of {{t|Wikidata}} includes an [[#Opt-in toggle|&amp;#039;&amp;#039;&amp;#039;O&amp;#039;&amp;#039;&amp;#039;pt-&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;n toggle]] (i.e. {{para|fetch|true}}, hence the name Wikidata&amp;#039;&amp;#039;&amp;#039;OI&amp;#039;&amp;#039;&amp;#039;). The template doesn&amp;#039;t fetch any data by default unless the said parameter is set.&lt;br /&gt;
|seealso=*{{t|Wikidata}}, the same template but without the opt-in toggle.|extraparams=fetch{{=}}true|section=&lt;br /&gt;
== Opt-in toggle ==&lt;br /&gt;
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. &amp;lt;code&amp;gt;{{!}}flag=value&amp;lt;/code&amp;gt;), 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.&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Named flag&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Default&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th style=&amp;quot;text-align:right;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;fetch=&amp;lt;/code&amp;gt;&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;{{dfn|&amp;lt;code&amp;gt;{{0|&amp;amp;ensp;}}&amp;lt;/code&amp;gt;|title=empty}}&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Used to request data to be fetched from Wikidata.&lt;br /&gt;
&amp;lt;p&amp;gt;Any non-empty value assigned to this flag (e.g. &amp;lt;code&amp;gt;{{!}}fetch=true&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;{{!}}fetch=false&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;{{!}}fetch=arbitrary&amp;lt;/code&amp;gt;) will trigger the template to fetch data from Wikidata, but only if the &amp;lt;code&amp;gt;ifeq&amp;lt;/code&amp;gt; flag is not given or empty.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;If the &amp;lt;code&amp;gt;ifeq&amp;lt;/code&amp;gt; flag is given and not empty, then the value assigned to this flag must be equal to the value of the &amp;lt;code&amp;gt;ifeq&amp;lt;/code&amp;gt; flag to trigger the template to fetch data from Wikidata.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The default behaviour is not to fetch data from Wikidata.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th style=&amp;quot;text-align:right;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;ifeq=&amp;lt;/code&amp;gt;&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;{{dfn|&amp;lt;code&amp;gt;{{0|&amp;amp;ensp;}}&amp;lt;/code&amp;gt;|title=empty}}&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Adds a constraint to the value that the &amp;lt;code&amp;gt;fetch&amp;lt;/code&amp;gt; flag must have before it triggers the template to fetch data from Wikidata.&lt;br /&gt;
&amp;lt;p&amp;gt;If the value assigned to this flag is non-empty, then data from Wikidata is only fetched if the &amp;lt;code&amp;gt;fetch&amp;lt;/code&amp;gt; flag has the same value (e.g. &amp;lt;code&amp;gt;{{!}}fetch=true{{!}}ifeq=true&amp;lt;/code&amp;gt; will trigger the template to fetch data, whereas &amp;lt;code&amp;gt;{{!}}fetch=false{{!}}ifeq=true&amp;lt;/code&amp;gt; will not).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Thayts</name></author>
	</entry>
</feed>