Diferencia entre revisiones de «Módulo:Centrar/pruebas»

Contenido eliminado Contenido añadido
Sin resumen de edición
Sin resumen de edición
Línea 32:
['fantasy']='fantasy'
}
local fontWeight = {
 
['negrita'] = 'bold',
['bold'] = 'bold',
}
local fontStyle = {
['cursiva'] = 'italic',
['itálica'] = 'italic',
}
local textDecoration = {
['subrayado'] = 'underline',
}
local altparams= {['font-size']='fs', ['tamaño']='fs',
['line-height']='lh', ['interlineado']='lh',
Línea 114 ⟶ 124:
elseif tamFuente[argus[k]] ~= nil then -- opciones de tamaño de fuente sin usar el parámetro fs
div:css('font-size',tamFuente[argus[k]])
elseif fontWeight[argus[k]] ~= nil then -- opcion de peso de fuente (negrita)
div:css('font-weight',tamFuente[argus[k]])
elseif fontStyle[argus[k]] ~= nil then -- opcion de estilo de fuente (cursiva)
div:css('font-style',tamFuente[argus[k]])
elseif textDecoration[argus[k]] ~= nil then -- opcion de decoracion de texto (subrayado)
div:css('font-style',tamFuente[argus[k]])
end
end