Jump to content
Wikipedia The Free Encyclopedia

Template talk:Multiple image

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Multiple image)
Template:Multiple image is permanently 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 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 Multiple image template.
Archives (index): 1, 2, 3, 4 Auto-archiving period: 3 months


Adapting to non-WMF wikis

[edit ]

Any good fellow willing to document how to adapt the CSS (and the module too, I suspect) for third party wikis? I can't for the life of me get the backgrounds working, and alignment is ignored too. I suppose this all depends on some of those mysterious overrides used on WMF wikis or some CSS I can't find. Tactica (talk) 02:23, 19 October 2025 (UTC) [reply ]

Request: enhance to support image cropping

[edit ]

Can someone enhance Template:Multiple image to support image cropping? This request was made by another editor in May 2023 (now in the Talk archives), but got no reply. So I'm repeating the request (because I need it). The template Template:Easy CSS image crop only supports a single image. I can look into doing the enhancement if no one else wants to. Noleander (talk) 20:16, 9 November 2025 (UTC) [reply ]

Its generally not a good idea to cram too much functionality in one and the same template. Its a maintenance nightmare. I would suggest simple uploading a separate cropped image. —TheDJ (talkcontribs) 07:42, 11 November 2025 (UTC) [reply ]
[edit ]

How do I change the text size for captions and footers? ~2025-35738-78 (talk) 08:48, 24 November 2025 (UTC) [reply ]

image_gap

[edit ]

The documentation states that the default image gap is 5, but reading through the code it seems to be 1.

Line 108:
local imagegap = tonumber(pargs['image_gap'] or '1') or 1 Eman7blue42 (talk page | recent edits) 20:23, 17 December 2025 (UTC) [reply ]

Fixed: Special:Diff/1328091658. For context, documentation comes from Special:Diff/915562825 on 14 September 2019. At the time, the default value in code was already 1: Special:Diff/923043136. The current default value comes from Special:Diff/798742238 on 3 September 2017. —⁠andrybak (talk) 20:35, 17 December 2025 (UTC) [reply ]

Dark mode skin invert image problem

[edit ]

When using "classX=skin-invert-image" on chemical structure images within multiple image templates to invert them for dark mode, a bug occurs such that the image becomes pure white or near-pure white rather than inverted. Here is an example:

{{Multiple image | align = none | header = Chemical structures of psychedelics | image1 = Psilocybin, Kekulé, skeletal formula of canonical psilocybin.svg | width1 = 225px | class1 = skin-invert-image | caption1 = [[Psilocybin]] | image2 = LSD skeletal formula.svg | width2 = 150px | class2 = skin-invert-image | caption2 = [[LSD]] }}

Which displays as follows:

Chemical structures of psychedelics

It's preventing full dark mode implementation on many pages and should be fixed. – AlyInWikiWonderland (talk, contribs) 22:48, 23 December 2025 (UTC) [reply ]

Sync with sandbox

[edit ]
This edit request to Module:Multiple image has been answered. Set the |answered= parameter to no to reactivate your request.

Image accessibility improvements (alt= shouldn't be empty on non-decorative images). sapphaline (talk) 11:47, 28 December 2025 (UTC) [reply ]

Not done: it's not clear what changes you want made. Please detail the specific changes in a "change X to Y" format and provide a reliable source if appropriate. Zackmann (Talk to me /What I been doing ) 16:52, 28 December 2025 (UTC) [reply ]
What's hard with "sync with sandbox" when there's a "sandbox" link in the message box? sapphaline (talk) 16:56, 28 December 2025 (UTC) [reply ]
@Sapphaline: in the future please specify in your comment the diff using change x to y format. Particularly in a case like this it is not clear when you just throw it in the header. Your change is not actually to this template, but to the module that this template implements, so when I looked at the sandbox history I was very confused as there are no recent edits... The onus is on you to make clear what you are requesting when you use {{edit protected }}. Zackmann (Talk to me /What I been doing ) 18:50, 28 December 2025 (UTC) [reply ]
@Zackmann08: Template changes are rarely suitable for a "change x to y" format, this is why we provide the sandbox and testcases feature. The box above provides a "sandbox diff" link, which shows exactly the desired changes. --Redrose64 🦌 (talk) 20:27, 28 December 2025 (UTC) [reply ]
Good to know. Thanks Red! Zackmann (Talk to me /What I been doing ) 20:28, 28 December 2025 (UTC) [reply ]

Done—Please report any issues. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:35, 30 December 2025 (UTC) [reply ]

AltStyle によって変換されたページ (->オリジナル) /