FANDOM


Documentation icon TEMPLATE DOCUMENTATION[edit] [history] [purge]
This documentation is transcluded from Template:Eximg/doc.
Description
The Eximg template is a complete substitute for the [[File:]] wikilink, which can offer internal image-like styling to images hosted on external websites. This prevents over crowding of the image system by allowing users to host their images offsite but use them exactly as they would a wiki hosted image.
The following off-site image hosting sites are currently supported:
These websites should not be used for image hosting.
Syntax
Using the template requires that the first parameter (the image URL) is place. If the first parameter is not place, the template will not work.
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png}} f2wjwE8.png
After the first parameter, any combination of up to 5 parameters may be used in any order; similar to the [[File:]] wikilink. The following parameters and their functions can be used:
Alignment - Aligns image to the left, center, or right side of the page.
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png|right}}
f2wjwE8.png
Width - Scales image size to designated width in pixels (px).
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png|100px}} f2wjwE8.png
Thumbnail - Stylises image as a thumbnail with a default right alignment.
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png|thumb}}
f2wjwE8.png
Caption - Shows defined caption on image hover over and under thumbnail.
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png|Halo Nation Logo}} f2wjwE8.png
{{Eximg|http://i.imgur.com/f2wjwE8.png|thumb|
Halo Nation Logo}}
f2wjwE8.png
Halo Nation Logo
Link - Changes the image link from source to defined URL, or removes link if left blank.
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png|link=
http://halo.wikia.com/}}
f2wjwE8.png
{{Eximg|http://i.imgur.com/f2wjwE8.png|link= }} f2wjwE8.png
Height - Scales image size to designated height in pixels (px), or stretched image with width parameter.
Mark Up: Render:
{{Eximg|http://i.imgur.com/f2wjwE8.png|h=50px}} f2wjwE8.png
{{Eximg|http://i.imgur.com/f2wjwE8.png|50px|h=50px}} f2wjwE8.png
Community content is available under CC-BY-SA unless otherwise noted.