Module:Teste
From determinar.ia.br - Determine suas informações
Documentation for this module may be created at Module:Teste/doc
local p = {}
function p.testarItem()
local entity = mw.wikibase.getEntity('Q1')
if entity then
local idiomas = {}
for lang, _ in pairs(entity.labels or {}) do
table.insert(idiomas, lang)
end
return "Entidade encontrada! Idiomas de label disponíveis: " .. table.concat(idiomas, ", ")
else
return "Entidade NÃO encontrada — self-client não está funcionando"
end
end
return p
