Diferencia entre revisiones de «Módulo:Wikidata»
mSin resumen de edición |
mSin resumen de edición |
||
| Línea 274: | Línea 274: | ||
end | end | ||
--COMPARA CADA ITEM CON UNA CADENA DADA PARA ELIMINARLA | --COMPARA CADA ITEM CON UNA CADENA DADA PARA ELIMINARLA | ||
if opciones.eliminar then | |||
for | for clave, valor in pairs(formatoDeclaraciones) do | ||
if mw.ustring.find(valor,opciones.eliminar) then | |||
if | table.remove(formatoDeclaraciones,clave) | ||
end | |||
end | |||
end | |||
if opciones.eliminar1 then | |||
for clave, valor in pairs(formatoDeclaraciones) do | |||
if mw.ustring.find(valor,opciones.eliminar1) then | |||
table.remove(formatoDeclaraciones,clave) | |||
end | |||
end | |||
end | end | ||