<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://catalog.jinharsh.co.in/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://catalog.jinharsh.co.in/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikibase"/>
	<link rel="alternate" type="text/html" href="https://catalog.jinharsh.co.in/index.php?title=Module:Wikibase&amp;action=history"/>
	<updated>2026-05-12T00:28:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://catalog.jinharsh.co.in/index.php?title=Module:Wikibase&amp;diff=7737&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://catalog.jinharsh.co.in/index.php?title=Module:Wikibase&amp;diff=7737&amp;oldid=prev"/>
		<updated>2021-04-15T13:50:24Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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 13:50, 15 April 2021&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>Admin</name></author>
	</entry>
	<entry>
		<id>https://catalog.jinharsh.co.in/index.php?title=Module:Wikibase&amp;diff=7736&amp;oldid=prev</id>
		<title>setup&gt;Uzume: Module:No globals</title>
		<link rel="alternate" type="text/html" href="https://catalog.jinharsh.co.in/index.php?title=Module:Wikibase&amp;diff=7736&amp;oldid=prev"/>
		<updated>2020-04-25T00:54:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&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;
require('Module:No globals')&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Return the entity 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;
	return mw.wikibase.getEntityIdForCurrentPage() or &amp;quot;no entity&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the URL of an entity given its entity ID&lt;br /&gt;
-- or the item linked to the current page if no argument is provided.&lt;br /&gt;
function p.wdurl(frame)&lt;br /&gt;
	return mw.wikibase.getEntityUrl(frame.args[1] and mw.text.trim(frame.args[1])) -- defaults to entity URL of the item linked to the current page&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the label of an entity given its entity ID&lt;br /&gt;
-- or the item linked to the current page if no argument is provided.&lt;br /&gt;
function p.label(frame)&lt;br /&gt;
	return mw.wikibase.getLabel(frame.args[1] and mw.text.trim(frame.args[1])) -- defaults to label of the item linked to the current page&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the description of an entity given its entity ID&lt;br /&gt;
-- or the item linked to the current page if no argument is provided.&lt;br /&gt;
function p.description(frame)&lt;br /&gt;
	return mw.wikibase.getDescription(frame.args[1] and mw.text.trim(frame.args[1])) -- defaults to description of the item linked to the current page&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the local title of an item given its entity ID&lt;br /&gt;
-- or the item linked to the current page if no argument is provided.&lt;br /&gt;
function p.page(frame)&lt;br /&gt;
	local qid = frame.args[1] and mw.text.trim(frame.args[1])&lt;br /&gt;
	if not qid or qid == '' then&lt;br /&gt;
		qid = mw.wikibase.getEntityIdForCurrentPage() -- default the item connected to the current page&lt;br /&gt;
	end&lt;br /&gt;
	return mw.wikibase.getSitelink(qid or '') -- requires one string arg&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Return the data type of a property given its entity ID.&lt;br /&gt;
function p.datatype(frame)&lt;br /&gt;
	local prop = mw.wikibase.getEntity(frame.args[1] and mw.text.trim(frame.args[1]):upper():gsub('PROPERTY:P', 'P')) -- trim and remove any &amp;quot;Property:&amp;quot; prefix&lt;br /&gt;
	return prop and prop.datatype&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>setup&gt;Uzume</name></author>
	</entry>
</feed>