Template:Image frame: Difference between revisions

extra colon to actually allow linking of images
(making width default to 200px broke pages that deliberately didn't specify a width in order to make the frame scale according to its content; fixing with parserfunctions)
(extra colon to actually allow linking of images)
Line 3:
tright}}"><div class="thumbinner" style="{{#if:{{{width|}}}|width:{{#expr:{{{width}}}+2}}px;}}">
{{#ifeq: {{{pos|bottom}}} | bottom |<div class="thumbimage" style="{{#if:{{{width|}}}|width:{{{width}}}px;}}">{{{content}}}</div>|}}
<div class="thumbcaption">{{#if: {{{link|}}} | <div class="magnify" style="float:right">{{{linkoverride|[[:{{{link}}}|info]]}}}</div> |}}
{{{caption|}}}</div>
{{#ifeq: {{{pos|bottom}}} | top | <div class="thumbimage" style="{{#if:{{{width|}}}|width:{{{width}}}px;}}">{{{content}}}</div> |}}</div></div>
Anonymous user