<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.willfraser.co/physipedia/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://www.willfraser.co/physipedia/index.php?action=history&amp;feed=atom&amp;title=Module%3AEditAtWikidata"/>
	<link rel="alternate" type="text/html" href="https://www.willfraser.co/physipedia/index.php?title=Module:EditAtWikidata&amp;action=history"/>
	<updated>2026-04-04T18:52:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.willfraser.co/physipedia/index.php?title=Module:EditAtWikidata&amp;diff=1010&amp;oldid=prev</id>
		<title>Willfras: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.willfraser.co/physipedia/index.php?title=Module:EditAtWikidata&amp;diff=1010&amp;oldid=prev"/>
		<updated>2023-10-11T19:37:24Z</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&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 19:37, 11 October 2023&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>Willfras</name></author>
	</entry>
	<entry>
		<id>https://www.willfraser.co/physipedia/index.php?title=Module:EditAtWikidata&amp;diff=1009&amp;oldid=prev</id>
		<title>en&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://www.willfraser.co/physipedia/index.php?title=Module:EditAtWikidata&amp;diff=1009&amp;oldid=prev"/>
		<updated>2022-03-13T22:49:52Z</updated>

		<summary type="html">&lt;p&gt;update from &lt;a href=&quot;/physipedia/index.php?title=Module:EditAtWikidata/sandbox&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:EditAtWikidata/sandbox (page does not exist)&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;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>en&gt;Johnuniq</name></author>
	</entry>
</feed>