<nowiki>{{</nowiki>#invoke:ImageRatio|ratio|Filename.jpg<nowiki>}}</nowiki>
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.
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Module:ImageRatio/doc".
Except where otherwise indicated, Everything.Explained.Today is © Copyright 2009-2024, A B Cryer, All Rights Reserved. Cookie policy.