Template:Image frame: Difference between revisions
Jump to navigation
Jump to search
(Including a second style="width:" for the "thumbcaption" div, as for long text on firefox it makes it wider than you want) |
(Reverting. The actual problem is additional px.) |
||
Line 2: | Line 2: | ||
<div {{#if: {{{width|}}} | style="width:{{{width}}}px;" |}}> | <div {{#if: {{{width|}}} | style="width:{{{width}}}px;" |}}> | ||
{{{content}}} | {{{content}}} | ||
<div class="thumbcaption" | <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> |}} | {{#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}}} | {{{caption}}} |
Revision as of 17:39, 18 October 2006
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
{{imageframe | width=175 | content= [[Image:TSR1New.jpg|80px]] [[Image:TSR2New.jpg|80px]] | caption=Channel logos }}
will cause:
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.