Jump to content

Module:Databox

Unchecked
From Wikipedia

Documentation for this module may be created at Module:Databox/doc

local properties = {"P17", "P21", "P19", "P20", "P25", "P22"}

local p = {}

function p.databox()
	local item = mw.wikibase.getEntity()
	
	if item == nil then
		mw.addWarning("Wikidata item not found")
		return ""
	end
	
	local databoxRoot = mw.html.create('div')
	    databoxRoot:tag('div').wikitext(
	    	item.getLabel() or mw.title.getCurrentTitle().text)
end

return p