Difference between revisions of "Template:Double image"

From blackwiki
Jump to navigation Jump to search
imported>Doc James
(Reverted to revision 582100012 by Plastikspork (talk): Changes seem to have broken it. (TW))
imported>Doc James
(Reverted to revision 582990781 by Plastikspork (talk): Hum don't know. (TW))
Line 1: Line 1:
<includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float -->
+
<includeonly>{{multiple image
| left = <div class="thumb tleft">
+
| align        = {{{{{|safesubst:}}}#switch: {{{1|}}}
| right = <div class="thumb tright">
+
  |left|right   = {{{1|}}}
| center|centre = <div class="center"><div class="thumb tnone">
+
  |center|centre = center
| #default = <div class="thumb tright">
 
}}<div class="thumbinner" style="width:{{#expr: {{{3|0}}} + {{{5|0}}} + 8}}px;">  <!-- calculate width based on image widths +8px -->
 
{| style="background: transparent; border: 0; padding: 0; margin: 0; width:{{#expr: {{{3|0}}} + {{{5|0}}} + 4}}px;" cellspacing="0"
 
|- style="vertical-align:{{{valign|middle}}};"
 
| style="padding: auto; margin: 0;" class="thumbimage" | [[Image:{{{2}}}|{{{3}}}px|alt={{{8|}}}]]  <!-- image 1 -->
 
| style="padding: 0; margin: 0; border: 0; width: 2px" |
 
| style="padding: auto; margin: 0;" class="thumbimage" | [[Image:{{{4}}}|{{{5}}}px|alt={{{9|}}}]]  <!-- image 2 -->
 
|- style="vertical-align:top;"
 
{{#if: {{{7|}}} |    <!-- two captions if the seventh param (caption for title two) is specified -->
 
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="thumbcaption">{{{6|}}}</div>
 
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}}
 
{{!}} style="padding: 0; margin: 0; border: 0;" {{!}} <div class="thumbcaption">{{{7|}}}</div>
 
|   <!-- otherwise just have one caption underneath both images -->
 
{{!}} style="padding: 0; margin: 0; border: 0;" colspan="3" {{!}} <div class="thumbcaption">{{{6|}}}</div>
 
 
}}
 
}}
|}
+
| direction    = horizontal
</div>
+
| image1      = {{{2}}}
{{#switch: {{{1|}}}   <!-- as central image float needs two divs, need to close two for center and only one for left/right -->
+
| width1      = {{{3|0}}}
| center|centre = </div></div>
+
| alt1        = {{{8|}}}
| </div>
+
| caption1    = {{{{{|safesubst:}}}#if: {{{7|}}} | {{{6|}}} }}
 +
| image2      = {{{4}}}
 +
| width2      = {{{5|0}}}
 +
| alt2        = {{{9|}}}
 +
| caption2    = {{{7|}}}
 +
| footer      = {{{{{|safesubst:}}}#if: {{{7|}}} || {{{6|}}} }}
 +
| footer_align = left
 +
| valign      = {{{valign|middle}}} <!-- style="vertical-align:{{{valign|middle}}};" -->
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{being deleted|2013 November 7|merge=Template:multiple image}}
 
{{being deleted|2013 November 7|merge=Template:multiple image}}
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 22:54, 27 November 2013

Template documentation[create]