Difference between revisions of "Template:Image"
From Species-ID
(based on example template for ImageSizeInfoFunctions extension, using functions provided by that extension) |
|||
Line 13: | Line 13: | ||
#if: {{{7|}}} | {{!}}{{{7}}} | #if: {{{7|}}} | {{!}}{{{7}}} | ||
}}]]</includeonly><noinclude> | }}]]</includeonly><noinclude> | ||
− | + | ==Description== | |
This template work similar to the normal mediawiki image embedding (<nowiki>[[File:x.png|thumb|left|250px|The caption text]]</nowiki>), except it also allows to scale an image by percent. 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 original image. | This template work similar to the normal mediawiki image embedding (<nowiki>[[File:x.png|thumb|left|250px|The caption text]]</nowiki>), except it also allows to scale an image by percent. 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 original image. | ||
− | + | ==Usage:== | |
− | * <nowiki>{{Image|File:x.png|Your caption text here|width=250px}} | + | * <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>{{Image|File:x.png|thumb|left|width=15|Your caption text}}</nowiki> |
</noinclude> | </noinclude> |
Revision as of 01:32, 16 December 2008
Description
This template work similar to the normal mediawiki image embedding ([[File:x.png|thumb|left|250px|The caption text]]), except it also allows to scale an image by percent. 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 original image.
Usage:
- {{Image|File:x.png|Your caption text here|width=250px}}
- {{Image|File:x.png|thumb|left|width=15|Your caption text}}