匿名
未登录
创建账号
登录
搜索
查看“︁Module:Format link”︁的源代码
来自合肥八中Wiki
命名空间
模块
讨论
更多
更多
页面操作
阅读
查看源代码
历史
刷新
←
Module:Format link
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} function p.call( inputArgs ) if not inputArgs or type( inputArgs ) ~= 'table' then return nil end local rawPage = inputArgs[ 1 ] or '' local rawSection = inputArgs[ 2 ] or '' local finalPage, finalSection if rawPage:find( '[', 1, true ) then return rawPage else if rawPage:find( '|', 1, true ) then return '[[:' .. rawPage .. ']]' else if rawPage:find( '#', 1, true ) then local splitParts = mw.text.split( rawPage:gsub( '#+', '#' ), '#', true ) finalPage = splitParts[ 1 ] finalSection = splitParts[ 2 ] else finalPage = rawPage finalSection = rawSection end finalPage = finalPage:gsub( '^:', '' ) if finalSection == '' then return '[[:' .. finalPage .. ']]' elseif finalPage == '' then return '[[#' .. finalSection .. '|§ ' .. finalSection .. ']]' else return '[[:' .. finalPage .. '#' .. finalSection .. '|' .. finalPage .. ' § ' .. finalSection .. ']]' end end end end function p.main( f ) local args = f local frame = mw.getCurrentFrame() if f == frame then args = require( 'Module:ProcessArgs' ).merge( true ) end return p.call( { args[ 1 ] or '', args[ 2 ] or '' } ) end return p
该页面使用的模板:
Module:Format link/doc
(
查看源代码
)
返回
Module:Format link
。
导航
导航
首页
最近更改
随机页面
特殊页面
条目
索引
指南
生活
校区
教师
社团
事件
帮助
帮助
公告
方针
wiki工具
wiki工具
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志