Template:Image frame: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(Reverting. The actual problem is additional px.)
m (43 revisions imported from templatewiki:Template:Image_frame)
 
(40 intermediate revisions by 28 users not shown)
Line 1: 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 }}

== 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:Miscellaneous templates]]
</noinclude>

Latest revision as of 12:41, 30 May 2021

Wikipedia logo This template uses material from the Wikipedia template Template:Image frame, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).