Template talk:Multiple image
From Wikipedia, the free encyclopedia
[edit] Template not working
The box width parameter (It neither controls the width of the borders nor works as a global image width command) is not working:
You may need separate parameters for these issues.--TonyTheTiger (t/c/bio/WP:CHICAGO/WP:LOTD) 14:20, 15 April 2008 (UTC)
- width is not for the width of the box, but for the images. If you omit width1, width2, etc, width will be used. Since you have provided width1 = 180, the box will be sized according to that. Is there any reason you want to have a different width for the box? eDenE 14:32, 15 April 2008 (UTC)
-
- If I omit the 180s, the box does not work in vertical alignment.--TonyTheTiger (t/c/bio/WP:CHICAGO/WP:LOTD) 21:01, 15 April 2008 (UTC)
-
- In fact the following code does not work either: {{multiple image | align = right | direction = horizontal | header = [[USS Buffalo (SSN-715)]] Commissioning | header_align = | header_background = | footer = ([[1980-10-25]]) | footer_align = right | width = 250 | image1 = 0871516.jpg | width1 = | caption1 = Jack, Joanne and Judith Kemp | image2 = Kemp USS Buffalo .jpg | width2 = | caption2 = Kemp and Naval Officers }}
-
-
- Ahh... you actually need to remove the entire line. Sorry for the lack of clarification as well as non-intuitive template usage. My question is, what is the expected result for you, if both width and width1 are given? I'll update as soon as possible based on your preference. eDenE 21:12, 15 April 2008 (UTC)
-
I don't know general programming conventions about whether global parameters override local ones or vice versa. However, I would think it would be easier to work if the global command controlled.--TonyTheTiger (t/c/bio/WP:CHICAGO/WP:LOTD) 22:08, 16 April 2008 (UTC)
- Usually local ones would override global variables, but Wiki's not for programmer ;) I updated so that width will overrides the others. Also not removing width= will not produce any error. eDenE 23:03, 16 April 2008 (UTC)
[edit] Alginment
I would like to post my request here for anyone who may see this template. It would be helpful if the global image size controlled width in vertical alignment and height in horizontal alignment. Is this possible?--TonyTheTiger (t/c/bio/WP:CHICAGO/WP:LOTD) 14:25, 15 April 2008 (UTC)
- {{Panorama simple}} does that— you have to enter the height and width of the original image and the height of the desired image:
- {{#expr: {{{fullwidth|1}}} * {{{height|{{{fullheight|1}}}}}} / {{{fullheight|1}}} round 0}}px
- --— Gadget850 (Ed) talk - 13:27, 17 April 2008 (UTC)