Difference between revisions of "Scaleimage"
From NEC Retro
(Created page with "<includeonly>[[File:{{{1}}}|{{#expr:({{#mediawidth:{{{1}}}}}*{{{2|2}}}) round0}}px]]</includeonly><noinclude> This template scales an image by a factor of 2, or any other spec...") |
m (Text replacement - "{{PAGENAME}}" to "Category:Templates") |
||
(2 intermediate revisions by 2 users 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> |