Difference between revisions of "Scaleimage"

From Sega Retro

(Created page with "<includeonly>[[File:{{{1}}}|{{#expr:{{#imgw:{{{1}}}}}*{{{2|2}}}}}px]]</includeonly><noinclude> This template scales an image by a factor of 2, or any other specified number. ...")
 
m
Line 1: Line 1:
<includeonly>[[File:{{{1}}}|{{#expr:{{#imgw:{{{1}}}}}*{{{2|2}}}}}px]]</includeonly><noinclude>
+
<includeonly>[[File:{{{1}}}|{{#expr:({{#imgw:{{{1}}}}}*{{{2|2}}}) round0}}px]]</includeonly><noinclude>
 
This template scales an image by a factor of 2, or any other specified number.
 
This template scales an image by a factor of 2, or any other specified number.
  

Revision as of 12:43, 22 April 2012

This template scales an image by a factor of 2, or any other specified number.

Usage

{{scaleimage|filename.jpg|n}}

n is optional.

Example

{{scaleimage|Out Run Title.png|0.5}}

Expression error: Unrecognized punctuation character "{".px