<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Module%3AEditAtWikidata%2Fsandbox</id>
	<title>Module:EditAtWikidata/sandbox - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Module%3AEditAtWikidata%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Module:EditAtWikidata/sandbox&amp;action=history"/>
	<updated>2026-06-26T10:54:59Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Module:EditAtWikidata/sandbox&amp;diff=3276269&amp;oldid=prev</id>
		<title>imported&gt;Taeas：​撤销Taeas（讨论）的版本76620933</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Module:EditAtWikidata/sandbox&amp;diff=3276269&amp;oldid=prev"/>
		<updated>2023-04-02T04:49:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=WP:UNDO&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:UNDO（页面不存在）&quot;&gt;撤销&lt;/a&gt;&lt;a href=&quot;/wiki/Special:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/Taeas&quot; title=&quot;Special:用户贡献/Taeas&quot;&gt;Taeas&lt;/a&gt;（&lt;a href=&quot;/index.php?title=User_talk:Taeas&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Taeas（页面不存在）&quot;&gt;讨论&lt;/a&gt;）的版本76620933&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module to display an icon with a tooltip such as &amp;quot;Edit this at Wikidata&amp;quot;.&lt;br /&gt;
-- Icon will be linked to the Wikidata entry for the article where this is placed.&lt;br /&gt;
-- This message is only displayed if a local_parameter is not supplied&lt;br /&gt;
-- i.e. when called from a template, it can be coded not to display the message&lt;br /&gt;
-- when a local parameter is in use, preventing the value form Wikidata being fetched.&lt;br /&gt;
-- The qid of a Wikidata entry can optionally be supplied for testing outside the article.&lt;br /&gt;
-- Usage:&lt;br /&gt;
-- {{#invoke:EditAtWikidata|showMessage|local_parameter}}&lt;br /&gt;
-- {{#invoke:EditAtWikidata|showMessage|qid=&amp;lt;ArticleID&amp;gt;|local_parameter}}&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local i18n =&lt;br /&gt;
{&lt;br /&gt;
	[&amp;quot;message&amp;quot;] = &amp;quot;編輯維基數據鏈接&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p.showMessage = function(frame)&lt;br /&gt;
	-- There may be a local parameter supplied, if it&amp;#039;s blank, set it to nil&lt;br /&gt;
	local local_parm =  mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)&lt;br /&gt;
	if local_parm and (local_parm == &amp;quot;&amp;quot;) then local_parm = nil end&lt;br /&gt;
&lt;br /&gt;
	-- If there is a local parameter used, we don&amp;#039;t want to display the message&lt;br /&gt;
	if local_parm then return nil end&lt;br /&gt;
&lt;br /&gt;
	-- Can take a named parameter |qid which is the Wikidata ID for the article.&lt;br /&gt;
	-- This will not normally be used except for testing outside the article.&lt;br /&gt;
	local qid = frame.args.qid&lt;br /&gt;
	if qid and (qid == &amp;quot;&amp;quot;) then qid = nil end&lt;br /&gt;
&lt;br /&gt;
	-- The module can take a parameter pid=&lt;br /&gt;
	-- which will create a link to that property in the Wikidata entry for the article&lt;br /&gt;
	local propertyID = mw.text.trim(frame.args.pid or &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	-- Get the object containing all the claims for the article&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject(qid)&lt;br /&gt;
	if entity then&lt;br /&gt;
		local thisQid&lt;br /&gt;
		if qid then thisQid = qid else thisQid = entity.id end&lt;br /&gt;
		local link = &amp;quot;https://www.wikidata.org/wiki/&amp;quot; ..&lt;br /&gt;
			thisQid ..&lt;br /&gt;
			(propertyID == &amp;quot;&amp;quot; and &amp;quot;&amp;quot; or (&amp;quot;#&amp;quot; .. propertyID))&lt;br /&gt;
		-- https://www.mediawiki.org/wiki/Help:Images#Obtaining_the_full_URL_of_an_image&lt;br /&gt;
		local imageUrl = &amp;quot;{{filepath:OOjs UI icon edit-ltr-progressive.svg}}&amp;quot; &lt;br /&gt;
		local linkStyle = &amp;quot;background-image: url(&amp;#039;&amp;quot; .. imageUrl .. &amp;quot;&amp;#039;);width: 10px;height: 10px;&amp;quot;&lt;br /&gt;
		return &amp;quot;&amp;lt;a href=&amp;#039;&amp;quot; .. link .. &amp;quot;&amp;#039; title=&amp;#039;&amp;quot; .. i18n.message .. &amp;quot;&amp;#039; style=&amp;#039;&amp;quot; .. linkStyle .. &amp;quot;&amp;#039; /&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Taeas</name></author>
	</entry>
</feed>