Modul:WikibaseLabel: Difference between revisions

From Android Wiki
No edit summary
(fix für LabelLanguage, anstelle von Label only)
 
Line 4: Line 4:
local entity = mw.wikibase.getEntity()
local entity = mw.wikibase.getEntity()
if (entity) then
if (entity) then
return entity:getLabel()
label, lang = entity:getLabel()
return  label
else
else
     return
     return

Latest revision as of 21:45, 4 October 2016

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