Difference between revisions of "Template:Double image"

From Yugipedia
Jump to: navigation, search
(Created page with "<noinclude>{{Wikipedia}} </noinclude><includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> | left = <div class="thumb t...")
 
(newest version from WP; deprecate)
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{Wikipedia}}
+
<noinclude>{{Deprecated|Template:Multiple image}}
</noinclude><includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float -->
+
</noinclude><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>{{documentation}}</noinclude>
 
}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 18:06, 22 July 2018