<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AWikibase</id>
	<title>پودمان:Wikibase - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AWikibase"/>
	<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Wikibase&amp;action=history"/>
	<updated>2026-05-05T10:14:21Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Wikibase&amp;diff=330&amp;oldid=prev</id>
		<title>محمد: صفحه‌ای تازه حاوی «---------- Module:Wikibase ---------------- local p = {}  -- Return the item ID of the item linked to the current page. function p.id(frame) 	if not mw.wikibase then 		return &quot;no mw.wikibase&quot; 	end 	entity = mw.wikibase.getEntityObject()  	if entity == nil then 		return &quot;no entity&quot; 	end 	return entity.id end  -- Return the WD entity URL of a given data item, or of connected page -- if no argument is provided to this method. function p.w...» ایجاد کرد</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Wikibase&amp;diff=330&amp;oldid=prev"/>
		<updated>2025-01-22T20:48:26Z</updated>

		<summary type="html">&lt;p&gt;صفحه‌ای تازه حاوی «---------- Module:Wikibase ---------------- local p = {}  -- Return the item ID of the item linked to the current page. function p.id(frame) 	if not mw.wikibase then 		return &amp;quot;no mw.wikibase&amp;quot; 	end 	entity = mw.wikibase.getEntityObject()  	if entity == nil then 		return &amp;quot;no entity&amp;quot; 	end 	return entity.id end  -- Return the WD entity URL of a given data item, or of connected page -- if no argument is provided to this method. function p.w...» ایجاد کرد&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&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 commonswiki links&lt;br /&gt;
-- Kept for legacy reasons, not found on English Wikipedia&lt;br /&gt;
function p.linkscom(frame)&lt;br /&gt;
	    title = mw.title.getCurrentTitle()&lt;br /&gt;
	    if frame.args[2] == nil then&lt;br /&gt;
 			ahah = title.text&lt;br /&gt;
 		else&lt;br /&gt;
 			ahah = frame.args[2] end&lt;br /&gt;
 		ouput = &amp;quot;انبار|&amp;quot; .. frame.args[1] .. &amp;quot;|&amp;quot; .. ahah&lt;br /&gt;
	    if title.inNamespace( 0 ) then return ouput end&lt;br /&gt;
        entity = mw.wikibase.getEntityObject()&lt;br /&gt;
        if not entity then return ouput end&lt;br /&gt;
        if not entity.sitelinks.commonswiki.title then return ouput end&lt;br /&gt;
 		ouput = &amp;quot;انبار|&amp;quot; .. entity.sitelinks.commonswiki.title .. &amp;quot;|&amp;quot; .. ahah&lt;br /&gt;
        return ouput&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>محمد</name></author>
	</entry>
</feed>