Module:Gallery: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(add captionstyle as requested on the talk page)
(move to correct location :))
Line 77: Line 77:
.css('padding', '0px')
.css('padding', '0px')
.css('text-align', 'center')
.css('text-align', 'center')
.cssText(captionstyle)
.wikitext(mw.ustring.format('[[%s|center|border|%dx%dpx|alt=%s|%s]]', img, imgWidth, imgHeight, alt, caption))
.wikitext(mw.ustring.format('[[%s|center|border|%dx%dpx|alt=%s|%s]]', img, imgWidth, imgHeight, alt, caption))
.done()
.done()
Line 98: Line 97:
.css('border', 'none')
.css('border', 'none')
.css('border-width', '0px')
.css('border-width', '0px')
.cssText(captionstyle)
.wikitext(caption .. ' ')
.wikitext(caption .. ' ')
end
end