Difference between revisions of "Template:Image"
From Species-ID
m |
|||
Line 14: | Line 14: | ||
}}]]</includeonly><noinclude> | }}]]</includeonly><noinclude> | ||
==Description== | ==Description== | ||
− | This template | + | This template works similar to the default mediawiki image embedding syntax (<nowiki>[[File:x.png|thumb|left|250px|The caption text]]</nowiki>), except in that it also allows to scale an image as a percentage of the original size. If the parameter "width" is called with a "px" after the number, normal pixel scaling occurs, else the number will be interpreted as percent of the original image. |
==Usage:== | ==Usage:== | ||
* <nowiki>{{Image|File:x.png|Your caption text here|width=250px}}</nowiki> | * <nowiki>{{Image|File:x.png|Your caption text here|width=250px}}</nowiki> | ||
− | * <nowiki>{{Image|File:x.png|thumb|left|width=15|Your caption text}}</nowiki> | + | *: Fully equivalent to: <nowiki>[[File:x.png|250px|Your caption text here]]</nowiki> |
+ | * <nowiki>{{Image|File:x.png|thumb|left|width=15|upright|Your caption text}}</nowiki> | ||
+ | *: This scales the image to 15% of original size. | ||
</noinclude> | </noinclude> |
Revision as of 01:50, 16 December 2008
Description
This template works similar to the default mediawiki image embedding syntax ([[File:x.png|thumb|left|250px|The caption text]]), except in that it also allows to scale an image as a percentage of the original size. If the parameter "width" is called with a "px" after the number, normal pixel scaling occurs, else the number will be interpreted as percent of the original image.
Usage:
- {{Image|File:x.png|Your caption text here|width=250px}}
- Fully equivalent to: [[File:x.png|250px|Your caption text here]]
- {{Image|File:x.png|thumb|left|width=15|upright|Your caption text}}
- This scales the image to 15% of original size.