73,385
edits
m (move "position: relative; z-index: 100; ") |
(replace template with exact copy of Wikipedia version) |
||
Line 1: | Line 1: | ||
{{#if:{{{image1|}}}{{{image2|}}}{{{image3|}}}{{{image4|}}}{{{image5|}}}{{{image6|}}}{{{image7|}}}{{{image8|}}}{{{image9|}}}{{{image10|}}}|<div class="thumb {{#switch: {{{align|}}} | left = tleft | center|centre = tnone | right|#default = tright}}" style=" | {{#if:{{{image1|}}}{{{image2|}}}{{{image3|}}}{{{image4|}}}{{{image5|}}}{{{image6|}}}{{{image7|}}}{{{image8|}}}{{{image9|}}}{{{image10|}}}|<div class="thumb {{#switch: {{{align|}}} | left = tleft|none | center|centre = tnone | right|#default = tright}}" style="width: {{#switch:{{{direction|}}}<!-- | ||
If stacked vertically, box width = largest width + 12 px (6 px margin on left and right) --> | If stacked vertically, box width = largest width + 12 px (6 px margin on left and right) --> | ||
| vertical = {{#expr: | | vertical = {{#expr: | ||
{{#if:{{{width|}}} | {{#if:{{{width|}}} | ||
| {{{width}}} | | {{{width}}} | ||
| {{Max/ | | {{Max/12 | {{{width1|200}}} | {{{width2|}}} | {{{width3|}}} | {{{width4|}}} | {{{width5|}}} | {{{width6|}}} | {{{width7|}}} | {{{width8|}}} | {{{width9|}}} | {{{width10|}}} | 0 }} | ||
}} | }} | ||
+ 12 | + 12 | ||
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}}}}}+ | ||
Line 131: | Line 131: | ||
</div> | </div> | ||
</div> | </div> | ||
}}<noinclude>{{ | }}<noinclude>{{doc}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude> |
edits