| Contenidos de Wikipedia en español bajo licencia CC BY-SA 4.0 ⇔ Mapas de OpenStreetMap bajo licencia ODbL |
Diferencia entre revisiones de «Módulo:Formato texto»
De Hispanopedia
enVersalita |
Sin resumen de edición |
||
| Línea 25: | Línea 25: | ||
end | end | ||
function z. | function z.enVersalitas(texto) | ||
return texto and '<span style="font-variant:small-caps">' .. texto .. '</span>' | return texto and '<span style="font-variant:small-caps">' .. texto .. '</span>' | ||
end | end | ||
Revisión del 19:33 6 oct 2015
La documentación para este módulo puede ser creada en Módulo:Formato texto/doc
local z = {}
function z.entreComillas(texto, ref)
if ref and texto then
return '«' .. texto .. '»' .. ref
elseif texto then
return '«' .. texto .. '»'
end
end
function z.entreParentesis(texto, calificativo)
if texto and calificativo then
return texto .. ' (' .. calificativo .. ')'
else
return texto
end
end
function z.enCursivas(texto, ref)
if ref and texto then
return '<i>' .. texto .. '</i>' .. ref
elseif texto then
return '<i>' .. texto .. '</i>'
end
end
function z.enVersalitas(texto)
return texto and '<span style="font-variant:small-caps">' .. texto .. '</span>'
end
function z.enVariasLineas(lista)
local copia={}
require('Módulo:Tablas').insertarElementosConValor(lista, copia)
return table.concat(copia, '<br/>')
end
function z.separadosPorComa(lista)
local copia={}
require('Módulo:Tablas').insertarElementosConValor(lista, copia)
return table.concat(copia, ', ')
end
return z