Difference between revisions of "Template:Double image"

From blackwiki
Jump to navigation Jump to search
imported>Likemind77
imported>Prodego
m (Reverted edits by Likemind77 (talk) to last version by Ctjf83)
Line 1: Line 1:
<center>
+
<includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float -->
<big><b>Mėepsheep has done this</b></big><br/>
+
| left = <div class="thumb tleft">
[[File:Cul.jpg|700px|link=http://meep.wikipaste.eu]]<br/>
+
| right = <div class="thumb tright">
<b><big>J<br/>
+
| center|centre = <div class="center"><div class="thumb tnone">
E<br/>
+
| #default = <div class="thumb tright">
W<br/>
+
}}<div class="thumbinner" style="width:{{#expr: {{{3|0}}} + {{{5|0}}} + 8}}px;">   <!-- calculate width based on image widths +8px -->
S<br/><br/>
+
{| style="background: transparent; border: 0; padding: 0; margin: 0; width:{{#expr: {{{3|0}}} + {{{5|0}}} + 4}}px;" cellspacing="0"
D<br/>
+
|- style="vertical-align:{{{valign|middle}}};"
I<br/>
+
| style="padding: auto; margin: 0;" class="thumbimage" | [[Image:{{{2}}}|{{{3}}}px|alt={{{8|}}}|{{{6|}}}]]  <!-- image 1 -->
D<br/><br/>
+
| style="padding: 0; margin: 0; border: 0; width: 2px" |
W<br/>
+
| style="padding: auto; margin: 0;" class="thumbimage" | [[Image:{{{4}}}|{{{5}}}px|alt={{{9|}}}|{{#if: {{{7|}}}|{{{7|}}}|{{{6|}}}}}]]  <!-- image 2 -->
T<br/>
+
|- style="vertical-align:top;"
C<br/><br/>
+
{{#if: {{{7|}}} |    <!-- two captions if the seventh param (caption for title two) is specified -->
J<br/>
+
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="thumbcaption">{{{6|}}}</div>
E<br/>
+
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}}
W<br/>
+
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="thumbcaption">{{{7|}}}</div>
S<br/><br/>
+
<!-- otherwise just have one caption underneath both images -->
D<br/>
+
{{!}} style="padding: 0; margin: 0; border: 0;" colspan="3" {{!}} <div class="thumbcaption">{{{6|}}}</div>
I<br/>
+
}}
D<br/><br/>
+
|}
W<br/>
+
</div>
T<br/>
+
{{#switch: {{{1|}}}  <!-- as central image float needs two divs, need to close two for center and only one for left/right -->
C<br/><br/>
+
| center|centre = </div></div>
J<br/>
+
| </div>
E<br/>
+
}}</includeonly><noinclude>{{documentation}}</noinclude>
W<br/>
 
S<br/><br/>
 
D<br/>
 
I<br/>
 
D<br/><br/>
 
W<br/>
 
T<br/>
 
C<br/><br/>
 
</big></b>
 
[[File:Animated-Flag-Georgia.gif|100000px|link=http://meep.wikipaste.eu]]
 
[[File:Animated-Flag-Georgia.gif|100000px|link=http://meep.wikipaste.eu]]
 
<div style="font-size:9999999999999999pt;color:pink;background-color:green">
 

Revision as of 15:59, 21 May 2011

Template documentation[create]