Modulo:Immagine multipla/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m banali refusi Etichette: Modifica da mobile Modifica da web per mobile |
+ |
||
(9 versioni intermedie di uno stesso utente non sono mostrate) | |||
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 227:
local bodywidth = 0
for r=1,rowcount do
local bw = widthsum[r] + 4 * (perrow[r] - 1) +
bodywidth = math.max(bodywidth, bw)
end
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')
if align == 'center' or align == 'centre' or align == 'centro' then▼
root:css('margin', '0 auto')▼
-- crea il div interno
local div = root:tag('div')
div:addClass('thumbinner')▼
▲ if align == 'center' or align == 'centre' or align == 'centro' then
end
▲ 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
--
div:tag('div'):css('clear', 'left')▼
▲ div:tag('div')
▲ :css('clear', 'left')
end
-- add the footer
Line 300 ⟶ 288:
:css('background-color', args['sfondo sotto'] or 'transparent')
:wikitext(footer)
end
return tostring(root)
|