打开/关闭搜索
搜索
打开/关闭菜单
1K
5.2K
4
8.2K
星砂岛百科
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
本站正在进行早期测试,目前仍存在许多内容的缺失。
查看“︁模块:Path”︁的源代码
来自星砂岛百科
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Path
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:已验证邮箱用户
您没有权限编辑
模块
命名空间内的页面。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} function p.main(frame) local args = frame:getParent().args local currentTitle = mw.title.getCurrentTitle().fullText -- Create the outer container local root = mw.html.create('div'):addClass('ss-path') -- Create the inner content container and keep a reference to it local content = root:tag('div'):addClass('ss-path-content') local function addSep(node) node:tag('span') :addClass('ss-path-sep') :wikitext('/') end -- 1. Add Main Page content:wikitext('[[星砂岛百科|首页]]') -- 2. Loop through numeric arguments local i = 1 while args[i] do local page = mw.text.trim(args[i]) if page ~= "" then addSep(content) content:wikitext('[[:' .. page .. ']]') end i = i + 1 end -- 3. Add Current Page addSep(content) content:tag('span') :addClass('ss-path-current') :wikitext(currentTitle) return tostring(root) end return p
该页面嵌入的页面:
模块:Path/doc
(
查看源代码
)
返回
模块:Path
。
查看“︁模块:Path”︁的源代码
来自星砂岛百科