Actions

Template

Difference between revisions of "Scaleimage"

From NEC Retro

m (Text replacement - "{{PAGENAME}}" to "Category:Templates")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1}}}|{{#expr:({{#mediawidth:{{{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 8: Line 8:
  
 
==Example==
 
==Example==
<tt><nowiki>{{</nowiki>scaleimage|ChinaWarrior title.pngg|0.5}}</tt>
+
<tt><nowiki>{{</nowiki>scaleimage|ChinaWarrior title.png|0.5}}</tt>
  
 
{{scaleimage|ChinaWarrior title.png|0.5}}
 
{{scaleimage|ChinaWarrior title.png|0.5}}
 +
{{scaleimage|ChinaWarrior title.png|0.5|nolink=true}}
  
[[Category:NEC Retro templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 22:52, 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|ChinaWarrior title.png|0.5}}

ChinaWarrior title.png ChinaWarrior title.png