Difference between revisions of "Scaleimage"

From Sega Retro

m (Text replace - "Sega Retro Templates" to "Sega Retro templates")
m (Text replacement - "[[Category:Sega Retro templates" to "[[Category:Templates")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1}}}|{{#expr:({{#imgw:{{{1}}}}}*{{{2|2}}}) round0}}px]]</includeonly><noinclude>
+
<includeonly>[[File:{{{1}}}|{{#expr:({{#mediawidth:{{{1}}}}}*{{{2|2}}}) round0}}px|{{#if:{{{nolink|}}}|link=|}}]]</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.
  
Line 11: Line 11:
  
 
{{scaleimage|Out Run Title.png|0.5}}
 
{{scaleimage|Out Run Title.png|0.5}}
 +
{{scaleimage|Out Run Title.png|0.5|nolink=true}}
  
[[Category:Sega Retro templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 22:50, 24 June 2023

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}}

Out Run Title.png Out Run Title.png