Template talk:Wide image
| This template was considered for deletion on 16 March 2012. The result of the discussion was "keep". |
| This is the talk page for discussing improvements to the Wide image template. |
|
| Archives: 1Auto-archiving period: 12 months |
Support for upright
editIf a qualified editor cared to take on modification of this template to support "upright" image scaling as per File:, 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 ☎ 20:07, 5 May 2018 (UTC)
The policy WP:IMGSIZE states (emphasis not added):
Except with very good reason, do not use
|px(e.g.|thumb|300px), which forces a fixed image width. In most casesupright=scaling factorshould be used, thereby respecting the user's base preference (which may have been selected for that user's particular devices).
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 ☎ 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)
- Support per nom (this one will run and run until the error is corrected or all uses of it suddenly get broken by a global edit that changes all uses of
NNNNpxtoupright=NNNN/4. It is only a matter of time.) --𝕁𝕄𝔽 (talk) 11:41, 24 November 2024 (UTC)
"Template:Großes Bild" listed at Redirects for discussion
edit
The redirect 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 Wikipedia:Redirects for discussion/Log/2023 March 10 § Template:Großes Bild until a consensus is reached. Aaron Liu (talk) 17:23, 10 March 2023 (UTC)
Relative sizing
editSince 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
edit
The redirect 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 Wikipedia:Redirects for discussion/Log/2024 May 11 § Template:Wide image-2 until a consensus is reached. Magioladitis (talk) 08:48, 11 May 2024 (UTC)
No scrollbar on desktop
editThe problem is not only #No scrollbar on mobile browser (again). On Firefox Linux, the scrollbars auto-hide after a few seconds. Can we have an icon or border to improve discoverability? 172.97.141.219 (talk) 01:28, 1 December 2024 (UTC)
- One possible solution is implementing TemplateStyles for this module. But before this implementation, anyone who have good experiences on web design should make some series of debuggs to get solution, maybe try a mobile browser that is possible to use user style. -- Great Brightstar (talk) 15:12, 26 February 2025 (UTC)
Request to add inner border
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
I made an experimental feature to add inner border via the thumbimage class so that the visual appearance of this template should be closer to {{CSS image crop}}, {{Scalable image}}, {{Annotated image}}, {{Image frame}}.
You can see my change here: https://en.wikipedia.org/w/index.php?title=Module:Wide_image/sandbox&diff=prev&oldid=1277441019, and you can see the effect on Template:Wide image/testcases. Note: Because adding thumbimage class would provide additional width in 2 px, so imagewidth + 8 have been modified as imagewidth + 10 for better fit.
Currently the problem is, if |border=no is used, this border should be dropped as well, but I don't know how to implement in this module. -- Great Brightstar (talk) 15:38, 26 February 2025 (UTC)
- @Great Brightstar, could you sync against the latest version of Module:Wide image and make the changes? Sohom (talk) 17:11, 2 March 2025 (UTC)
- OK, I did. I made it in Module:Wide image/sandbox/2, now you can see the effect on test cases page. -- Great Brightstar (talk) 17:56, 2 March 2025 (UTC)
Done Sohom (talk) 18:01, 2 March 2025 (UTC)
Subsequent fix
editUnfortunately, there's something unresolved. In case 4 and case 8, the thumbimage class should be dropped if |border=no is used, but I felt no idea to do that, who can write Lua code for fix? -- Great Brightstar (talk) 07:29, 3 March 2025 (UTC)
- @Great Brightstar Does the current implementation at Module:Wide image/sandbox/2 satisfy the constraints ? Sohom (talk) 14:14, 13 March 2025 (UTC)
- OK, thank you very much. -- Great Brightstar (talk) 17:07, 13 March 2025 (UTC)
Done Sohom (talk) 00:06, 14 March 2025 (UTC)
Use for templates
editDoes anyone have any idea how to use this template for wide templates? Specifically, I would like to use it for Template:Family tree. It can get rather wide and when it does, it contracts and becomes difficult to read. I am reluctant to expand the family tree at Baldwin III of Jerusalem#Childhood for this reason. Surtsicna (talk) 23:26, 7 August 2025 (UTC)
Dir= parameter request
editIs it possible to add center as an option for dir? Currently, left or right are the only values available. There are situations when it would be ideal if the centre of the image was the initial visible portion. Firebrace (talk) 11:41, 25 January 2026 (UTC)
Criteria for a "wide image"
edit
What dimensions make a "wide image"? At St. John's, Newfoundland and Labrador, User:CyberDetroit and myself have disputed whether this image, with 2.2 x 1 dimensions, is a wide image. Can we agree on what a wide image is? Magnolia677 (talk) 11:07, 8 April 2026 (UTC)
- From Help:Pictures:
Short, wide images sometimes benefit from upright factors greater than 1.0. Factors greater than about 2.5 can generate large images that cause problems with some browsers
...Images wider than 550px or so are often better treated as a panorama, which can be created with the {{Wide image}} template
. My understanding is that the purpose of this template is to allow for scroll bars to appear for those users/browsers for which the image is too large to display as a whole; I don't know if there is any width-to-height threshold. Wh1pla5h99 (talk) 11:42, 8 April 2026 (UTC)- I was going to say 2.5 upright and 550px seems to go against MOS:IMAGESZ, but Help:Pictures looks to be dealing with centred images which is a different situation. As with a lot of documentation it's also out of date, 2.5 would be 625px not 550px due to the default thumb size changing from 220px to 250px in April 2025. -- LCU ActivelyDisinterested «@» °∆t° 16:41, 8 April 2026 (UTC)
- So we should centre images larger than 1.6 (400px) and use Wide image for images larger than 2.2 (550px) Wh1pla5h99 (talk) 17:14, 8 April 2026 (UTC)
- I was going to say 2.5 upright and 550px seems to go against MOS:IMAGESZ, but Help:Pictures looks to be dealing with centred images which is a different situation. As with a lot of documentation it's also out of date, 2.5 would be 625px not 550px due to the default thumb size changing from 220px to 250px in April 2025. -- LCU ActivelyDisinterested «@» °∆t° 16:41, 8 April 2026 (UTC)