W2h
From NEC Retro
Revision as of 12:39, 14 September 2015 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{#expr: ({{#mediaheight:{{{1}}}}}*({{{2}}} div {{#mediawidth:{{{1}}}}})) round 0 }}</includeonly><noinclude> This template obtains the height of a resized image,...")
Revision as of 12:39, 14 September 2015 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{#expr: ({{#mediaheight:{{{1}}}}}*({{{2}}} div {{#mediawidth:{{{1}}}}})) round 0 }}</includeonly><noinclude> This template obtains the height of a resized image,...")
This template obtains the height of a resized image, given that its width is known.
Example
{{w2h|GoldenAxe Title.png|320}} returns Expression error: Unexpected < operator.
{{w2h|GoldenAxe Title.png|160}} returns Expression error: Unexpected < operator.
{{w2h|GoldenAxe Title.png|97}} returns Expression error: Unexpected < operator.