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. | + | <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: | + | [[Category:Templates]]</noinclude> |