Module:Sandbox/Frietjes

This is an old revision of this page, as edited by Frietjes (talk | contribs) at 22:46, 2 February 2018. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p.data(frame)
	local args = frame.args[1] or frame:getParent().args[1]
	local file = args[1] and mw.title.new(args[1]).file or {width = '?', height = '?'}
	return file[args[2] or '']
end

return p