Difference between revisions of "H2w"
From NEC Retro
(Created page with "<includeonly>{{#expr: ({{#mediawidth:{{{1}}}}}*({{{2}}} div {{#mediaheight:{{{1}}}}})) round 0 }}</includeonly><noinclude> This template obtains the width of a resized image,...") |
|||
Line 3: | Line 3: | ||
==Example== | ==Example== | ||
− | <tt><nowiki>{{h2w| | + | <tt><nowiki>{{h2w|Sonic1 title.png|224}}</nowiki></tt> returns '''{{h2w|Sonic1 title.png|224}}''' |
− | <tt><nowiki>{{h2w| | + | <tt><nowiki>{{h2w|Sonic1 title.png|112}}</nowiki></tt> returns '''{{h2w|Sonic1 title.png|112}}''' |
− | <tt><nowiki>{{h2w| | + | <tt><nowiki>{{h2w|Sonic1 title.png|97}}</nowiki></tt> returns '''{{h2w|Sonic1 title.png|97}}''' |
− | [[Category:NEC Retro templates | + | [[Category:NEC Retro templates]]</noinclude> |
Revision as of 13:34, 14 September 2015
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