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...") |
|||
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>{{HScale|TruePinball Saturn Table LawNJustice.png|width=200|scalex=1|scaley=2}}</pre> | ||
+ | |||
+ | {|style="width:auto;" | ||
+ | |[[File:TruePinball Saturn Table LawNJustice.png|200px]] | ||
+ | | -> | ||
+ | |{{HScale|TruePinball Saturn Table LawNJustice.png|width=200|scalex=1|scaley=2}} | ||
+ | |} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 05:47, 29 June 2023
Scaling template that probably doesn't work very well:
{{HScale|TruePinball Saturn Table LawNJustice.png|width=200|scalex=1|scaley=2}}
-> | Template:HScale |