Template talk:Photo montage

From WikiProjectMed
Jump to navigation Jump to search

Error

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

[[File: 

|250px|none|alt=|]]

An example is in this article: Monterrey

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

Image cropping

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.

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

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)[reply]
Can we get this integrated into the template at some point? Making montages locally and uploading them is the hack of all hacks, and makes it needlessly difficult for others to edit the montage. Requiring non-ancient browser versions seems reasonable in comparison. --2A00:1398:300:303:0:0:0:1101 (talk) 16:59, 2 November 2020 (UTC)[reply]

Failed layout

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)[reply]

Seconded. This template has got display errors on mobile view. - X201 (talk) 14:37, 30 October 2017 (UTC)[reply]
This is an infobox
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)[reply]
@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)[reply]
@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)[reply]
@Frietjes: Yep, seems to work now. Thanks! Hairy Dude (talk) 17:37, 17 April 2018 (UTC)[reply]

@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)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]
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)[reply]

Requested move 22 April 2019

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)[reply]



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


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

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)[reply]

Is this template redundant?

Is there a reason this needs to be separate from {{multiple image}}, or should they be merged for consolidation? {{u|Sdkb}}talk 07:42, 24 July 2020 (UTC)[reply]

@Sdkb: I see no reason at all, in fact, it's not that reliable. 1989 (talk) 01:04, 10 September 2020 (UTC)[reply]
I disagree. It seems that {{Photo montage}} allows one to vary the number of images per row, (i.e. a single image in the first row, two in the second, three in the third, one in the fourth), which is important for creating the photo montage for city skylines in infoboxes, which may be its main application. I am not seeing how to do that with {{multiple image}}. Morgan Riley (talk) 20:02, 19 September 2020 (UTC)[reply]
Morgan Riley, the |perrow= parameter at {{Multiple image}} allows that, e.g. |perrow=1/2/2/1 for two images on the second and third rows and single image on the top/bottom. {{u|Sdkb}}talk 07:04, 20 September 2020 (UTC)[reply]
@1989 and Morgan Riley: Unlike this template, {{Multiple image}} doesn't arrange the images in a table with consistent widths. Jarble (talk) 15:35, 10 April 2024 (UTC)[reply]

White spaces when heights differ

Right now this template produces white space gaps when photos on the same line are of slightly unequal height, as e.g. here. I think it'd be better to adjust the center line when that happens so that the gaps are removed, similar to how {{Multiple image}} generally works (btw, I see no one has replied above...). Would that be possible/desirable? I think removing the gaps is more important than having a perfect line down the center. {{u|Sdkb}}talk 08:12, 26 August 2020 (UTC)[reply]

Agreed. I am noticing the same problem. But I have no idea how to implement this.Morgan Riley (talk) 19:57, 19 September 2020 (UTC)[reply]
@Frietjes: Is it possible to remove the white spaces here? Jarble (talk) 16:31, 9 April 2024 (UTC)[reply]
{{photo montage}} uses "div" with a "table" layout while {{multiple image}} does not enforce a table layout which is why the images are grid aligned with {{photo montage}}. we could change it, but then is it too similar to {{multiple image}}? Frietjes (talk) 20:07, 9 April 2024 (UTC)[reply]
@Frietjes: Alternatively, could the images be cropped in order to adjust their heights? Jarble (talk) 15:17, 10 April 2024 (UTC)[reply]