<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://wiki.theeum.com/index.php?action=history&amp;feed=atom&amp;title=%EB%AA%A8%EB%93%88%3AWikibase</id>
	<title>모듈:Wikibase - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.theeum.com/index.php?action=history&amp;feed=atom&amp;title=%EB%AA%A8%EB%93%88%3AWikibase"/>
	<link rel="alternate" type="text/html" href="https://wiki.theeum.com/index.php?title=%EB%AA%A8%EB%93%88:Wikibase&amp;action=history"/>
	<updated>2026-06-03T03:51:19Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.theeum.com/index.php?title=%EB%AA%A8%EB%93%88:Wikibase&amp;diff=18107&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;wikibase module not found&quot;         end           entity = mw.wikibase.getEntityObject()           if entity == nil then            return &quot;(연결된 항목 없음)&quot;         end           return entity.id end   -- Return the label of a given data item. function p.label(frame)         if frame.args[1] == nil then...</title>
		<link rel="alternate" type="text/html" href="https://wiki.theeum.com/index.php?title=%EB%AA%A8%EB%93%88:Wikibase&amp;diff=18107&amp;oldid=prev"/>
		<updated>2024-06-12T05:04:36Z</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;wikibase module not found&amp;quot;         end           entity = mw.wikibase.getEntityObject()           if entity == nil then            return &amp;quot;(연결된 항목 없음)&amp;quot;         end           return entity.id end   -- Return the label of a given data item. function p.label(frame)         if frame.args[1] == nil then...&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;wikibase module not found&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        entity = mw.wikibase.getEntityObject()&lt;br /&gt;
 &lt;br /&gt;
        if entity == nil then&lt;br /&gt;
           return &amp;quot;(연결된 항목 없음)&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        return entity.id&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
-- Return the label of a given data item.&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;
 &lt;br /&gt;
            id = entity.id&lt;br /&gt;
        else&lt;br /&gt;
            id = frame.args[1]&lt;br /&gt;
        end&lt;br /&gt;
 &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.&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;
 &lt;br /&gt;
            id = entity.id&lt;br /&gt;
        else&lt;br /&gt;
            id = frame.args[1]&lt;br /&gt;
        end&lt;br /&gt;
 &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;
--[[ lengthOfValue&lt;br /&gt;
이 함수는 위키데이터의 특정 속성에 값이 몇 개가 달려 있는지를 출력하는 함수입니다.&lt;br /&gt;
변수 #1 - 속성 ID (&amp;#039;p373&amp;#039;의 형식)&lt;br /&gt;
- Kwj2772&lt;br /&gt;
]]&lt;br /&gt;
function p.lengthOfValue(frame)&lt;br /&gt;
        if frame.args[1] == nil then&lt;br /&gt;
            return &amp;#039;속성을 지정해야 합니다.&amp;#039;&lt;br /&gt;
        else&lt;br /&gt;
            property = mw.text.trim( frame.args[1] ) -- &amp;#039;p373&amp;#039;의 형식&lt;br /&gt;
        end&lt;br /&gt;
        local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
        if not entity then return 0 end&lt;br /&gt;
        if entity[&amp;#039;claims&amp;#039;] == nil or entity[&amp;#039;claims&amp;#039;][property] == nil then&lt;br /&gt;
            length = 0&lt;br /&gt;
        else&lt;br /&gt;
            length = #entity[&amp;#039;claims&amp;#039;][property]&lt;br /&gt;
        end&lt;br /&gt;
        return length&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>젊은리버럴</name></author>
	</entry>
</feed>