查看“︁Module:Xpsoc”︁的源代码
←
Module:Xpsoc
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
-- This module implements {{xpsoc}}. local mTemplateInvocation = require('Module:Template invocation') local p = {} function p._main(args, frame) frame = frame or mw.getCurrentFrame() -- Get the invocation arguments. local name = args[1] if not name then error('no template name passed to xpsoc', 2) end local invArgs = {} for k, v in pairs(args) do if k ~= 1 then if type(k) == 'number' then invArgs[k - 1] = v else local num = k:match('^n([1-9][0-9]*)$') if num then invArgs[args[k]] = args['v' .. num] end end end end local invocation = mTemplateInvocation.invocation(name, invArgs, 'nowiki') local gives = args.gives or mw.language.getContentLanguage():getArrow('forwards') local result = frame:preprocess(mTemplateInvocation.invocation(name, invArgs)) return string.format('<code>%s</code> %s %s', invocation, gives, result) end function p.main(frame) return p._main(frame:getParent().args, frame) end return p
该页面使用的模板:
Module:Xpsoc/doc
(
查看源代码
)
返回
Module:Xpsoc
。
导航菜单
个人工具
中文
创建账号
登录
命名空间
模块
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息