Diferencia entre revisiones de «Módulo:Ficha»
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 331: | Línea 331: | ||
for k, num in ipairs(imagenums) do | for k, num in ipairs(imagenums) do | ||
local pie = args['pie' .. num] | local pie = args['pie' .. num] | ||
local flotante = args['imagenflotante' .. num] or false | |||
if args['tamañoimagen'..num] == nil then | if args['tamañoimagen'..num] == nil then | ||
args['tamañoimagen'..num] = anchoImagen | args['tamañoimagen'..num] = anchoImagen | ||
| Línea 342: | Línea 343: | ||
end | end | ||
local datos = HtmlBuilder.create().wikitext(imagen) | local datos = HtmlBuilder.create().wikitext(imagen) | ||
if pie and not flotante then | |||
datos | |||
.tag('br', {selfClosing = true}) | |||
.done() | |||
end | |||
if pie then | if pie then | ||
datos | datos | ||
.tag('span') | .tag('span') | ||
.cssText(args.estilopie) | .cssText(args.estilopie) | ||