Module:Gallery: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(per Template talk:Gallery, problem when ref is included inside non-visible title portion of image) |
(per talk page) |
||
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 107: | Line 106: | ||
:css('display', 'block') |
:css('display', 'block') |
||
:css('font-size', '1em') |
:css('font-size', '1em') |
||
:css('height', (0.2 + 1.5*lines) .. 'em') |
|||
:css('padding', '0px') |
:css('padding', '0px') |
||
:tag('div') |
:tag('div') |
||
:addClass('gallerytext') |
:addClass('gallerytext') |
||
:css('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') |
||
:css('padding', '2px 6px 1px 6px') |
:css('padding', '2px 6px 1px 6px') |
||
:css('overflow-y', 'auto') |
|||
:css('margin', '0px') |
:css('margin', '0px') |
||
:css('border', 'none') |
:css('border', 'none') |