<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://zh.enter-politics.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AWikidataCheck</id>
	<title>模块:WikidataCheck - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://zh.enter-politics.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AWikidataCheck"/>
	<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:WikidataCheck&amp;action=history"/>
	<updated>2026-07-05T03:42:03Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:WikidataCheck&amp;diff=3478&amp;oldid=prev</id>
		<title>枫夜龙吟：导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:WikidataCheck&amp;diff=3478&amp;oldid=prev"/>
		<updated>2020-06-26T08:08:24Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年6月26日 (五) 08:08的版本&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mw-wiki2_:diff::1.12:old-3477:rev-3478 --&gt;
&lt;/table&gt;</summary>
		<author><name>枫夜龙吟</name></author>
	</entry>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:WikidataCheck&amp;diff=3477&amp;oldid=prev</id>
		<title>ZhWP&gt;Xiplus：撤銷Special:Diff/47469471的分類名變更</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=%E6%A8%A1%E5%9D%97:WikidataCheck&amp;diff=3477&amp;oldid=prev"/>
		<updated>2018-01-02T05:50:43Z</updated>

		<summary type="html">&lt;p&gt;撤銷&lt;a href=&quot;/wiki/Special:%E5%B7%AE%E5%BC%82/47469471&quot; title=&quot;Special:差异/47469471&quot;&gt;Special:Diff/47469471&lt;/a&gt;的分類名變更&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&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 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;
    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 = mw.wikibase.getEntityObject()&lt;br /&gt;
    if not entity then -- no Wikidata item (根本找不到对应的维基数据页)&lt;br /&gt;
        return &amp;quot;[[Category:不在維基數據的&amp;quot; .. catbase .. &amp;quot;]]&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;]]&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.value&lt;br /&gt;
    	if propValue == value then&lt;br /&gt;
        	return &amp;quot;[[Category:與維基數據相同的&amp;quot; .. catbase .. &amp;quot;]]&amp;quot; -- yay! (这是好结果,表示调用模板时填写的信息参数和wikidata中填写的信息能对得上号,万事大吉)&lt;br /&gt;
    	end&lt;br /&gt;
	end&lt;br /&gt;
    return &amp;quot;[[Category:與維基數據不同的&amp;quot; .. catbase .. &amp;quot;]]&amp;quot; -- needs human review :( (此结果表示虽然wikidata中有对应的信息项,但是与调用模板时填写的参数不匹配,需要人工查证)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ZhWP&gt;Xiplus</name></author>
	</entry>
</feed>