<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.ystv.co.uk/wiki/Module:Wikibase_signature?action=history&amp;feed=atom</id>
	<title>Module:Wikibase signature - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ystv.co.uk/wiki/Module:Wikibase_signature?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.ystv.co.uk/wiki/Module:Wikibase_signature?action=history"/>
	<updated>2026-08-20T17:58:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.11</generator>
	<entry>
		<id>https://wiki.ystv.co.uk/index.php?title=Module:Wikibase_signature&amp;diff=12507&amp;oldid=prev</id>
		<title>Joseph.Wharfe: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.ystv.co.uk/index.php?title=Module:Wikibase_signature&amp;diff=12507&amp;oldid=prev"/>
		<updated>2020-04-10T00:18:21Z</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-GB&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 00:18, 10 April 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&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>Joseph.Wharfe</name></author>
	</entry>
	<entry>
		<id>https://wiki.ystv.co.uk/index.php?title=Module:Wikibase_signature&amp;diff=12506&amp;oldid=prev</id>
		<title>MediaWiki&gt;Jeblad at 01:37, 30 May 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.ystv.co.uk/index.php?title=Module:Wikibase_signature&amp;diff=12506&amp;oldid=prev"/>
		<updated>2016-05-30T01:37:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--- Get Wikibase items signatures&lt;br /&gt;
-- @license (CC-BY-SA-3.0)&lt;br /&gt;
-- @copyright John Erling Blad &amp;lt;jeblad@gmail.com&amp;gt;&lt;br /&gt;
-- @provenance https://en.wikipedia.org/w/index.php?title=Module:Wikibase&amp;amp;oldid=722062922&lt;br /&gt;
&lt;br /&gt;
-- @var The table holding this modules exported members&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--- get the item ID of the item linked to the current page&lt;br /&gt;
-- @param table frame from the call&lt;br /&gt;
-- @return string id of the item&lt;br /&gt;
function p.id(frame)&lt;br /&gt;
	assert( mw.wikibase, &amp;quot;no mw.wikibase&amp;quot; )&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	assert( frame, &amp;quot;no frame&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	if frame:getParent() then&lt;br /&gt;
		frame = frame:getParent()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	assert( entity, &amp;quot;no entity&amp;quot; )&lt;br /&gt;
	return entity.id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- get the label of a given item, or of the connected page&lt;br /&gt;
-- if no argument is provided&lt;br /&gt;
-- @param table frame from the call&lt;br /&gt;
-- @return string label from the item&lt;br /&gt;
function p.label(frame)&lt;br /&gt;
	assert( mw.wikibase, &amp;quot;no mw.wikibase&amp;quot; )&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	assert( frame, &amp;quot;no frame&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	if frame:getParent() then&lt;br /&gt;
		frame = frame:getParent()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not frame.args[2] then&lt;br /&gt;
		return mw.wikibase.label( frame.args[1] )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	entity = mw.wikibase.getEntityObject( frame.args[1] )&lt;br /&gt;
	assert( entity, &amp;quot;no entity&amp;quot; )&lt;br /&gt;
	return entity:getLabel( frame.args[2] )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- get the description of a given item, or of the connected page&lt;br /&gt;
-- if no argument is provided&lt;br /&gt;
-- @param table frame from the call&lt;br /&gt;
-- @return string description from the item&lt;br /&gt;
function p.description(frame)&lt;br /&gt;
	assert( mw.wikibase, &amp;quot;no mw.wikibase&amp;quot; )&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	assert( frame, &amp;quot;no frame&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	if frame:getParent() then&lt;br /&gt;
		frame = frame:getParent()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not frame.args[2] then&lt;br /&gt;
		return mw.wikibase.description( frame.args[1] )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	entity = mw.wikibase.getEntityObject( frame.args[1] )&lt;br /&gt;
	assert( entity, &amp;quot;no entity&amp;quot; )&lt;br /&gt;
	return entity:getDescription( frame.args[2] )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- get the local page for a given item, or of the connected page&lt;br /&gt;
-- if no argument is provided&lt;br /&gt;
-- @param table frame from the call&lt;br /&gt;
-- @return string page title from the item&lt;br /&gt;
function p.page(frame)&lt;br /&gt;
	assert( mw.wikibase, &amp;quot;no mw.wikibase&amp;quot; )&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	assert( frame, &amp;quot;no frame&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	if frame:getParent() then&lt;br /&gt;
		frame = frame:getParent()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if frame.args[1] and not frame.args[2] then&lt;br /&gt;
		return mw.wikibase.sitelink( frame.args[1] )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	entity = mw.wikibase.getEntityObject( frame.args[1] )&lt;br /&gt;
	assert( entity, &amp;quot;no entity&amp;quot; )&lt;br /&gt;
	return entity:getSitelink( frame.args[2] )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>MediaWiki&gt;Jeblad</name></author>
	</entry>
</feed>