Module:Var

From TwogPedia
Revision as of 21:48, 20 October 2023 by Couchor (talk | contribs) (Created page with "local getArgs = require('Module:Arguments').getArgs local VariablesLua = mw.ext.VariablesLua local p = {} function p.main(frame) local args = getArgs(frame) if args.var and args.value then VariablesLua.vardefine(args.var, args.value) end end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local getArgs = require('Module:Arguments').getArgs
local VariablesLua = mw.ext.VariablesLua

local p = {}

function p.main(frame)
	local args = getArgs(frame)
	if args.var and args.value then
		VariablesLua.vardefine(args.var, args.value)	
	end
end

return p