<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FSuperm401%2FWikidataSandbox</id>
	<title>Module:Sandbox/Superm401/WikidataSandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FSuperm401%2FWikidataSandbox"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Superm401/WikidataSandbox&amp;action=history"/>
	<updated>2026-04-21T16:19:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Superm401/WikidataSandbox&amp;diff=146243&amp;oldid=prev</id>
		<title>imported&gt;Mattflaschen: import from Module:Wikibase</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Superm401/WikidataSandbox&amp;diff=146243&amp;oldid=prev"/>
		<updated>2013-06-03T05:18:06Z</updated>

		<summary type="html">&lt;p&gt;import from &lt;a href=&quot;/index.php?title=Module:Wikibase&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Wikibase (page does not exist)&quot;&gt;Module:Wikibase&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:Wikibase&lt;br /&gt;
local p = {}&lt;br /&gt;
 &lt;br /&gt;
-- Return the item ID of the item linked to the current page.&lt;br /&gt;
function p.id(frame)&lt;br /&gt;
        if not mw.wikibase then&lt;br /&gt;
           return &amp;quot;wikibase module not found&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        entity = mw.wikibase.getEntity()&lt;br /&gt;
 &lt;br /&gt;
        if entity == nil then&lt;br /&gt;
           return &amp;quot;(no item connected)&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        return entity.id&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
-- Return the label of a given data item.&lt;br /&gt;
function p.label(frame)&lt;br /&gt;
        if frame.args[1] == nil then&lt;br /&gt;
            entity = mw.wikibase.getEntity()&lt;br /&gt;
            if not entity then return nil end&lt;br /&gt;
 &lt;br /&gt;
            id = entity.id&lt;br /&gt;
        else&lt;br /&gt;
            id = frame.args[1]&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        return mw.wikibase.label( id )&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
-- Return the local page about a given data item.&lt;br /&gt;
function p.page(frame)&lt;br /&gt;
        if frame.args[1] == nil then&lt;br /&gt;
            entity = mw.wikibase.getEntity()&lt;br /&gt;
            if not entity then return nil end&lt;br /&gt;
 &lt;br /&gt;
            id = entity.id&lt;br /&gt;
        else&lt;br /&gt;
            id = frame.args[1]&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        return mw.wikibase.sitelink( id )&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Mattflaschen</name></author>
	</entry>
</feed>