Modulo:Immagine multipla/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m banali refusi Etichette: Modifica da mobile Modifica da web per mobile |
Nessun oggetto della modifica |
||
Riga 9:
--=====================================================
-- Generazione del codice una singola cella contenente
-- un
--=====================================================
local function renderImageCell(image, width, height, link, alt, caption, textalign, istyle)
Riga 71:
-- Se queste non sono passate dai parametri tenta di recuperarle
-- dalle informazioni del file immagine, altrimenti ricade su
-- una larghezza pari a 200 e un'altezza pari
--=====================================================
Riga 108:
end
if found then
istart =
iend = iend + istep
else
Riga 233:
bodywidth = math.max( 100, bodywidth);
-- crea il div esterno per la galleria di immagini
local root = mw.html.create('div')
root:addClass('thumb')
root:addClass(thumbclass[align] or 'tright')
root:css('width', tostring(bodywidth+2) .. 'px')
-- :css('max-width', tostring(bodywidth) .. 'px')
if align == 'center' or align == 'centre' or align == 'centro' then
root:css('margin', '0 auto')
end
-- crea il div interno
local div = root:tag('div')
div:addClass('thumbinner')
-- aggiunge il titolo
if header then
Line 269 ⟶ 263:
if dir ~= 'vertical' then
imagediv:css('float', 'left')
end
imagediv:css('margin', '1px')
Line 286 ⟶ 277:
end
end
--
▲ :css('clear', 'left')
end
-- add the footer
Line 300 ⟶ 288:
:css('background-color', args['sfondo sotto'] or 'transparent')
:wikitext(footer)
end
return tostring(root)
|