Module:WikibaseLabel

From Android Wiki
Revision as of 17:33, 22 August 2019 by Florian (talk | contribs) (4 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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