查看“Module:Var”的源代码
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
local frame = mw.getCurrentFrame()
local module = {
getPlain = function(key, type)
if type then
type = '_'..type
else
type = ''
end
return frame:callParserFunction("#var"..type, tostring(key))
end,
set = function(key, val)
frame:callParserFunction("#vardefine", tostring(key), tostring(val))
return val
end
}
module.get = function(key, type)
local val = module.getPlain(key, type)
000
1:0
本页使用的模板:
- Template:Documentation(查看源代码)(仅允许管理员和巡查姬)
- Module:Var/doc(查看源代码)
返回Module:Var。