Actions

Template

D2w

From NEC Retro

Revision as of 18:18, 16 May 2023 by SorachiJirachi (talk | contribs) (Created page with "<includeonly>{{#ifexpr: {{{3}}} < {{w2h|{{{1}}}|{{{2}}}}} | {{h2w|{{{1}}}|{{{3}}}}} | {{{2}}} }}</includeonly><noinclude> This template obtains the width of a resized image, g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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|Sonic1 title.png|320|224}} returns 320

{{d2w|Sonic1 title.png|1000|112}} returns 160

{{d2w|Sonic1 title.png|160|1000}} returns 160