查看“︁模块:Transclusion count”︁的源代码
←
模块:Transclusion count
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} function p.fetch(frame) local template = nil local return_value = nil -- Use demo parameter if it exists, otherswise use current template name local namespace = mw.title.getCurrentTitle().namespace if frame.args["demo"] and frame.args["demo"] ~= "" then template = frame.args["demo"] elseif namespace == 10 then -- Template namespace template = mw.title.getCurrentTitle().text elseif namespace == 828 then -- Module namespace template = (mw.site.namespaces[828].name .. ":" .. mw.title.getCurrentTitle().text) end -- If in template or module namespace, look up count in /data if template ~= nil then namespace = mw.title.new(template, "Template").namespace if namespace == 10 or namespace == 828 then template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end local index = mw.ustring.sub(mw.title.new(template).text,1,1) local data = mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other")) return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) end end -- If database value doesn't exist, use value passed to template if return_value == nil and frame.args[1] ~= nil then local arg1=mw.ustring.match(frame.args[1], '[%d,]+') return_value = tonumber(frame:callParserFunction('formatnum', arg1, 'R')) end return return_value end return p
该页面使用的模板:
模块:Transclusion count/doc
(
查看源代码
)
返回
模块:Transclusion count
。
导航菜单
个人工具
创建账号
登录
命名空间
模块
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
Mediawiki页面
首页
最近更改
免责声明
关于我们
游戏相关
游戏曲目
游戏玩法
常见问题解答
曲目解锁机制
游戏彩蛋
故事剧情
游戏章节(主章)
Ep.Press/Start
Ep.Solarsphere
Ep.Darksphere
Ep.Darksphere XXXL
游戏章节(DLC)
Ep.Sun and Moon
Ep.Empyreal Bon Voyage
Ep.Six Seconds Later
Ep.Lights Go Round
游戏杂项
更新记录
音乐专辑
资源二创细则
meme/二创
Technical Docs
其它项目
異議あり!
工具
链入页面
相关更改
特殊页面
页面信息