Template:Image frame: Difference between revisions

{{{align|right}}} means that the default is usually "right"... if the user specifies something else (eg. align=banana), then it should fall back to the same default
(add a default for tnone if none of 'left', 'right', and 'center' are given for {{{align}}})
({{{align|right}}} means that the default is usually "right"... if the user specifies something else (eg. align=banana), then it should fall back to the same default)
Line 1:
<includeonly>{{#ifeq: {{{align|right}}} | center | <div class="center"> |
}}<div class="thumb {{#switch: {{{align|right}}} | right=tright | left=tleft | center=tnone | tnonetright}}"><div class="thumbinner" style="width:{{#expr:{{{width}}}+2}}px;"><div class="thumbimage" style="width:{{{width}}}px;">{{{content}}}</div>
<div class="thumbcaption">{{#if: {{{link|}}} | <div class="magnify" style="float:right">{{{linkoverride|[[{{{link}}}|info]]}}}</div> |}}{{{caption|}}}</div></div></div>{{#ifeq: {{{align|right}}} | center | </div> | }}</includeonly><noinclude>
This template creates a frame like those surrounding images. This template can be used to put two or more images into a frame together, or as a wrapper for more complicated templates like {{tl|superimpose}}. Sample code for using this template is presented below.
Anonymous user