Template:Image frame: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
en>Great Brightstar
(Don't add 2 pixels to the width if inner border is disabled.)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{align|right}}}|center|<div class="center">|}}<div class="thumb {{#switch: {{{align|right}}} | right=tright | left=tleft | center=tnone | none=tnone | tright}}"><div class="thumbinner noresize" style="{{#if:{{{width|}}}|width:{{#expr:{{{width}}}+2}}px;}}">{{#ifeq: {{{pos|bottom}}} | bottom |<div class="thumbimage" style="{{#if:{{{width|}}}|width:{{{width}}}px;}}{{{innerstyle|}}}">{{{content}}}</div>|}}<div class="thumbcaption">{{#if: {{{link|}}} | <div class="magnify" style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}]]}}}</div> |}}{{{caption|}}}</div>{{#ifeq: {{{pos|bottom}}} | top | <div class="thumbimage" style="{{#if:{{{width|}}}|width:{{{width}}}px;}}{{{innerstyle|}}}">{{{content}}}</div> |}}</div></div>{{#ifeq:{{{align|right}}}|center|</div>|}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#ifeq: {{{align|}}} | center | <div class="center"> }}<div class="thumb {{#switch: {{{align|}}} | right |#default=tright | left=tleft | center | none=tnone}}"><div class="thumbinner" style="width:{{#if:{{{width|}}}| {{#ifeq: {{{border|}}} | no | {{{width}}}px | {{#expr:{{{width}}}+2}}px}} | auto }}">{{#ifeq: {{{pos|}}} | top | <div class="thumbcaption">{{#if: {{{link|}}} | <div style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}]]}}}</div> |}}{{{caption|}}}</div> |}}<div class="{{#ifeq: {{{border|}}} | no | center | thumbimage }} noresize" style="width:{{#if:{{{width|}}}| {{{width}}}px | auto }};{{{innerstyle|}}}">{{{content}}}</div>{{#ifeq: {{{pos|}}} | top || <div class="thumbcaption">{{#if: {{{link|}}} | <div style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}]]}}}</div> }}{{{caption|}}}</div> }}</div></div>{{#ifeq: {{{align|}}} | center | </div> }}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 15:58, 15 February 2019