Diferencia entre revisiones de «Módulo:EPI»
Contenido eliminado Contenido añadido
pr |
pequeño ajuste para mayor legibilidad |
||
Línea 18:
if (tonumber(argus[1])~=nil) then
if ( tonumber(argus[1]) % 2)~=0 then
html:wikitext((string.gsub( argus[3], "##", argus[1]))) --impares [en paréntesis para forzar 1 valor]
else
html:wikitext((string.gsub( argus[2], "##", argus[1]))) --pares
end
html:wikitext(argus[4]) --wikitexto adicional
end
end
mw.logObject(argus)
mw.logObject(html)
return tostring(html)
end
|