<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.swarma.org/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AEditAtWikidata</id>
	<title>模块:EditAtWikidata - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.swarma.org/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AEditAtWikidata"/>
	<link rel="alternate" type="text/html" href="https://wiki.swarma.org/index.php?title=%E6%A8%A1%E5%9D%97:EditAtWikidata&amp;action=history"/>
	<updated>2026-11-04T18:59:09Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.swarma.org/index.php?title=%E6%A8%A1%E5%9D%97:EditAtWikidata&amp;diff=31832&amp;oldid=prev</id>
		<title>Swarma：导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://wiki.swarma.org/index.php?title=%E6%A8%A1%E5%9D%97:EditAtWikidata&amp;diff=31832&amp;oldid=prev"/>
		<updated>2022-06-10T09:02:10Z</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-Hans-CN&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;2022年6月10日 (五) 09:02的版本&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff::1.12:old-31831:rev-31832 --&gt;
&lt;/table&gt;</summary>
		<author><name>Swarma</name></author>
	</entry>
	<entry>
		<id>https://wiki.swarma.org/index.php?title=%E6%A8%A1%E5%9D%97:EditAtWikidata&amp;diff=31831&amp;oldid=prev</id>
		<title>排队论&gt;Johnuniq：update from Module:EditAtWikidata/sandbox per talk: tweaks + greatly reduce memory usage + class=noprint</title>
		<link rel="alternate" type="text/html" href="https://wiki.swarma.org/index.php?title=%E6%A8%A1%E5%9D%97:EditAtWikidata&amp;diff=31831&amp;oldid=prev"/>
		<updated>2022-03-13T22:49:52Z</updated>

		<summary type="html">&lt;p&gt;update from &lt;a href=&quot;/index.php?title=%E6%A8%A1%E5%9D%97:EditAtWikidata/sandbox&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;模块:EditAtWikidata/sandbox（页面不存在）&quot;&gt;Module:EditAtWikidata/sandbox&lt;/a&gt; per talk: tweaks + greatly reduce memory usage + class=noprint&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 is 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;
-- 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;Edit this at Wikidata&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local function trimToNil(text)&lt;br /&gt;
	-- Return trimmed non-empty text, or nil.&lt;br /&gt;
	if type(text) == 'string' then&lt;br /&gt;
		return text:match('(%S.-)%s*$')&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._showMessage(args)&lt;br /&gt;
	local local_parm = trimToNil(args[1])&lt;br /&gt;
	if local_parm then return &amp;quot;&amp;quot; end&lt;br /&gt;
	-- Parameter qid=x specifies the Wikidata ID for the article.&lt;br /&gt;
	-- This is not normally used except for testing outside the article.&lt;br /&gt;
	local qid = trimToNil(args.qid) or mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	if qid and mw.wikibase.entityExists(qid) then&lt;br /&gt;
		-- Parameter pid=x uses x as an anchor in the link to the Wikidata entry.&lt;br /&gt;
		local anchor = trimToNil(args.pid)&lt;br /&gt;
		-- Parameter nbsp replaces the leading space with &amp;amp;nbsp;&lt;br /&gt;
		local space = trimToNil(args.nbsp) and &amp;quot;&amp;amp;nbsp;&amp;quot; or &amp;quot; &amp;quot;&lt;br /&gt;
		return&lt;br /&gt;
			space ..&lt;br /&gt;
			&amp;quot;[[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px&amp;quot; ..&lt;br /&gt;
			&amp;quot;|alt=&amp;quot; .. i18n.message ..&lt;br /&gt;
			&amp;quot;|link=https://www.wikidata.org/wiki/&amp;quot; .. qid ..&lt;br /&gt;
			(anchor and (&amp;quot;#&amp;quot; .. anchor) or &amp;quot;&amp;quot;) ..&lt;br /&gt;
			&amp;quot;|class=noprint&amp;quot; ..&lt;br /&gt;
			&amp;quot;|&amp;quot; .. i18n.message ..&lt;br /&gt;
			&amp;quot;]]&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.showMessage(frame)&lt;br /&gt;
	return p._showMessage(frame.args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>排队论&gt;Johnuniq</name></author>
	</entry>
</feed>