打开主菜单
首页
随机
登录
设置
关于Arcaea中文维基
免责声明
搜索
查看“Module:Link”的源代码
←
Module:Link
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local getArgs = require('Module:Arguments').getArgs local p = {} local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame) return p[funcName](args) end end p.titular = makeInvokeFunc('_titular') function p._titular(args) local result="" for i,k in ipairs(args) do result=result..'<span id="'..k..'"></span>' end return result end function link(page,name) local result= '[['..page..'列表#'..name..'|'..name..']]' return result end p.link = makeInvokeFunc('_link') function p._link(args) local page,text=args[1],args[2] local a,b,c a,b = text:match('([^\s]*) (feat.*)') if a and b then return link(page,a)..' '..b end a,b,c = text:match('([^\s]*) (vs) ([^\s]*)') if a and b and c then return link(page,a)..' '..b..' '..link(page,c) end a,b,c = text:match('([^\s]*) (×) ([^\s]*)') if a and b and c then return link(page,a)..' '..b..' '..link(page,c) end a,b,c = text:match('([^\s]*) (vs.) ([^\s]*)') if a and b and c then return link(page,a)..' '..b..' '..link(page,c) end a,b,c = text:match('([^\s]*) (x) ([^\s]*)') if a and b and c then return link(page,a)..' '..b..' '..link(page,c) end a,b,c = text:match('([^\s]*) (&) ([^\s]*)') if a and b and c then return link(page,a)..' '..b..' '..link(page,c) end return link(page,text) end return p
本页使用的模板:
Module:Link/doc
(
查看源代码
)
返回
Module:Link
。