Module:WikibaseLabel: Difference between revisions

From Android Wiki
m (4 revisions imported)
 
(No difference)

Latest revision as of 17:33, 22 August 2019

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

local functions = {}

function functions.getLabel()
	local entity = mw.wikibase.getEntity()
	if (entity) then
		label, lang = entity:getLabel()
		return  label
	else
    	return
	end
end

return functions