Template:Image frame: Difference between revisions

+linkoverride param
(PNG instead of JPG to remove from backlog of Image:Example.jpg)
(+linkoverride param)
Line 1:
<includeonly>{{#ifeq: {{{align|right}}} | center | <div class="center"> |
}}<div class="thumb {{#switch: {{{align|right}}} | right=tright | left=tleft | center=tnone }}"><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.
<pre width=100%>
Line 15:
*'''caption''': content of the caption section
*'''link''': link for the "Enlarge" link in the caption (in the future, may also be used as the link for the image field inside the frame, though it would probably require an additional ''height'' parameter)
*'''linkoverride''': allows anything to be used instead of the 'info' link
*'''align''': Valid values: right ''(default)'', left, center.
 
Anonymous user