Template:ImageCaption: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "{{{class(\d)\|}}}]]" to "{{{class$1|{{{class|}}}}}}]]")
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div class="thumb {{#switch: {{{align}}}|right = tright|left = tleft|center = center }}">
<includeonly><div class="ImageCaption thumb t{{{align|right}}}" style="{{#if:{{{size|}}}|width:{{{size|}}}}}"><div class="thumbinner">[[{{{1|{{{image1}}}}}}|{{{width1|{{{width|90x90px}}}}}}|class={{{class1|{{{class|}}}}}}]][[{{{2|{{{image2}}}}}}|{{{width2|{{{width|90x90px}}}}}}|class={{{class2|{{{class|}}}}}}]]{{#if:{{{3|}}}|[[{{{3|{{{image3}}}}}}|{{{width3|{{{width|90x90px}}}}}}|class={{{class3|{{{class|}}}}}}]]}}<br clear="all"/><div class="thumbcaption"><div style="float:right">[[File:Magnify-clip.png|link={{{1|{{{image1}}}}}}]][[File:Magnify-clip.png|link={{{2|{{{image2}}}}}}]]{{#if:{{{3|}}}|[[File:Magnify-clip.png|link={{{3|{{{image3}}}}}}]]}}</div>{{{caption}}}</div></div></div></includeonly><noinclude>
<div class="thumbinner" style="background: none !important; border: none !important;width: {{{size|}}};">[[{{{image|}}}|{{{size|}}}]]
{{documentation}}[[Category:Templates]]</noinclude>
<div class="thumbcaption" style="margin-top: 2px; border: 1px solid; {{#switch: {{{captionalign }}}|right = text-align: right;|center = text-align: center; }}">{{{caption}}}</div></div></div></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 10:41, February 11, 2023

Usage

This template allows you to place up to three images within one thumbnail frame.

{{ImageCaption
|image1  = the first image
|image2  = the second image
|image3  = the third image (optional)
|width1  = the width of the first image (default 90px)
|width2  = the width of the second image (default 90px)
|width3  = the width of the third image (default 90px)
|width   = the width of every image (optional, default 90px)
|size    = the width of the frame
|align   = the alignment of the image (optional, default right)
|caption = the caption
}}

Example

Smash Wiki's Logo.Smashwiki logo80.png
Part of the MediaWiki software. For use in {{ImageCaption}}Part of the MediaWiki software. For use in {{ImageCaption}}
Caption.
{{ImageCaption
|image1 = File:Wiki.png
|image2 = File:Smashwiki logo80.png
|width1 = 100px
|width2 = 100px
|align  = right
|caption = Caption.
}}

Blank Code

{{ImageCaption
|image1  = 
|image2  = 
|width1  = 
|width2  = 
|align   = 
|caption = 
}}
(Transcluded documentation: view)