Template:Multiple image: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Thumperward
(try to fix caption width again)
meta>Thumperward
(fix width parsing)
Line 1: Line 1:
<div class="thumb {{#switch: {{{align|}}} | left = tleft | center | centre = tnone | tright}}" style="width: {{#switch:{{{direction|}}}
<div class="thumb {{#switch: {{{align|}}} | left = tleft | center | centre = tnone | tright}}" style="width: {{#switch:{{{direction|}}}
| vertical  = {{#expr:{{#if:{{{width|}}}|{{{width}}}|{{max|{{{width1|}}}|{{max|{{max|{{{width2|}}}|{{{width3|}}}|{{{width4|}}}}}|{{max|{{{width5|}}}|{{{width6|}}}|{{{width7|}}}}}|{{max|{{{width8|}}}|{{{width9|}}}|{{{width10|}}}}}}}}}+12}}
| vertical  = {{#expr:{{#if:{{{width|}}}|{{{width}}}|{{max|{{{width1|}}}|{{max|{{max|{{{width2|}}}|{{{width3|}}}|{{{width4|}}}}}|{{max|{{{width5|}}}|{{{width6|}}}|{{{width7|}}}}}|{{max|{{{width8|}}}|{{{width9|}}}|{{{width10|}}}}}}}}}+12}}}}
| horizontal  
| horizontal
|           = {{#if:{{{width|}}}|{{#expr:({{{width|0}}}+4)*{{#if:{{{image10|}}}|10|{{#if:{{{image9|}}}|9|{{#if:{{{image8|}}}|8|{{#if:{{{image7|}}}|7|{{#if:{{{image6|}}}|6|{{#if:{{{image5|}}}|5|{{#if:{{{image4|}}}|4|{{#if:{{{image3|}}}|3|2}}}}}}}}}}}}}}}}+8}}|{{#expr:16+{{{width1|0}}}+{{{width2|0}}}+{{{width3|0}}}+{{{width4|0}}}+{{{width5|0}}}+{{{width6|0}}}+{{{width7|0}}}+{{{width8|0}}}+{{{width9|0}}}+{{{width10|0}}}+{{#if:{{{image10|}}}|32|{{#if:{{{image9|}}}|28|{{#if:{{{image8|}}}|24|{{#if:{{{image7|}}}|20|{{#if:{{{image6|}}}|16|{{#if:{{{image5|}}}|12|{{#if:{{{image4|}}}|8|{{#if:{{{image3|}}}|4|0}}}}}}}}}}}}}}}}}}}}
| #default  = {{#if:{{{width|}}}|{{#expr:({{{width|0}}}+4)*{{#if:{{{image10|}}}|10|{{#if:{{{image9|}}}|9|{{#if:{{{image8|}}}|8|{{#if:{{{image7|}}}|7|{{#if:{{{image6|}}}|6|{{#if:{{{image5|}}}|5|{{#if:{{{image4|}}}|4|{{#if:{{{image3|}}}|3|2}}}}}}}}}}}}}}}}+8}}|{{#expr:16+{{{width1|0}}}+{{{width2|0}}}+{{{width3|0}}}+{{{width4|0}}}+{{{width5|0}}}+{{{width6|0}}}+{{{width7|0}}}+{{{width8|0}}}+{{{width9|0}}}+{{{width10|0}}}+{{#if:{{{image10|}}}|32|{{#if:{{{image9|}}}|28|{{#if:{{{image8|}}}|24|{{#if:{{{image7|}}}|20|{{#if:{{{image6|}}}|16|{{#if:{{{image5|}}}|12|{{#if:{{{image4|}}}|8|{{#if:{{{image3|}}}|4|0}}}}}}}}}}}}}}}}}}}}}}px; {{#switch: {{{align|}}} | center | centre = margin: 0 auto;}}{{#if:{{{background color|}}}|background-color: {{{background color}}} }}">
}}px; {{#switch: {{{align|}}} | center | centre = margin: 0 auto;}}{{#if:{{{background color|}}}|background-color: {{{background color}}} }}">
<div class="thumbinner" {{#if:{{{background color|}}}|style="background-color: {{{background color}}}"}}>
<div class="thumbinner" {{#if:{{{background color|}}}|style="background-color: {{{background color}}}"}}>
{{#if:{{{header|}}}|
{{#if:{{{header|}}}|
Line 91: Line 90:
</div>
</div>
}}{{#if:{{{footer|}}}|
}}{{#if:{{{footer|}}}|
<div class="thumbcaption" style="width: auto; clear: left; text-align: {{{footer_align|left}}}; background: {{{footer_background|transparent}}}">{{{footer}}}
<div class="thumbcaption" style="clear: left; text-align: {{{footer_align|left}}}; background: {{{footer_background|transparent}}}">{{{footer}}}
</div>
</div>
}}
}}
</div>
</div>
</div><noinclude>{{doc}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>
</div><noinclude>{{doc}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>

Revision as of 17:41, 14 June 2010