<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://idugov.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AInfobox_book%2FWikidata%2FSandbox%2Fdoc</id>
	<title>Template:Infobox book/Wikidata/Sandbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://idugov.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AInfobox_book%2FWikidata%2FSandbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://idugov.com/w/index.php?title=Template:Infobox_book/Wikidata/Sandbox/doc&amp;action=history"/>
	<updated>2026-11-13T12:43:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://idugov.com/w/index.php?title=Template:Infobox_book/Wikidata/Sandbox/doc&amp;diff=35836&amp;oldid=prev</id>
		<title>Sanctaria: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://idugov.com/w/index.php?title=Template:Infobox_book/Wikidata/Sandbox/doc&amp;diff=35836&amp;oldid=prev"/>
		<updated>2023-06-04T20:37:11Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:37, 4 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key idugovco_theixlpp_mw19678-mws9_:diff:1.41:old-35835:rev-35836 --&gt;
&lt;/table&gt;</summary>
		<author><name>Sanctaria</name></author>
	</entry>
	<entry>
		<id>https://idugov.com/w/index.php?title=Template:Infobox_book/Wikidata/Sandbox/doc&amp;diff=35835&amp;oldid=prev</id>
		<title>en&gt;WOSlinker: syntaxhighlight lang=&quot;wikitext&quot;</title>
		<link rel="alternate" type="text/html" href="https://idugov.com/w/index.php?title=Template:Infobox_book/Wikidata/Sandbox/doc&amp;diff=35835&amp;oldid=prev"/>
		<updated>2023-05-20T20:47:42Z</updated>

		<summary type="html">&lt;p&gt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
Testing sandbox for a wikidata-aware Infobox book.&lt;br /&gt;
&lt;br /&gt;
This uses a &amp;#039;blacklist&amp;#039; of fields that will never be displayed, by using the parameter |suppressfields, e.g.:&lt;br /&gt;
 | suppressfields = dewey; congress&lt;br /&gt;
&lt;br /&gt;
It uses a &amp;#039;whitelist&amp;#039; of fields that will be fetched from Wikidata, by using the parameter |fetchwikidata (unless the field is suppressed or a local value is supplied), e.g.:&lt;br /&gt;
 | fetchwikidata = author; genre; pub_date; pages; dewey; congress&lt;br /&gt;
&lt;br /&gt;
Any separators can be used, except | and {} as you might expect.&lt;br /&gt;
&lt;br /&gt;
The snag will be if a field name is included inside another field name like &amp;quot;date&amp;quot; is inside &amp;quot;pub_date&amp;quot;. Try to avoid naming parameters like that.&lt;br /&gt;
&lt;br /&gt;
As a shorthand the whitelist of fields to be fetched from Wikidata can be given the value ALL, for all available fields.&lt;br /&gt;
 | fetchwikidata = ALL&lt;br /&gt;
&lt;br /&gt;
Parameters supported so far are:&lt;br /&gt;
{{ubl&lt;br /&gt;
| author&lt;br /&gt;
| genre&lt;br /&gt;
| pub_date&lt;br /&gt;
| pages&lt;br /&gt;
| dewey&lt;br /&gt;
| congress&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== No Wikidata ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| suppressfields =&lt;br /&gt;
| fetchwikidata  =&lt;br /&gt;
| name           = Animal Farm&lt;br /&gt;
| title_orig     = Animal Farm: A Fairy Story&lt;br /&gt;
| image          = Animal Farm - 1st edition.jpg&lt;br /&gt;
| image_size     = 200px&lt;br /&gt;
| caption        = First edition cover&lt;br /&gt;
| author         = [[George Orwell]]&lt;br /&gt;
| country        = United Kingdom&lt;br /&gt;
| language       = English&lt;br /&gt;
| genre          = Political satire&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Works as a non-aware infobox: only locally supplied parameters are displayed.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| name           = Animal Farm&lt;br /&gt;
| title_orig     = Animal Farm: A Fairy Story&lt;br /&gt;
| image          = Animal Farm - 1st edition.jpg&lt;br /&gt;
| image_size     = 200px&lt;br /&gt;
| caption        = First edition cover&lt;br /&gt;
| author         = [[George Orwell]]&lt;br /&gt;
| country        = United Kingdom&lt;br /&gt;
| language       = English&lt;br /&gt;
| genre          = Political satire&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The blacklist and whitelist can be omitted if unused&lt;br /&gt;
&lt;br /&gt;
=== All Wikidata ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| suppressfields = &lt;br /&gt;
| fetchwikidata  = author; genre; pub_date; pages; dewey; congress&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Fetches all of its values from Wikidata.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| fetchwikidata  = ALL&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
As shorthand, the {{para|fetchwikidata}} can be set to ALL to fetch all available fields.&lt;br /&gt;
Any of them can be suppressed by {{para|suppressfields}}, or overridden by supplying a local value.&lt;br /&gt;
&lt;br /&gt;
=== Never display genre ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| suppressfields = genre&lt;br /&gt;
| fetchwikidata  = author; genre; pub_date; pages; dewey; congress&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The genre field will always be suppressed, even if a local value is supplied.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| suppressfields = genre&lt;br /&gt;
| fetchwikidata  = author; genre; pub_date; pages; dewey; congress&lt;br /&gt;
| genre          = Political satire&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Local override ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| fetchwikidata  = author; genre; pub_date; pages; dewey; congress&lt;br /&gt;
| genre          = Political satire&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The genre field is set to display &amp;quot;Political satire&amp;quot;, no matter what is stored in Wikidata.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| fetchwikidata  = ALL&lt;br /&gt;
| genre          = Novel&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The genre field is set to display &amp;quot;Novel&amp;quot;, no matter what is stored in Wikidata.&lt;br /&gt;
&lt;br /&gt;
=== Don&amp;#039;t fetch genre ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox book/Wikidata/Sandbox&lt;br /&gt;
| suppressfields = &lt;br /&gt;
| fetchwikidata  = author; pub_date; pages; dewey; congress&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The genre field will not be fetched from Wikidata.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;WOSlinker</name></author>
	</entry>
</feed>