Difference between revisions of "Template:Double image"
Jump to navigation
Jump to search
Template documentation[create]
imported>Plastikspork (Add safesubst:) |
imported>Doc James (Reverted to revision 582100012 by Plastikspork (talk): Changes seem to have broken it. (TW)) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{ | + | <includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> |
| − | | | + | | left = <div class="thumb tleft"> |
| − | + | | right = <div class="thumb tright"> | |
| − | + | | center|centre = <div class="center"><div class="thumb tnone"> | |
| + | | #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> | ||
}} | }} | ||
| − | | | + | |} |
| − | + | </div> | |
| − | + | {{#switch: {{{1|}}} <!-- as central image float needs two divs, need to close two for center and only one for left/right --> | |
| − | + | | center|centre = </div></div> | |
| − | + | | </div> | |
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
}}</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:52, 27 November 2013
| This template is currently being merged with Template:multiple image. This template is being merged with another template, according to the specific instructions at Wikipedia:Templates for discussion/Holding cell, after which it will be redirected or deleted. The decision to merge this template was made following [[Wikipedia:Templates for discussion/Log/2013 November 7#Template:Double image|this discussion initiated on Template:YMD to ISO]] at Templates for discussion. Note: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any type of merging. |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |