Toggle menu
9
204
47
18.7K
KenshiDB
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Subpages:

Implements {{Flexbox}}.



local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main(frame)
	local args = getArgs(frame)
	local style = args["style"] or ""
	local minwidth = args["min-width"] or ""
	local maxwidth = args["max-width"] or ""
	local padding = args["padding"] or ""
	local ret = '<div style="display:flex; flex-wrap:wrap; '..style..'">'
	local n = 1
	while args[n] do
		ret = ret .. '<div style="flex:1 1 0; min-width:'..minwidth..'; max-width:'..maxwidth..'; padding:'..padding..';">'..args[n]..'</div>'
		n = n + 1
	end
	ret = ret .. '</div>'
	return ret
end

return p