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 'immagine
--=====================================================
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 all'altezzaalla larghezza
--=====================================================
 
Riga 108:
end
if found then
istart = istartiend + istep1
iend = iend + istep
else
Riga 233:
bodywidth = math.max( 100, bodywidth);
 
local bg = args['sfondo']
-- 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
if bg then root:css('background-color', bg) end
-- crea il div interno
local div = root:tag('div')
if bg then
div:css('background-color', bg)
end
div:addClass('thumbinner')
if bg then div:css('background-color', bg) end
-- aggiunge il titolo
if header then
Line 269 ⟶ 263:
if dir ~= 'vertical' then
imagediv:css('float', 'left')
end
if bg ~= '' then
imagediv:css('background-color', bg);
end
imagediv:css('margin', '1px')
Line 286 ⟶ 277:
end
end
-- only float content gives a parent height:0, so add a clearing div
div:tag('div'):css('clear', 'left')
--if dir ~= 'vertical' and dir ~= 'verticale' then
div:tag('div')
:css('clear', 'left')
--end
end
-- add the footer
Line 300 ⟶ 288:
:css('background-color', args['sfondo sotto'] or 'transparent')
:wikitext(footer)
else
div:tag('div')
end
return tostring(root)