Diferencia entre revisiones de «Módulo:Wikidata»

Intento de arreglar bug
Deshecha la edición 125051059 de Sophivorus (disc.) No lo arregló
Línea 852: Línea 852:
if valorPropiedad and idPropiedad then
if valorPropiedad and idPropiedad then
if idEntidad and idEntidad ~= '' then
lidEntidad= (idEntidad ~='' and idEntidad) or mw.wikibase.getEntityIdForCurrentPage()
lidEntidad = idEntidad
else
local wikibase = require('Módulo:Wikibase')
lidEntidad = wikibase.id()
end
end
end