This wiki is still in active development, many areas of the site are unstable or broken.

In the meantime, consider adding content to pages you like!

Module:BucketPut

From NBITTRPG Wiki
Revision as of 03:11, 4 October 2026 by CStatic (talk | contribs) (Created page with "local p = {} function p.main(frame) local args = frame:getParent().args local bucket_name = mw.text.trim(args[1] or '') local out_args = {} for k, v in pairs(args) do if v == '' then out_args[k] = nil else out_args[k] = v end end out_args[1] = nil bucket(bucket_name).put(out_args) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:BucketPut/doc

local p = {}

function p.main(frame)
	local args = frame:getParent().args
	local bucket_name = mw.text.trim(args[1] or '')
	local out_args = {}
	for k, v in pairs(args) do
		if v == '' then
			out_args[k] = nil
		else
			out_args[k] = v
		end
	end
	out_args[1] = nil
	bucket(bucket_name).put(out_args)
end

return p