Module:ImageRatio/doc: Difference between revisions
From Kenshi Wiki
More actions
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
[[Category:Modules]] | [[Category:Modules]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
[[Category:Module | [[Category:Module documents]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 03:47, 15 March 2025
| This is a documentation subpage for Module:ImageRatio. It may contain usage information, categories and other content that is not part of the original module page. |
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.