Diferencia entre revisiones de «Módulo:Wikidata»

Permitir funciones para calificativos desde las plantillas
arreglo error con las conjunciones
Línea 334: Línea 334:
         end
         end
          
          
         if (conjuncion == nil or conjuncion == 'y') and table.getn(formatoDeclaraciones) > 1 then
         if table.getn(formatoDeclaraciones) > 1 then
        conjuncion = ' ' .. string.sub(marco:preprocess('{{y-e|{{desenlazar|' .. formatoDeclaraciones[#formatoDeclaraciones] .. '}}}}'), 1, 1) .. ' '
        if not conjuncion then
        elseif conjuncion ~= nil and conjuncion == 'o' and table.getn(formatoDeclaraciones) > 1 then
        conjuncion = 'y'
        conjuncion = ' ' .. conjuncion .. ' '
        end
        if marco and conjuncion == 'y' then
        conjuncion = ' ' .. string.sub(marco:preprocess('{{y-e|{{desenlazar|' .. formatoDeclaraciones[#formatoDeclaraciones] .. '}}}}'), 1, 1) .. ' '
        elseif conjuncion == 'y' or conjuncion == 'o' then
        conjuncion = ' ' .. conjuncion .. ' '
        end
         end
         end