Template:ImageCaption: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Simple fix for an ugly issue)
No edit summary
Line 1: Line 1:
<includeonly><div class="ImageCaption thumb t{{{align|right}}}" style="{{#if:{{{size|}}}|width:{{{size|}}};}}"><div class="thumbinner">[[{{{1|{{{image1}}}}}}|{{{width1|{{{width|90x90px}}}}}}]][[{{{2|{{{image2}}}}}}|{{{width2|{{{width|90x90px}}}}}}]]{{#if:{{{3|}}}|[[{{{3|{{{image3}}}}}}|{{{width3|{{{width|90x90px}}}}}}]]}}<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>
<includeonly><div class="ImageCaption thumb t{{{align|right}}}" style="{{#if:{{{size|}}}|width:{{{size|}}}}}"><div class="thumbinner">[[{{{1|{{{image1}}}}}}|{{{width1|{{{width|90x90px}}}}}}|class={{{class1|}}}]][[{{{2|{{{image2}}}}}}|{{{width2|{{{width|90x90px}}}}}}|class={{{class2|}}}]]{{#if:{{{3|}}}|[[{{{3|{{{image3}}}}}}|{{{width3|{{{width|90x90px}}}}}}|class={{{class3|}}}]]}}<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>
{{documentation}}[[Category:Templates]]</noinclude>
{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 02:56, 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)