D2w
From Sega Retro
This template obtains the width of a resized image, given that its dimensions are defined.
Usage
{{d2w|Imagefilename.png|width|height}}
width and height correspond to the dimensions of an embedded image:
[[Imagefilename.png|100x200px]]
Example
{{d2w|GoldenAxe Title.png|320|224}} returns 320
{{d2w|GoldenAxe Title.png|1000|112}} returns 160
{{d2w|GoldenAxe Title.png|160|1000}} returns 160