Template:Img: Difference between revisions
From xat wiki
mNo edit summary |
(improvements) |
||
Line 1: | Line 1: | ||
<includeonly><div style="width:{{{width|275}}}px" class="thumb t{{{float|right}}}"><div class="thumbinner plainlinks extimgthumb">[{{{link|{{{image}}}}}} {{{image}}}]<div class="thumbcaption"><div class="magnify plainlinks">[{{{link|{{{image}}}}}} http://util.xat.com/wiki/skins/common/images/magnify-clip.png]</div>{{{description}}}</div></div></div></includeonly><noinclude> | <includeonly><div style="width:{{{width|275}}}px" class="thumb t{{{float|right}}}"><div style="background-color: #f9f9f9; padding: 3px; border: 1px solid #ccc"><div style="padding:0 !important" class="thumbinner plainlinks extimgthumb">[{{{link|{{{image}}}}}} {{{image}}}]</div><div class="thumbcaption"><div class="magnify plainlinks">[{{{link|{{{image}}}}}} http://util.xat.com/wiki/skins/common/images/magnify-clip.png]</div>{{{description}}}</div></div></div></includeonly><noinclude> | ||
Image thumbnails for external images. | Image thumbnails for external images. | ||
Revision as of 12:48, 3 December 2015
Image thumbnails for external images.
Attributes:
- image - direct link to an image you're going to use
- width - sets the width of an image thumb in pixels, defaults to 275px and should be kept that way, unless the image is smaller than that.
- float - float right or left, defaults to right (optional)
- description - short description of the image
- link - where thumbnail links to, should not be set for regular thumbnails (optional)
Example: {{img|image=http://i.imgur.com/iwI7tfI.png|float=left|description=A screenshot}}
Will produce: