Template talk:Gallery
Template:Gallery is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Gallery template. |
|
Archives: 1, 2Auto-archiving period: 3 months |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Fix paddings for header and footer
[edit]This edit request to Module:Gallery/styles.css has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Last year the <gallery> tag dropped large margin at the left side, and make use of px
unit instead to produce more compact view. So this template need to update to follow on. In this template I made changes for these three classes: mod-gallery-default
, title
, footer
. You can see the changes here, and you can also see the effects on c:Template:Gallery. -- Great Brightstar (talk) 16:37, 10 June 2024 (UTC)
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)
Footer too small?
[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)
- 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)
Having trouble using the Gallery template with visual editor
[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)
- 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)