<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://sta.dnb.de/w/index.php?action=history&amp;feed=atom&amp;title=Modul%3AWikibase</id>
	<title>Modul:Wikibase - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://sta.dnb.de/w/index.php?action=history&amp;feed=atom&amp;title=Modul%3AWikibase"/>
	<link rel="alternate" type="text/html" href="https://sta.dnb.de/w/index.php?title=Modul:Wikibase&amp;action=history"/>
	<updated>2026-05-26T21:39:49Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in STA Dokumentationsplattform</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://sta.dnb.de/w/index.php?title=Modul:Wikibase&amp;diff=4538&amp;oldid=prev</id>
		<title>10.10.62.28: Die Seite wurde neu angelegt: „---------- Module:Wikibase ---------------- require('Module:No globals') local p = {}  -- Return the entity ID of the item linked to the current page. function…“</title>
		<link rel="alternate" type="text/html" href="https://sta.dnb.de/w/index.php?title=Modul:Wikibase&amp;diff=4538&amp;oldid=prev"/>
		<updated>2020-05-21T11:39:32Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „---------- Module:Wikibase ---------------- require(&amp;#039;Module:No globals&amp;#039;) local p = {}  -- Return the entity ID of the item linked to the current page. function…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&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>10.10.62.28</name></author>
	</entry>
</feed>