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 = | if table.getn(formatoDeclaraciones) > 1 then | ||
if not conjuncion then | |||
conjuncion = 'y' | |||
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 | ||