Module:ImageRatio

local p={}function p.ratio(frame)local file = frame.args[1]  and mw.title.new('File:' .. mw.uri.decode(mw.ustring.gsub(frame.args[1],'%|.*$',''), 'WIKI'))file = file and file.filelocal w = tonumber(file.width) or 1local h = tonumber(file.height) or 1    local r = w/h or 1return rendreturn p