Template: Multiple image
{{#if:|<div class="thumb {{#switch: | left = tleft|none | center|centre = tnone | right|#default = tright}}" style="width: {{#switch: | vertical = {{#expr:
{{#if: | {{{width}}} | Template:Max/12 }} + 12 }}
| horizontal | #default = {{#if:
|{{#expr: ({{{width}}}+4) * {{#if:|<div class="thumb {{#switch: | left = tleft|none | center|centre = tnone | right|#default = tright}}" style="width: {{#switch:
| vertical = {{#expr:
{{#if: | {{{width}}} | Template:Max/12 }} + 12 }}
| horizontal | #default = {{#if:
|{{#expr: ({{{width}}}+4) * Template loop detected: Template:Multiple image/numImgs + 9 }} |{{#expr: {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}} + 4 * (Template loop detected: Template:Multiple image/numImgs - 2) + 17 }} }}
}}px; {{#switch: | center | centre = margin: 0 auto;}}{{#if:|background-color: {{{background color}}} }}">
{{#if:|
{{{header}}}
}}{{#if:|
{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}
+ 9 }} |{{#expr: {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}} + 4 * ({{#if:|<div class="thumb {{#switch: | left = tleft|none | center|centre = tnone | right|#default = tright}}" style="width: {{#switch:
| vertical = {{#expr:
{{#if: | {{{width}}} | Template:Max/12 }} + 12 }}
| horizontal | #default = {{#if:
|{{#expr: ({{{width}}}+4) * Template loop detected: Template:Multiple image/numImgs + 9 }} |{{#expr: {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}}+ {{#if: |200}} + 4 * (Template loop detected: Template:Multiple image/numImgs - 2) + 17 }} }}
}}px; {{#switch: | center | centre = margin: 0 auto;}}{{#if:|background-color: {{{background color}}} }}">
{{#if:|
{{{header}}}
}}{{#if:|
{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}} - 2)
+ 17 }} }}
}}px; {{#switch: | center | centre = margin: 0 auto;}}{{#if:|background-color: {{{background color}}} }}">
{{#if:|
{{{header}}}
}}{{#if:|
{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}
}}{{#if:|
}}