<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.tcsdcc.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikibase</id>
	<title>Module:Wikibase - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.tcsdcc.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikibase"/>
	<link rel="alternate" type="text/html" href="https://docs.tcsdcc.com/index.php?title=Module:Wikibase&amp;action=history"/>
	<updated>2026-04-12T12:11:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.4</generator>
	<entry>
		<id>https://docs.tcsdcc.com/index.php?title=Module:Wikibase&amp;diff=155&amp;oldid=prev</id>
		<title>Tcsdcc: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://docs.tcsdcc.com/index.php?title=Module:Wikibase&amp;diff=155&amp;oldid=prev"/>
		<updated>2018-04-24T16:47:25Z</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 16:47, 24 April 2018&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>Tcsdcc</name></author>
	</entry>
	<entry>
		<id>https://docs.tcsdcc.com/index.php?title=Module:Wikibase&amp;diff=154&amp;oldid=prev</id>
		<title>imported&gt;MusikAnimal: Protected &quot;Module:Wikibase&quot;: High-risk module ([Edit=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://docs.tcsdcc.com/index.php?title=Module:Wikibase&amp;diff=154&amp;oldid=prev"/>
		<updated>2017-10-10T17:19:53Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Module:Wikibase&quot; title=&quot;Module:Wikibase&quot;&gt;Module:Wikibase&lt;/a&gt;&amp;quot;: &lt;a href=&quot;/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates (page does not exist)&quot;&gt;High-risk module&lt;/a&gt; ([Edit=Require template editor access] (indefinite))&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;no mw.wikibase&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	entity = mw.wikibase.getEntityObject()&lt;br /&gt;
&lt;br /&gt;
	if entity == nil then&lt;br /&gt;
		return &amp;quot;no entity&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return entity.id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the WD entity URL of a given data item, or of connected page&lt;br /&gt;
-- if no argument is provided to this method.&lt;br /&gt;
function p.wdurl(frame)&lt;br /&gt;
	if frame.args[1] == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityObject()&lt;br /&gt;
		if not entity then return nil end&lt;br /&gt;
		id = entity.id&lt;br /&gt;
	else&lt;br /&gt;
		id = mw.text.trim(frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
	return mw.wikibase.getEntityUrl( id )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the label of a given data item, or of connected page&lt;br /&gt;
-- if no argument is provided to this method.&lt;br /&gt;
function p.label(frame)&lt;br /&gt;
	if frame.args[1] == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityObject()&lt;br /&gt;
		if not entity then return nil end&lt;br /&gt;
		id = entity.id&lt;br /&gt;
	else&lt;br /&gt;
		id = mw.text.trim(frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
	return mw.wikibase.label( id )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the description of a given data item, or of connected page&lt;br /&gt;
-- if no argument is provided to this method.&lt;br /&gt;
function p.description(frame)&lt;br /&gt;
	if frame.args[1] == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityObject()&lt;br /&gt;
		if not entity then return nil end&lt;br /&gt;
		id = entity.id&lt;br /&gt;
	else&lt;br /&gt;
		id = mw.text.trim(frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
	return mw.wikibase.description( id )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the local page about a given data item, or of connected page&lt;br /&gt;
-- if id is not specified.&lt;br /&gt;
function p.page(frame)&lt;br /&gt;
	if frame.args[1] == nil then&lt;br /&gt;
		entity = mw.wikibase.getEntityObject()&lt;br /&gt;
		if not entity then return nil end&lt;br /&gt;
		id = entity.id&lt;br /&gt;
	else&lt;br /&gt;
		id = mw.text.trim(frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
	return mw.wikibase.sitelink( id )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the data type of a property&lt;br /&gt;
function p.datatype(frame)&lt;br /&gt;
	if frame.args[1] and string.find(frame.args[1], &amp;quot;Property:P&amp;quot;) then&lt;br /&gt;
		if mw.wikibase.getEntityObject(string.gsub(frame.args[1], &amp;quot;Property:P&amp;quot;, &amp;quot;P&amp;quot;))  then&lt;br /&gt;
			return mw.wikibase.getEntityObject(string.gsub(frame.args[1], &amp;quot;Property:P&amp;quot;, &amp;quot;P&amp;quot;) ).datatype&lt;br /&gt;
		end&lt;br /&gt;
	elseif frame.args[1] and string.find(frame.args[1], &amp;quot;P&amp;quot;) then&lt;br /&gt;
		if mw.wikibase.getEntityObject(frame.args[1])  then&lt;br /&gt;
			return mw.wikibase.getEntityObject(frame.args[1]).datatype&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;MusikAnimal</name></author>
	</entry>
</feed>