--
local p =
local function _getdimensions(filename) if filename:sub(1,5) ~= "File:" then filename = "File:" .. filename end local titleobj = mw.title.new(mw.uri.decode(mw.ustring.gsub(filename,'%|.*$',), 'WIKI')) local fileobj = titleobj and titleobj.file or local w = tonumber(fileobj.width) or 0 local h = tonumber(fileobj.height) or 0 return w, hend
function p.getDimensions(frame) local filename = mw.text.trim(frame.args[1] or "") if filename
function p.getHeight(frame) local filename = mw.text.trim(frame.args[1] or "") if filename
function p.getWidth(frame) local filename = mw.text.trim(frame.args[1] or "") if filename
function p.getScale(frame) local filename = mw.text.trim(frame.args[1] or "") if filename
0) or (h
return p