Template talk:Photo montage

From Deep web, the free encyclopedia
  (Redirected from Module talk:Photo montage)
Jump to navigation Jump to search


Please fix this problem in photographic montages that make this display:



An example is in this article: Monterrey

--Smokejulia (talk) 21:47, 11 June 2013 (UTC)

Image cropping[edit]

I got a question about Template:Photomontage and Module:Photo montage: is it possible to make this Template automatically adjust the heigh of images by cropping the highest to the level of lowest one? I primaly use this template to make rich city-related collages. This template tries to render all images with equal width of all images in row. Sometimes aspect ratio of different images is not the same and as a Result I got an empty space around the lower image which makes the whole collage not so attractive as it could be.

Pont Triana.jpg

--Orange-kun (talk) 15:18, 12 March 2016 (UTC)

possible, see Template:CSS image crop, but better to just create a single montage image and upload it to wikicommons. that way you don't need to worry about browser compatibility. Frietjes (talk) 15:17, 9 April 2016 (UTC)

Failed layout[edit]

The layout doesn't always work properly on mobile. See for example the infobox at Edirne. Hairy Dude (talk) 01:19, 31 August 2017 (UTC)

Seconded. This template has got display errors on mobile view. - X201 (talk) 14:37, 30 October 2017 (UTC)
This is an infobox
Edirne mosque outside.jpg
Meriç Köprüsü ve Meriç Nehri.jpg
Nagymecset - Edirne, 2014.10.22 (6).JPG
Edirne mosque outside.jpg
Meriç Köprüsü ve Meriç Nehri.jpg
Nagymecset - Edirne, 2014.10.22 (6).JPG
It seems to only happen in infoboxes. I see all three images in both cases in desktop but in mobile I only see the third image when it's not in an infobox. PrimeHunter (talk) 20:39, 30 October 2017 (UTC)
@Hairy Dude, X201, and PrimeHunter: is this still an issue? I recently changed the backend rendering to use <div>...</div> instead of <table>...</table>, which appears to have fixed the centering bug. not sure if there are still other problems. Frietjes (talk) 19:02, 16 April 2018 (UTC)
@Frietjes: It works for me now. Previously File:Nagymecset - Edirne, 2014.10.22 (6).JPG was missing in mobile at https://en.m.wikipedia.org/wiki/Edirne and https://en.m.wikipedia.org/wiki/Template_talk:Photomontage#Failed_layout. PrimeHunter (talk) 19:11, 16 April 2018 (UTC)
@Frietjes: Yep, seems to work now. Thanks! Hairy Dude (talk) 17:37, 17 April 2018 (UTC)

@Frietjes: Have just accessed the Soho article on mobile, which has a photomontage template and no infobox in the lead, and the lead text is crushed to one side by it ("Soho is an / area of the / City of / ..."). This template should presumably be centred with no text wrap, the same way that regular images are, on mobile? --Lord Belbury (talk) 18:02, 31 October 2018 (UTC)

Lord Belbury, this template is not the best outside of a container. I have put it inside an {{image frame}} which should be better for mobile and have the correct margins. Frietjes (talk) 18:12, 31 October 2018 (UTC)
Thanks for fixing it in the Soho article. Is there no wider fix that can be made to this template to repair whatever other articles have used it outside of a container, though? --Lord Belbury (talk) 18:22, 31 October 2018 (UTC)
Lord Belbury, that's not clear. the problem is that this template was not designed to act like a "thumb" image, but more like a "frameless" image inside of an infobox. there is no easy way to detect if this template is being used inside or outside of an infobox. we could have a bot scan all the uses to find crap like pseudo-gallery in Astoria, Oregon and the pseudo thumbnail that you found in Soho, and fix those, but that wouldn't prevent people from doing it again. I just don't know of a fool-proof pattern for detecting when someone is trying to use this template to generate a "thumb" image. Frietjes (talk) 18:37, 31 October 2018 (UTC)
Thanks for clarifying. I don't know my way around templates - I guess there's no way for a template to tell whether it's inside another template or if it's being displayed at the "root" level of a page?
Either way, would be good to mention the intended usage (and problems of mis-usage) in this template's documentation. I'll see if I can put a proper infobox on the Soho page at some point. --Lord Belbury (talk) 19:52, 31 October 2018 (UTC)
Lord Belbury, the parent can see the children, but the children can not see the parent. so, an infobox could see if a photo montage is being passed in, but photo montage would have no idea that it is inside an infobox. there may be a smart way to handle the problem, but it would require a lot of work and testing. better is to just avoid using this outside of a parent infobox or sidebar or image frame container. I will take a pass at updating the documentation. Frietjes (talk) 22:04, 31 October 2018 (UTC)

Requested move 22 April 2019[edit]

The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this section.

The result of the move request was: Move to Template:Photo montage. (non-admin closure) --DannyS712 (talk) 04:11, 30 April 2019 (UTC)

Template:PhotomontageTemplate:Photo montage – Separate words, match name with module * Pppery * has returned 21:10, 22 April 2019 (UTC)

The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.

Text was too small[edit]

I have modified the font-size CSS in this module. The text was being rendered much too small for accessibility per MOS:FONTSIZE, especially when this template was used in {{sidebar}} (as illustrated in this template's documentation) and infoboxes. – Jonesey95 (talk) 15:40, 20 November 2019 (UTC)