Template:ScaleImage: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>File:{{{imagename}}}|{{ #if:{{#pos:{{{newwidth|100}}}|px}}|{{{newwidth|100}}}| {{#expr: ({{#imgw: {{{imagename}}} }} * {{{newwidth|100}}}) / 100 }}px }}|text-to...") |
No edit summary |
||
Line 4: | Line 4: | ||
==EXAMPLE ON HOW TO USE THE TEMPLATE== | ==EXAMPLE ON HOW TO USE THE TEMPLATE== | ||
{{ScaleImage | {{ScaleImage | ||
|imagename= | |imagename=logo_marina_old.png | ||
|caption=myImage | |caption=myImage | ||
|newwidth=50px | |newwidth=50px |
Latest revision as of 11:21, 11 October 2016
EXAMPLE ON HOW TO USE THE TEMPLATE
Copy and paste the code below to the page you wish to add an image:
{{ScaleImage |imagename=logo_marina_old.png |caption=myImage |newwidth=50px }}
Then replace the content of the variables with your own, for example :
Replace
imagename=logo_marina_old.png
With
imagename=my_image.jpg
List of Variables
- imagename : This variable expects from the editor to assign to it an image. You must first upload an image using the upload file option of the toolbox available on the left column of the page. This option is visible if and only if you are logged in.
- caption : This variable expects from the editor to assign to it the caption of the image. Caption is a short explanation of the image that appears when the user has his or her mouse pointer over the image.
- newwidth : This variable expects from the editor to assign to it the width of the image. New width=15,scales the image to 15%, new width=80px,scales the image to 80px.