Template:Multiple image: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Edene
m includeonly; doc
meta>Edene
major update; parameter names; width; box_caption_position, box_caption_align, box_caption_background
Line 1: Line 1:
<includeonly><div class="thumb {{#switch: {{{1|}}} | left = tleft | center | centre = tnone | tright}}" style="width:{{#switch: {{{2|horizontal}}} | vertical = {{#expr: {{{5}}} + 12}} | horizontal = {{#if: {{{8|}}}  
<includeonly><div class="thumb {{#switch: {{{align|}}} | left = tleft | center | centre = tnone | tright}}" style="width:{{#ifeq: {{{direction|horizontal}}} | vertical | {{#expr: {{{width1}}} + 12}} | {{#if: {{{width2|}}} | {{#expr: 16 + {{{width1}}} + {{{width2}}} + {{{width3|0}}} + {{{width4|0}}} + {{{width5|0}}} + {{#if: {{{image5|}}} | 12 | {{#if: {{{image4|}}} | 8 | {{#if: {{{image3|}}} | 4 | 0 }} }} }} }}
| {{#expr: 16 + {{{5}}} + {{{8}}} + {{{11|0}}} + {{{14|0}}} + {{{17|0}}} + {{#if: {{{16|}}} | 12 | {{#if: {{{13|}}} | 8 | {{#if: {{{10|}}} | 4 | 0 }} }} }} }}
| {{#expr: 8 + ({{{width|0}}} + 4) * {{#if: {{{image5|}}} | 5 | {{#if: {{{image4|}}} | 4 | {{#if: {{{image3|}}} | 3 | 2 }} }} }} }} }} }}px;{{#switch: {{{align|}}} | center | centre = margin: 0 auto;}}">
| {{#expr: 8 + ({{{5|0}}} + 4) * {{#if: {{{16|}}} | 5 | {{#if: {{{13|}}} | 4 | {{#if: {{{10|}}} | 3 | 2 }} }} }} }} }} }}px;{{#switch: {{{1|}}} | center | centre = margin: 0 auto;}}">
<div class="thumbinner">
<div class="thumbinner">
<div style="{{#switch: {{{2|horizontal}}} | horizontal = float:left; | }}margin:1px;width:{{#expr: 2 + {{{5|0}}}}}px;"><div class="thumbimage">[[Image:{{{4}}}|{{{5}}}px|{{#if: {{{6|}}} | {{{6}}} | {{{3}}}}}]]</div>{{#if: {{{6|}}} | <div class="thumbcaption" style="clear:left;">{{{6}}}</div>}}</div>
{{#ifeq: {{{box_caption_position|below}}} | above | {{#if: {{{box_caption|}}} | <div class="thumbcaption" style="clear:left;text-align:{{{box_caption_align|center}}};background:{{{box_caption_background|transparent}}};">{{{box_caption}}}</div> }} }}
<div style="{{#switch: {{{2|horizontal}}} | horizontal = float:left; | }}margin:1px;width:{{#expr: 2 + {{#if: {{{8|}}} | {{{8}}} | {{{5|0}}} }} }}px;"><div class="thumbimage">[[Image:{{{7}}}|{{#if: {{{8|}}} | {{{8}}} | {{{5}}}}}px|{{#if: {{{9|}}} | {{{9}}} | {{{3}}}}}]]</div>{{#if: {{{9|}}} | <div class="thumbcaption" style="clear:left;">{{{9}}}</div>}}</div>
<div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{{width1|{{{width|0}}}}}} }}px;"><div class="thumbimage">[[Image:{{{image1}}}|{{{width1|{{{width|0}}}}}}px|{{{caption1|{{{box_caption}}}}}}]]</div>{{#if: {{{caption1|}}} | <div class="thumbcaption" style="clear:left;">{{{caption1}}}</div>}}</div>
{{#if: {{{10|}}} | <div style="{{#switch: {{{2|horizontal}}} | horizontal = float:left; | }}margin:1px;width:{{#expr: 2 + {{#if: {{{11|}}} | {{{11}}} | {{{5}}}}}}}px;"><div class="thumbimage">[[Image:{{{10}}}|{{#if: {{{11|}}} | {{{11}}} | {{{5}}}}}px|{{#if: {{{12|}}} | {{{12}}} | {{{3}}}}}]]</div>{{#if: {{{12|}}} | <div class="thumbcaption" style="clear:left;">{{{12}}}</div>}}</div>
<div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{{width2|{{{width|0}}}}}} }}px;"><div class="thumbimage">[[Image:{{{image2}}}|{{{width2|{{{width|0}}}}}}px|{{{caption2|{{{box_caption}}}}}}]]</div>{{#if: {{{caption2|}}} | <div class="thumbcaption" style="clear:left;">{{{caption2}}}</div>}}</div>
{{#if: {{{13|}}} | <div style="{{#switch: {{{2|horizontal}}} | horizontal = float:left; | }}margin:1px;width:{{#expr: 2 + {{#if: {{{14|}}} | {{{14}}} | {{{5}}}}}}}px;"><div class="thumbimage">[[Image:{{{13}}}|{{#if: {{{14|}}} | {{{14}}} | {{{5}}}}}px|{{#if: {{{15|}}} | {{{15}}} | {{{3}}}}}]]</div>{{#if: {{{15|}}} | <div class="thumbcaption" style="clear:left;">{{{15}}}</div>}}</div>
{{#if: {{{image3|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{{width3|{{{width}}}}}} }}px;"><div class="thumbimage">[[Image:{{{image3}}}|{{{width3|{{{width}}}}}}px|{{{caption3|{{{box_caption}}}}}}]]</div>{{#if: {{{caption3|}}} | <div class="thumbcaption" style="clear:left;">{{{caption3}}}</div>}}</div>
{{#if: {{{16|}}} | <div style="{{#switch: {{{2|horizontal}}} | horizontal = float:left; | }}margin:1px;width:{{#expr: 2 + {{#if: {{{17|}}} | {{{17}}} | {{{5}}}}}}}px;"><div class="thumbimage">[[Image:{{{16}}}|{{#if: {{{17|}}} | {{{17}}} | {{{5}}}}}px|{{#if: {{{18|}}} | {{{18}}} | {{{3}}}}}]]</div>{{#if: {{{18|}}} | <div class="thumbcaption" style="clear:left;">{{{18}}}</div>}}</div>}}}}}}
{{#if: {{{image4|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{{width4|{{{width}}}}}} }}px;"><div class="thumbimage">[[Image:{{{image4}}}|{{{width4|{{{width}}}}}}px|{{{caption4|{{{box_caption}}}}}}]]</div>{{#if: {{{caption4|}}} | <div class="thumbcaption" style="clear:left;">{{{caption4}}}</div>}}</div>
{{#if: {{{3|}}} | <div class="thumbcaption" style="clear:left;">{{{3}}}</div> }}</div></div></includeonly><noinclude>
{{#if: {{{image5|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{{width5|{{{width}}}}}} }}px;"><div class="thumbimage">[[Image:{{{image5}}}|{{{width5|{{{width}}}}}}px|{{{caption5|{{{box_caption}}}}}}]]</div>{{#if: {{{caption5|}}} | <div class="thumbcaption" style="clear:left;">{{{caption5}}}</div>}}</div>}}}}}}
{{#ifeq: {{{box_caption_position|below}}} | below | {{#if: {{{box_caption|}}} | <div class="thumbcaption" style="clear:left;text-align:{{{box_caption_align|center}}};background:{{{box_caption_background|transparent}}};">{{{box_caption}}}</div> }} }}</div></div></includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Revision as of 13:52, 14 April 2008