Template:Image frame: Difference between revisions

m
43 revisions imported from templatewiki:Template:Image_frame
(updating category)
m (43 revisions imported from templatewiki:Template:Image_frame)
 
(38 intermediate revisions by 26 users not shown)
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;}}">{{{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;}}">{{{content}}}</div> |}}</div></div>{{#ifeq:{{{align|right}}}|center|</div>|}}</includeonly><noinclude>{{Documentation}}{{En-WP attribution notice|Template:Image frame}}</noinclude>
<includeonly><div class="thumb tright">
<div {{#if: {{{width|}}} | style="width:{{{width}}}px;" |}}>
{{{content}}}
<div class="thumbcaption">
{{#if: {{{link|}}} | <div class="magnify" style="float:right"><a href="/wiki/{{{link}}}" class="internal" title="Enlarge"><img src="/skins-1.5/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div> |}}
{{{caption}}}
</div>
</div>
</div></includeonly><noinclude>
== Description ==
This template creates a frame like those surrounding images. This template was created mainly to put two or more images into a frame together.
 
== Usage ==
 
<nowiki> {{imageframe | width=175 | content= [[Image:TSR1New.jpg|80px]] [[Image:TSR2New.jpg|80px]] | caption=Channel logos }} </nowiki>
 
will cause:
 
{{Imageframe | width=175 | content= [[Image:TSR1New.jpg|80px]] [[Image:TSR2New.jpg|80px]] | caption=Channel logos }}
 
Note, do not add "px" to the width: ie, use width=175 and not width=175px.
== Parameters ==
; content : Content of the main section (generally images)
; caption : Content of the caption section
; width : ''(Optional)'' Width of the DIV, in pixels
; link : ''(Optional)'' Link for the "Enlarge" image in the caption.
 
 
[[Category:Formatting templates|{{PAGENAME}}]]
</noinclude>