Difference between revisions of "H2w"
From NEC Retro
Ccawley2011 (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr: ({{#mediawidth:{{{1}}}}}*({{{2}}} div {{#mediaheight:{{{1}}}}})) | + | <includeonly>{{#expr: floor({{#mediawidth:{{{1}}}}}*({{{2}}} div {{#mediaheight:{{{1}}}}})) }}</includeonly><noinclude> |
This template obtains the width of a resized image, given that its height is known. | This template obtains the width of a resized image, given that its height is known. | ||
Revision as of 15:42, 31 December 2021
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 138