Template:Multiple image: Difference between revisions
From Vigyanwiki
(change to use the smaller max/12) |
(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 + | 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 + | 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 15:41, 21 October 2011
Lua error in Module:TNT at line 182: Missing Commons dataset I18n/Module:TNT.tab.