<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cern.ch/index.php?action=history&amp;feed=atom&amp;title=Module%3AEditAtWikidata</id>
	<title>Module:EditAtWikidata - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cern.ch/index.php?action=history&amp;feed=atom&amp;title=Module%3AEditAtWikidata"/>
	<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:EditAtWikidata&amp;action=history"/>
	<updated>2026-04-04T09:38:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.cern.ch/index.php?title=Module:EditAtWikidata&amp;diff=7757&amp;oldid=prev</id>
		<title>Vigen: 1 revision imported from :wikipedia:Module:EditAtWikidata</title>
		<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:EditAtWikidata&amp;diff=7757&amp;oldid=prev"/>
		<updated>2026-03-19T08:35:01Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Module:EditAtWikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Module:EditAtWikidata&quot;&gt;wikipedia:Module:EditAtWikidata&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&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 08:35, 19 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Vigen</name></author>
	</entry>
	<entry>
		<id>https://wiki.cern.ch/index.php?title=Module:EditAtWikidata&amp;diff=7756&amp;oldid=prev</id>
		<title>wikipedia&gt;Sdkb: Undid revision 1316834471 by Anomie (talk) It&#039;s now appropriately licensed as PD-simple at Commons. See User_talk:Sdkb#File:OOUI_icon_userAdd-ltr.svg.</title>
		<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:EditAtWikidata&amp;diff=7756&amp;oldid=prev"/>
		<updated>2025-10-14T19:53:05Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/index.php/Special:Diff/1316834471&quot; title=&quot;Special:Diff/1316834471&quot;&gt;1316834471&lt;/a&gt; by &lt;a href=&quot;/index.php/Special:Contributions/Anomie&quot; title=&quot;Special:Contributions/Anomie&quot;&gt;Anomie&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Anomie&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Anomie (page does not exist)&quot;&gt;talk&lt;/a&gt;) It&amp;#039;s now appropriately licensed as PD-simple at Commons. See &lt;a href=&quot;/index.php?title=User_talk:Sdkb&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Sdkb (page does not exist)&quot;&gt;User_talk:Sdkb#File:OOUI_icon_userAdd-ltr.svg&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&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) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		return text:match(&amp;#039;(%S.-)%s*$&amp;#039;)&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>wikipedia&gt;Sdkb</name></author>
	</entry>
</feed>