Template:Multiple image: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
change to use the smaller max/12
meta>Waldyrious
minor tweaks to the comments
Line 10: Line 10:
| horizontal | #default  = {{#if:{{{width|}}}<!--
| horizontal | #default  = {{#if:{{{width|}}}<!--
   If stacked horizontally and a single common width was passed for use in all images,
   If stacked horizontally and a single common width was passed for use in all images,
   box width = (common width + 4px) * number of images + 8.
   box width = (common width + 4px) * number of images + 8px.
   This creates a 4px margin between the images, and a 6px margin on each side -->
   This creates a 4px margin between the images, and a 6px margin on each side -->
   |{{#expr:
   |{{#expr:
Line 20: Line 20:
       }}<!--
       }}<!--
   If stacked horizontally and a custom width was passed for each image,
   If stacked horizontally and a custom width was passed for each image,
   box width = sum of all widths + 4 pixels of margin between each pair of images + 16 pixels of margin (8 on each side of the box) (why not 6px as in other cases?...)-->
   box width = sum of all widths + 4px of margin between each pair of images + 16px of margin (8px on each side of the box) (why not 6px as in other cases?...) -->
   |{{#expr:
   |{{#expr:
       {{#if:{{{image1|}}} |{{{width1|200}}}}}+
       {{#if:{{{image1|}}} |{{{width1|200}}}}}+

Revision as of 10:11, 21 October 2011