Actions

Template

Difference between revisions of "H2w"

From Sonic Retro

(temporary fix to stop pdfs breaking things)
 
Line 11: Line 11:
 
<tt><nowiki>{{h2w|VGL2 CD US booklet.pdf|97}}</nowiki></tt> returns '''{{h2w|VGL2 CD US booklet.pdf|97}}'''
 
<tt><nowiki>{{h2w|VGL2 CD US booklet.pdf|97}}</nowiki></tt> returns '''{{h2w|VGL2 CD US booklet.pdf|97}}'''
  
[[Category:Sonic Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 19:21, 1 January 2022

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

{{h2w|VGL2 CD US booklet.pdf|97}} returns 97