Module:Gallery: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(per talk page) |
(Use min-height on div element.) |
||
Line 68: | Line 68: | ||
local cellWidth = tonumber(args.cellwidth) or tonumber(args.width) or 180 |
local cellWidth = tonumber(args.cellwidth) or tonumber(args.width) or 180 |
||
local imgHeight = tonumber(args.height) or 180 |
local imgHeight = tonumber(args.height) or 180 |
||
local lines = tonumber(args.lines) or 2 |
|||
local captionstyle = args.captionstyle |
local captionstyle = args.captionstyle |
||
Line 109: | Line 110: | ||
:tag('div') |
:tag('div') |
||
:addClass('gallerytext') |
:addClass('gallerytext') |
||
:css('min-height', (0.1 + 1.5*lines) .. 'em') |
|||
:css('width', textWidth .. 'px') |
:css('width', textWidth .. 'px') |
||
:css('line-height', '1.3em') |
:css('line-height', '1.3em') |