Template:Image frame: Difference between revisions

add style parameter to outer div
m (1 revision imported: copy from w:Template:Graph:Chart)
(add style parameter to outer div)
Line 1:
<includeonly>{{#ifeq: {{{align|right}}} | center | <div class="center">| }}<div class="thumb {{#switch: {{{align|right}}} | right |#default=tright | left=tleft | center=tnone | none=tnone | tright}}"><div class="thumbinner{{#ifeq: noresize"{{{mode|}}} | scrollable|style="overflow:hidden;width:{{{width|auto}}};max-width:{{#if:{{{max-width|}}}|width:{{#expr:{{{max-width|}}}+28}}px;|100%}} {{{style|}}}"|style="{{{style|}}}"}}><div class="thumbinner" {{#ifeq: {{{posmode|bottom}}} | bottom scrollable||<div class="thumbimage" style="width:{{#if:{{{width|}}}|width {{#ifeq: {{{widthborder|}}}px; | no | {{{width}}}px | {{#expr:{innerstyle{{width}}}+2}}px}} |fit-content; width:-moz-fit-content; width:-webkit-fit-content;}}}}">{{#ifeq: {content{{pos|}}}</div> |}} top | <div class="thumbcaption">{{#if: {{{link|}}} | <div class="magnify" style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}{{#if: {{{link_text|}}} | {{!}}{{{link_text}}}}}]]}}}</div> |}}{{{caption|}}}</div> |}}<div class="{{#ifeq: {{{posmode|bottom}}} | topscrollable||{{#ifeq: {{{border|}}} <div| no | center | class="thumbimage }}}} noresize" style="width:{{#if:{{{width|}}}|width: {{{width}}}px | auto }};{{#ifeq: {{{mode|}}} | scrollable|overflow:auto;{{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}}}{{{innerstyle|}}}">{{#ifeq: {{{mode|}}} | scrollable|<div style="white-space:nowrap">}}{{{content}}}{{#ifeq: {{{mode|}}} | scrollable|</div>}}</div>{{#ifeq: {{{pos|}}} | top || {{#if:{{{caption|}}}|<div class="thumbcaption">{{#if: {{{link|}}} | <div style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}{{#if: {{{link_text|}}} | {{!}}{{{link_text}}}}}]]}}}</div> }}{{{caption|}}}</div>}} }}</div></div>{{#ifeq: {{{align|right}}} | center | </div>| }}</includeonly><noinclude>{{Documentation}}</noinclude>
Anonymous user