打开/关闭搜索
搜索
打开/关闭菜单
31
8
13
2.1K
陋室
导航
首页
最近更改
随机页面
特殊页面
社群首页
新闻动态
帮助
上传文件
内容
分类树
所有页面
导入页面
活跃用户列表
维护
最近更改
MediaWiki 消息页
小工具管理
小工具定义
系统消息
界面
侧边栏
站点公告
匿名用户通知
公共样式表
公共脚本
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
中文(简体)
个人工具
登录
查看“︁模块:PageToolsLink”︁的源代码
来自陋室
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:PageToolsLink
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
您可以查看和复制此页面的源代码。
local p = {} local function trim(s) if not s then return '' end return mw.text.trim(s) end local function makeLink(url, label) return string.format('[%s %s]', url, label) end function p.renderSandbox(frame) local args = frame.args or {} local parent = trim(args.parent) local target = trim(args.target) local doc = trim(args.doc) local style = trim(args.style) if target == '' then target = mw.title.getCurrentTitle().prefixedText end if parent == '' then parent = 'Template:PageToolsLink/sandbox' end if doc == '' then doc = target .. '/Doc' end if style == '' then style = target .. '/styles.css' end local viewUrl = tostring(mw.uri.fullUrl(target, { action = 'view' })) local editUrl = tostring(mw.uri.fullUrl(target, { action = 'edit' })) local targetTitle = mw.title.new(target) local talkTitle = targetTitle and targetTitle.talkPageTitle and targetTitle.talkPageTitle.prefixedText or ('Talk:' .. target) local talkUrl = tostring(mw.uri.fullUrl(talkTitle)) local docUrl = tostring(mw.uri.fullUrl(doc)) local styleUrl = tostring(mw.uri.fullUrl(style)) return table.concat({ '<span class="page-tools">' .. parent .. ' |', makeLink(viewUrl, '查看') .. ' |', makeLink(editUrl, '编辑') .. ' |', makeLink(talkUrl, '讨论') .. ' |', makeLink(docUrl, '文档') .. ' |', makeLink(styleUrl, '样式') .. '</span>' }, '\n') end return p
此页面嵌入的页面:
模块:PageToolsLink/doc
(
查看源代码
)
返回
模块:PageToolsLink
。
查看“︁模块:PageToolsLink”︁的源代码
来自陋室