Jump to content

Module:ImageRatio/doc: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

29 August 2024

3 February 2024

31 January 2024

  • curprev 10:2610:26, 31 January 2024 Adam Cuerden talk contribs 506 bytes +506 Created page with '{{Module rating| release}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == <code><nowiki>{{</nowiki>#invoke:{{subst:BASEPAGENAME}}|ratio|Filename.jpg<nowiki>}}</nowiki></code> 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. <includeonly>{{Sandbox other|| <!-- Categories belo...'