Module:Var: Difference between revisions

From TwogPedia
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Manual revert
 
Line 9: Line 9:
VariablesLua.vardefine(args.var, args.value)
VariablesLua.vardefine(args.var, args.value)
end
end
    return nil
end
end


return p
return p

Latest revision as of 23:34, 20 October 2023

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