Template talk:Gallery
Add topic| Template:Gallery is indefinitely protected from editing as 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 a 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: | ||||||||
| ||||||||
Vertical alignment
[edit]Is is possible to vertically align images? PhotographyEdits (talk) 11:00, 9 March 2025 (UTC)
Align footer left
[edit]I feel like it's weird and arbitrary that the footer is aligned right by default. It just makes the footer unsuitable for long text that wraps to the next line. Should there be an option that lets you change the alignment setting of the footer (right, center, left)? Nrco0e (talk • contribs) 06:39, 11 September 2025 (UTC)
Why do we support packed-hover?
[edit]I recently told @Crisco 1492 in WP:Featured article candidates/George F. Durand/archive1 to remove a hover directive because it is contraindicated by MOS:NOHOVER for various accessability reasons. Digging a little deeper, I see that this is supported by {{Gallery}} and that Help:Gallery tag even encourages it, saying that it "degrades gracefully on screen readers". So what's the real story here? Is packed-hover legit or not? RoySmith (talk) 19:03, 18 June 2026 (UTC)
"State" parameter for collapsing does not work due to incorrect classes
[edit]The module adds the class "collapsible" instead of "mw-collapsible" and "mw-collapsed," which means that the State parameter for setting the initial state of collapsed vs. expanded in the template does not work.
Suggest editing line 107 of the module to add the classes "mw-collapsible" and "mw-collapsed" as noted, and editing line 216 to add the class "mw-collapsible-content" so that if the Title parameter is present, then it is shown uncollapsed (with the images being the collapsed content) for accessibility. - JaneBuzJane (talk) 19:03, 28 August 2026 (UTC)