Actions

Template

H2w

From Sonic Retro

Revision as of 18:09, 9 June 2015 by Hivebrain (talk | contribs) (Created page with "<includeonly>{{#expr: ({{#mediawidth:{{{1}}}}}*({{{2}}} div {{#mediaheight:{{{1}}}}})) round 0 }}</includeonly><noinclude> This template obtains the width of a resized image,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template obtains the width of a resized image, given that its height is known.

Example

{{h2w|Sonic1 title.png|224}} returns 320

{{h2w|Sonic1 title.png|112}} returns 160

{{h2w|Sonic1 title.png|97}} returns 139