Template talk:Wide image

Support for upright
If a qualified editor cared to take on modification of this template to support, that would be a tremendous contribution to the implementation of the image size user preference. Given the widespread usage of the template, this will have to happen eventually if Wikipedia takes the user preference seriously; and there's no time like the present. ― Mandruss  &#9742;  20:07, 5 May 2018 (UTC)

The policy WP:IMGSIZE states (emphasis not added): There is no very good reason to use fixed sizes for larger images; in fact the user preference is arguably even more important for larger images. ― Mandruss  &#9742;  20:55, 5 May 2018 (UTC)
 * Support this request for wide_image and multiple_image (if possible). Thanks. -SusanLesch (talk) 18:40, 6 December 2020 (UTC)

Can't scroll on mobile browser
Today I found the image becomes no scrollable on mobile page, but when I switched to desktop mode, it works. What happened to the mobile frontend? Great Brightstar (talk) 07:45, 10 August 2018 (UTC)
 * works for me. Can you be more specific ? Which image on which page, with which browser ? —Th e DJ (talk • contribs) 07:55, 10 August 2018 (UTC)
 * Yes, I just want to update for LibreOffice, but suddenly I found the timeline image become unscrollable that I can't scroll to left or right with finger, later I saw the problem again at the template page, all of images were affected. I used Firefox 61.0 on Android. --Great Brightstar (talk) 08:12, 10 August 2018 (UTC)


 * I reported in T202210. Great Brightstar (talk) 01:10, 19 August 2018 (UTC)


 * I think I got the solution for this, in the sandbox page I've just moved "noresize" into an internal element, then the sandbox works in test cases if I open with Fennec. The same implementation is already made in Panorama. So please copy the source code from sandbox page. Great Brightstar (talk) 15:51, 22 August 2018 (UTC)
 * okay, I made the change. please revert if there is a problem. Frietjes (talk) 18:10, 22 August 2018 (UTC)


 * Thank you. 🤝 Great Brightstar (talk) 00:02, 23 August 2018 (UTC)

Dropping margin-bottom property while the outer border is removed
This template currently uses  property all the time, even if the outer border is removed via a parameter, however this class brings the following property: If you think this margin is unnecessary, copy my source code from sandbox page. --Great Brightstar (talk) 19:10, 26 January 2019 (UTC)
 * Yes check.svg Done -- / Alex /21  01:34, 27 January 2019 (UTC)

Fix regression
What the last edit caused a regression makes the template shifted to right in case 7 while I saw the test cases page, I made a bugfix at the sandbox page. --Great Brightstar (talk) 18:31, 22 February 2019 (UTC)
 * test case 7 appears to still have an issue. — xaosflux  Talk 18:11, 23 February 2019 (UTC)
 * Never mind, that is the issue to be fixed :D — xaosflux  Talk 18:12, 23 February 2019 (UTC)
 * ✅ — xaosflux  Talk 18:13, 23 February 2019 (UTC)

Lua version
I switched the live template to use a new lua version. from my testing, "expandTemplates" output was identical for all the testcases, but this new version will allow us to leverage other lua features (like automatic retrieval of native image dimensions). please revert and let me know if anything blows up. Frietjes (talk) 22:43, 16 April 2019 (UTC)
 * I'm not sure if it's related or not, but the align-cap parm no longer works.-- Auric   talk  20:44, 17 April 2019 (UTC)
 * works for me in Újpest FC (possibly fixed [//en.wikipedia.org/w/index.php?title=Module:Wide_image&diff=prev&oldid=892943716 here]). Frietjes (talk) 13:12, 20 April 2019 (UTC)
 * I have found a problem in case 8, the image is set as 500px, however the &lt;div&gt; tag is larger in 8 px, so I suggest to add an exception for this case. --Great Brightstar (talk) 13:51, 25 April 2019 (UTC)
 * that was a typo, [//en.wikipedia.org/w/index.php?title=Module%3AWide_image&type=revision&diff=894088349&oldid=893065033 fixed here] (using noborder before it was defined). Frietjes (talk) 15:29, 25 April 2019 (UTC)


 * I made a bugfix at the sandbox page, which would add margin at the bottom of frame, affects case 7. -- Great Brightstar (talk) 15:39, 8 May 2019 (UTC)

No scrollbar on mobile browser (again)
I don't know what's causing the problem, but looking at this template right now on a mobile browser (eg. Amphibian), it's not showing scrollbars on mobile. There's no visual indicator that the image there is either cropped or scrollable. --Lord Belbury (talk) 11:39, 28 January 2020 (UTC)
 * , mobile devices don't have scrollbars, just scrollable surfaces. And we indeed have no indicator for that (there never has been). —Th e DJ (talk • contribs) 12:10, 28 January 2020 (UTC)
 * Oh, okay. That seems bad, if it makes it a row of eight frog photos look like a row of five with nothing more to see. Could we put a CSS border around the image on mobile, to imply that it goes off the edge of the screen? --Lord Belbury (talk) 12:17, 28 January 2020 (UTC)
 * On Firefox for Android I can see the scrollbar, but it only appeared while you scrolling an image, and it's just a tiny notice on screen, unlike that of desktop browsers. --Great Brightstar (talk) 15:17, 22 July 2020 (UTC)

Was reminded of this after seeing another website (https://timeanddate.com/sun/uk/london) using a CSS border to convey that content was scrollable. It puts a thick dotted grey border down the right side of the scrollable content, which works well. Is there a way to have a border appear only on mobile? --Lord Belbury (talk) 09:57, 10 May 2020 (UTC)

Fix for the margin property
This template used  property, however this has bad effects on page layout while I see Airbus, which caused no gaps between the frames comparing to other frame of thumbnails. To fix this inconsistency, I suggest using new codes from Module:Wide image/sandbox. -- Great Brightstar (talk) 11:22, 21 July 2020 (UTC)
 * Yes check.svg Done (diff) Matt Fitzpatrick (talk) 04:28, 28 July 2020 (UTC)

Two problems

 * 1) 'cap-align' was changed to 'align-cap' here on line 117, but earlier up in the template, 'capalign', 'align', and 'text-align' are used instead. This is probably causing a problem, that was mentioned in Template_talk:Wide_image.
 * 2) The 'alt' text is not working. In Template:Wide_image/doc, the 'alt' text doesn't show up at all. In the Template:Wide_image/doc example, the 'alt' doesn't show up, instead, what does show is a copy of the 'caption' "Helsinki panorama", but not was is listed after 'alt='.

If these issues could be fixed, that would be great. Funandtrvl (talk) 22:15, 23 November 2020 (UTC)
 * Pinging module author in case she can help. Disabling request as code is not yet ready. &mdash; Martin (MSGJ · talk) 22:25, 23 November 2020 (UTC)
 * thanks, it's not working at Template:Panorama either, as these templates are linked. Funandtrvl (talk) 04:09, 24 November 2020 (UTC)
 * (1) the  function takes   and passes it to the   as  .  note that   is a variable used within   and is not the same as   which is not a supported input.  unknown parameters are tracked in the currently empty Category:Pages using wide image with unknown parameters via this template frontend.  if you want this template to support alternative syntax for this parameter, we can certainly do so.  (2) it is useful to push the example through Special:ExpandTemplates to see what is happening.  for   this expands to    this appears to me to conform to Extended image syntax.  if you have a particular example that doesn't have the alt= in the image syntax, please let me know. Frietjes (talk) 20:00, 24 November 2020 (UTC)
 * The problem is when you hover over the photos within the Wide image template, you should see a white box with the alt text within it. It is working for the Module:InfoboxImage, but not Module:Wide image. See 3 examples below, the first one is working, the second and third are not:

1. When you hover over the photo, a white box pops up and contains "The front stairs and door of Abbey Road Studios"

2. When you hover over the photo below, the alt text does not pop up in a white box.

3. In this example, the caption "Helsinki panorama" pops up in the white alt text box, but is should be the alt text of "Panorama of city with mixture of five to ten story buildings", instead.

"Template:Großes Bild" listed at Redirects for discussion
The redirect [//en.wikipedia.org/w/index.php?title=Template:Gro%C3%9Fes_Bild&redirect=no Template:Großes Bild] has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at until a consensus is reached. Aaron Liu (talk) 17:23, 10 March 2023 (UTC)

Relative sizing
Since sizing in pixels is deprecated, is there a way to size relative to the reader's prefs? Equivalent to "upright" in bracket formatting? — kwami (talk) 20:19, 22 January 2024 (UTC)

"Template:Wide image-2" listed at Redirects for discussion
The redirect [//en.wikipedia.org/w/index.php?title=Template:Wide_image-2&redirect=no Template:Wide image-2] has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at  until a consensus is reached. Magioladitis (talk) 08:48, 11 May 2024 (UTC)