Difference between revisions of "W2h"
From Sega Retro
(Created page with "<includeonly>{{#expr: ({{#mediaheight:{{{1}}}}}*({{{2}}} div {{#mediawidth:{{{1}}}}})) round 0 }}</includeonly><noinclude> This template obtains the height of a resized image,...") |
|||
Line 3: | Line 3: | ||
==Example== | ==Example== | ||
− | <tt><nowiki>{{ | + | <tt><nowiki>{{w2h|GoldenAxe Title.png|320}}</nowiki></tt> returns '''{{w2h|GoldenAxe Title.png|320}}''' |
− | <tt><nowiki>{{ | + | <tt><nowiki>{{w2h|GoldenAxe Title.png|160}}</nowiki></tt> returns '''{{w2h|GoldenAxe Title.png|160}}''' |
− | <tt><nowiki>{{ | + | <tt><nowiki>{{w2h|GoldenAxe Title.png|97}}</nowiki></tt> returns '''{{w2h|GoldenAxe Title.png|97}}''' |
[[Category:Sega Retro templates|{{PAGENAME}}]]</noinclude> | [[Category:Sega Retro templates|{{PAGENAME}}]]</noinclude> |
Revision as of 14:27, 7 February 2015
This template obtains the height of a resized image, given that its width is known.
Example
{{w2h|GoldenAxe Title.png|320}} returns 224
{{w2h|GoldenAxe Title.png|160}} returns 112
{{w2h|GoldenAxe Title.png|97}} returns 68