<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://wiki-raamsdonk.nl/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikibase</id>
	<title>Module:Wikibase - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-raamsdonk.nl/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikibase"/>
	<link rel="alternate" type="text/html" href="https://wiki-raamsdonk.nl/index.php?title=Module:Wikibase&amp;action=history"/>
	<updated>2026-04-06T15:59:11Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki-raamsdonk.nl/index.php?title=Module:Wikibase&amp;diff=78054&amp;oldid=prev</id>
		<title>Colani: 1 versie geïmporteerd</title>
		<link rel="alternate" type="text/html" href="https://wiki-raamsdonk.nl/index.php?title=Module:Wikibase&amp;diff=78054&amp;oldid=prev"/>
		<updated>2024-03-26T11:11:53Z</updated>

		<summary type="html">&lt;p&gt;1 versie geïmporteerd&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;---------- Module:Wikibase ----------------&lt;br /&gt;
require(&amp;#039;Module:No globals&amp;#039;)&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 item ID of the item linked to the specified page.&lt;br /&gt;
function p.idForTitle(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;
	local qid&lt;br /&gt;
	if not frame.args[1] then&lt;br /&gt;
		qid = mw.wikibase.getEntityIdForCurrentPage() -- default the item connected to the current page&lt;br /&gt;
	else&lt;br /&gt;
		qid = mw.wikibase.getEntityIdForTitle(mw.text.trim(frame.args[1]))&lt;br /&gt;
	end&lt;br /&gt;
	return qid or &amp;quot;no entity&amp;quot;&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 == &amp;#039;&amp;#039; 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 &amp;#039;&amp;#039;) -- 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(&amp;#039;PROPERTY:P&amp;#039;, &amp;#039;P&amp;#039;)) -- 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>Colani</name></author>
	</entry>
</feed>