Anonymous user
Template:Image frame: Difference between revisions
update to make sure the frame appears; note that the way the divs are set up, "width" actually is required; the "magnify" link can't be an image with CSS hacks; add an "align" parameter
(updating category) |
(update to make sure the frame appears; note that the way the divs are set up, "width" actually is required; the "magnify" link can't be an image with CSS hacks; add an "align" parameter) |
||
Line 1:
<includeonly>{{#ifeq: {{{align|right}}} | center | <div class="
}}<div class="thumb {{#
<div class="thumbinner" style="width:{{#expr:{{{width}}}+2}}px;">
{{{content}}}
<div class="thumbcaption">
{{#if: {{{link|}}} | <div class="magnify" style="float:right">
{{{caption|}}}
</div>
</div>
</div>{{#ifeq: {{{align|right}}} | center | </div> | }}</includeonly><noinclude>
== Description ==
This template creates a frame like those surrounding images. This template
== Usage ==
<nowiki> {{imageframe | width=175 | content= [[Image:TSR1New.jpg|80px]] [[Image:TSR2New.jpg|80px]] | caption=Channel logos | link=Télévision Suisse Romande | align=center}} </nowiki>
will cause:
{{Imageframe | width=175 | content= [[Image:TSR1New.jpg|80px]] [[Image:TSR2New.jpg|80px]] | caption=Channel logos | link=Télévision Suisse Romande | align=center}}
<br clear="all">
Note, do not add "px" to the width: ie, use width=175 and not width=175px.▼
== Parameters ==
; content : (required) Content of the main section (generally images)
▲
;
; link : ''(
; align : (''optional'', defaults to right) Valid values: right, left, center.
|