Template:Image frame: Difference between revisions
From Archon Arcana - The KeyForge Wiki
{{{align|right}}} means that the default is usually "right"... if the user specifies something else (eg. align=banana), then it should fall back to the same default
imported>Ais523 (add a default for tnone if none of 'left', 'right', and 'center' are given for {{{align}}}) |
imported>Interiot ({{{align|right}}} means that the default is usually "right"... if the user specifies something else (eg. align=banana), then it should fall back to the same default) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{align|right}}} | center | <div class="center"> | | <includeonly>{{#ifeq: {{{align|right}}} | center | <div class="center"> | | ||
}}<div class="thumb {{#switch: {{{align|right}}} | right=tright | left=tleft | center=tnone | | }}<div class="thumb {{#switch: {{{align|right}}} | right=tright | left=tleft | center=tnone | tright}}"><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> | <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. | 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. |