Difference between revisions of "Template:Img"

From xat wiki
Jump to: navigation, search
(Created page with "<includeonly><div style="width:{{{width|275}}px" class="thumb t{{{float|right}}}"><div class="thumbinner plainlinks extimgthumb">[{{{link|{{{image}}}}}} {{{image}}}]<div class...")
 
m
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 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>
 
Image thumbnails for external images.
 
Image thumbnails for external images.
  
Line 12: Line 12:
 
<nowiki>{{</nowiki>img|'''image'''=<nowiki>http://</nowiki>i.imgur.com/iwI7tfI.png|'''float'''=left|'''description'''=A screenshot<nowiki>}}</nowiki>
 
<nowiki>{{</nowiki>img|'''image'''=<nowiki>http://</nowiki>i.imgur.com/iwI7tfI.png|'''float'''=left|'''description'''=A screenshot<nowiki>}}</nowiki>
  
Will produce:ow
+
Will produce:
 
{{img|image=http://i.imgur.com/iwI7tfI.png|float=left|description=A screenshot}}</noinclude>
 
{{img|image=http://i.imgur.com/iwI7tfI.png|float=left|description=A screenshot}}</noinclude>

Revision as of 17:42, 23 November 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 -

Example: {{img|image=http://i.imgur.com/iwI7tfI.png|float=left|description=A screenshot}}

Will produce: