Diferencia entre revisiones de «Módulo:Categorización de buenos y destacados»

Agrego idiomas
m Añadida función del submódulo para fusionar ambos
Línea 188: Línea 188:
end
end
return table.concat( wikitext )
return table.concat( wikitext )
end
function p.hasAnyBadge( frame )
        local entity = mw.wikibase.getEntityObject()
        if not entity then
                return ''
        end
        for siteid, linkTable in pairs( entity.sitelinks ) do
                if next(entity.sitelinks[ siteid ].badges) ~= nil then
                        return '1'
                end
        end
        return ''
end
end


return p
return p