Difference between revisions of "Scaleimage2"
From Sega Retro
(Created page with "<includeonly><div style="height:{{#expr:(({{#mediaheight:{{{1|}}}}}/({{#mediawidth:{{{1|}}}}}/{{{scaley|1}}}))*{{{width|}}})}}px;"><div class="bobtransform" style="transform:s...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="height:{{#expr:(({{#mediaheight:{{{1|}}}}}/({{#mediawidth:{{{1|}}}}}/{{{scaley|1}}}))*{{{width|}}})}}px;"><div class="bobtransform" style="transform:scale({{{scalex|1}}},{{{scaley|1}}}) !important; transform-origin:0% 0%; width:{{{width|}}}px;">[[File:{{{1|}}}|{{{width|}}}px]]</div></div></includeonly><noinclude> | + | <includeonly><div style="display:inline-block; height:{{#expr:(({{#mediaheight:{{{1|}}}}}/({{#mediawidth:{{{1|}}}}}/{{{scaley|1}}}))*{{{width|}}})}}px;"><div class="bobtransform" style="transform:scale({{{scalex|1}}},{{{scaley|1}}}) !important; transform-origin:0% 0%; width:{{{width|}}}px;">[[File:{{{1|}}}|{{{width|}}}px]]</div></div></includeonly><noinclude> |
+ | Scaling template that probably doesn't work very well: | ||
+ | <pre>{{Scaleimage2|TruePinball Saturn Table LawNJustice.png|width=200|scalex=1|scaley=2}}</pre> | ||
+ | |||
+ | {|style="width:auto;" | ||
+ | |[[File:TruePinball Saturn Table LawNJustice.png|200px]] | ||
+ | | -> | ||
+ | |{{Scaleimage2|TruePinball Saturn Table LawNJustice.png|width=200|scalex=1|scaley=2}} | ||
+ | |} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |