Jump to content

Module:ImageRatio/doc

From Calamity Wiki
Revision as of 21:49, 29 August 2024 by imported>Warudo (Added the page to Category:Module documentation pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:ImageRatio

Usage

{{#invoke:ImageRatio|ratio|Filename.jpg}}

This returns the ratio of width to height (w/h) for an image. Defaults to returning 1 if the image doesn't exist, this avoids divide by 0 errors in templates that use it.