<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikidataCheck</id>
	<title>Module:WikidataCheck - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikidataCheck"/>
	<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;action=history"/>
	<updated>2026-04-29T14:27:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=59509&amp;oldid=prev</id>
		<title>Indicwiki: 1 revision imported from :alpha:Module:WikidataCheck</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=59509&amp;oldid=prev"/>
		<updated>2023-01-03T04:10:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://alpha.indicwiki.in/index.php?title=Module:WikidataCheck&quot; class=&quot;extiw&quot; title=&quot;alpha:Module:WikidataCheck&quot;&gt;alpha:Module:WikidataCheck&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:40, 3 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Indicwiki</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=56450&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=56450&amp;oldid=prev"/>
		<updated>2022-12-30T04:52:54Z</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;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:22, 30 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=59508&amp;oldid=prev</id>
		<title>alpha&gt;Indicwiki: Created page with &quot;local p = {}  function p.wikidatacheck(frame) 	local pframe = frame:getParent() 	local config = frame.args -- the arguments passed BY the template, in the wikitext of the temp...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=59508&amp;oldid=prev"/>
		<updated>2022-08-12T07:19:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.wikidatacheck(frame) 	local pframe = frame:getParent() 	local config = frame.args -- the arguments passed BY the template, in the wikitext of the temp...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:49, 12 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>alpha&gt;Indicwiki</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=56449&amp;oldid=prev</id>
		<title>wikipedia&gt;MSGJ: support for custom qid</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:WikidataCheck&amp;diff=56449&amp;oldid=prev"/>
		<updated>2021-06-18T12:55:51Z</updated>

		<summary type="html">&lt;p&gt;support for custom qid&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.wikidatacheck(frame)&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself&lt;br /&gt;
	local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template&lt;br /&gt;
&lt;br /&gt;
	local property = config.property&lt;br /&gt;
	local value = config.value or &amp;quot;&amp;quot;&lt;br /&gt;
	local catbase = config.category&lt;br /&gt;
	local namespaces = config.namespaces&lt;br /&gt;
	local nocatsame = config.nocatsame or &amp;quot;&amp;quot;&lt;br /&gt;
	local qid = config.qid or &amp;quot;&amp;quot;&lt;br /&gt;
	local ok = false -- one-way flag to check if we're in a good namespace&lt;br /&gt;
	local ns = mw.title.getCurrentTitle().namespace&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	for v in mw.text.gsplit( namespaces, &amp;quot;,&amp;quot;, true) do&lt;br /&gt;
		if tonumber(v) == ns then&lt;br /&gt;
			ok = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not ok then -- not in one of the approved namespaces&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local entity&lt;br /&gt;
	if qid == &amp;quot;&amp;quot; then&lt;br /&gt;
		entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	else&lt;br /&gt;
		entity = mw.wikibase.getEntityObject(qid)&lt;br /&gt;
	end&lt;br /&gt;
	if not entity then -- no Wikidata item&lt;br /&gt;
		return &amp;quot;[[Category:&amp;quot; .. catbase .. &amp;quot; not in Wikidata]]&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	if value == &amp;quot;&amp;quot; then&lt;br /&gt;
		return nil -- Using Wikidata&lt;br /&gt;
	end&lt;br /&gt;
	local claims = entity.claims or {}&lt;br /&gt;
	local hasProp = claims[property]&lt;br /&gt;
	if not hasProp then -- no claim of that property&lt;br /&gt;
		return &amp;quot;[[Category:&amp;quot; .. catbase .. &amp;quot; not in Wikidata]]&amp;quot; -- bad. Bot needs to add the property&lt;br /&gt;
	end&lt;br /&gt;
	for i, v in ipairs(hasProp) do -- Now we try to iterate over all possible values?&lt;br /&gt;
		propValue = (v.mainsnak.datavalue or {}).value&lt;br /&gt;
		if propValue == value then&lt;br /&gt;
			if nocatsame == &amp;quot;&amp;quot; then&lt;br /&gt;
				return &amp;quot;[[Category:&amp;quot; .. catbase .. &amp;quot; same as Wikidata]]&amp;quot; -- yay!&lt;br /&gt;
			else&lt;br /&gt;
				return nil -- if nocatsame, the &amp;quot;same as&amp;quot; category is not added&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;[[Category:&amp;quot; .. catbase .. &amp;quot; different from Wikidata]]&amp;quot; -- needs human review :(&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;MSGJ</name></author>
	</entry>
</feed>