View source for Module:Wikibase
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
---------- 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 "no mw.wikibase"
end
entity = mw.wikibase.getEntityObject()
if entity == nil then
return "no entity"
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.wdurl(frame)
if frame.args[1] == nil then
entity = mw.wikibase.getEntityObject()
000
1:0
Templates used on this page:
- Template:Documentation subpage (view source)
- Template:Label (view source)
- Template:See also (view source)
- Template:Str left (view source)
- Template:Wikidata property link (view source)
- Template:Wpl (view source)
- Module:Arguments (view source) (protected)
- Module:Hatnote (view source) (protected)
- Module:Hatnote list (view source)
- Module:Labelled list hatnote (view source)
- Module:Wikibase (view source)
- Module:Wikibase/doc (view source)
Return to Module:Wikibase.