Modul:WikibaseLabel

From Android Wiki
Revision as of 20:45, 4 October 2016 by Florian (talk | contribs) (fix für LabelLanguage, anstelle von Label only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Die Dokumentation für dieses Modul kann unter Modul:WikibaseLabel/Doku erstellt werden

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