Module:Sandbox/FR30799386/Scribbles

Revision as of 16:10, 9 August 2018 by imported>FR30799386
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/FR30799386/Scribbles/doc

local p={}
function p.main(frame)
local filename=mw.title.new(frame.args[1])
local width=frame.args["width"]
local center=frame.args["center"]
local maxwidth=frame.args["maxwidth"]
local maxheight=frame.args["maxheight"]
local divarguments=argumentresolution(width,center,maxwidth,maxheight)
local output='<div style=\"'..divarguments..'\">'..'[['..filename.prefixText..(caption and '{{!}}'..caption or '')..']]'
return frame:preprocess(output)
end
function argumentresolution(width,center,maxwidth,maxheight)
	local arguments
	if(not maxwidth and not maxheight)then
	end
	end
return p