Jump to content

Template talk:Gallery

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Too white on dark mode. Can we get rid of white backgrounds?

[edit]

The template uses a white background by default. This is too bright on dark mode. Removing this from the CSS fixes the issue:

.mod-gallery .whitebg .thumb {
background: #fff !important;
}

The default background color for a gallery is the same light grey as an infobox for the standard light theme. Rjjiii (talk) 03:55, 26 July 2024 (UTC)[reply]

[edit]

I tried testing it and couldn't quite tell, but I think the footer size may be in violation of MOS:SMALL. I can't seem to see the source code for the template to see if it is set at 85% or above, but to my eye it appears that it might be below that required threshold. Can I get confirmation whether it is indeed a violation or if I'm just seeing things? And of course, if it is indeed too small, then please adjust it. QuietHere (talk | contributions) 07:16, 26 July 2024 (UTC)[reply]

You were correct. The footer text was at 80%. I have increased it to 85% per MOS:SMALLFONT. – Jonesey95 (talk) 19:12, 26 July 2024 (UTC)[reply]
[edit]

It seems to be impossible to use the visual editor to add images to a gallery, you have to add the images elsewhere in the article, then switch to source mode to actually move them into the gallery; the template should be improved to be easier to use in the visual editor, for those who do not like using the source editor 2600:480A:5033:F601:E056:2C73:ED4D:E87D (talk) 23:02, 14 September 2024 (UTC)[reply]

I don't use VE, but it looks like it might help to add |1=, |2=, etc. to the TemplateData section of the documentation. Those are the parameters for the files and captions. – Jonesey95 (talk) 17:33, 16 September 2024 (UTC)[reply]

Tracking use of captionstyle

[edit]

Why does the module track (line 23) the use of the captionstyle parameter? Are there any problems using it? Thanks. Amadalvarez (talk) 06:55, 6 January 2025 (UTC)[reply]