2023年政策修订增补工作正在进行中,欢迎参与!
Module:Sandbox/サンムル/Var
< Module:Sandbox | サンムル
return {
_get = function(frame)
local args = require("Module:Arguments").getArgs(frame)
return frame:callParserFunction("#var", args.name or args[1] or "", args.default or args[2] or "")
end,
_getfinal = function(frame)
local args = require("Module:Arguments").getArgs(frame)
return frame:callParserFunction("#var_final", args.name or args[1] or "", args.default or args[2] or "")
end,
define = function(frame)
local args = require("Module:Arguments").getArgs(frame)
return frame:callParserFunction("#vardefine", args.name or args[1] or "", args.value or args[2] or "")
end,
defineecho = function(frame)
local args = require("Module:Arguments").getArgs(frame)
return frame:callParserFunction("#vardefineecho", args.name or args[1] or "", args.value or args[2] or "")
end,
exists = function(frame)
local args = require("Module:Arguments").getArgs(frame)
return frame:callParserFunction("#varexists", args.name or args[1] or "", args.tvalue or args[2] or "", args.fvalue or args[3] or "")
end
}