Template:Image frame: Difference between revisions

From Archon Arcana - The KeyForge Wiki
Add a parameter to drop the border of images
imported>Great Brightstar
(Fix a problem with File:Desc-i.svg)
imported>Great Brightstar
(Add a parameter to drop the border of images)
Line 1: Line 1:
<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|}}}| {{#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="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>
<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|}}}| {{#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 || thumbimage&#32;}}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>