打开/关闭搜索
搜索
打开/关闭菜单
331
1.7K
131
11.8K
星露谷物语扩展百科
导航
首页
最近更改
随机页面
交流群
互通站
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模块:Name”︁的源代码
来自星露谷物语扩展百科
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Name
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:已验证邮箱用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local utils = require("Module:Utils") local utils2 = require("Module:Expanded/Utils") local items = require("Module:Items") local expanded = utils.lazyload("Module:Name/data", true) local expanded2 = utils.lazyload("Module:Name/data", false) local p = {} function p.getName(input) local text = utils.getArg(input) if not text then return "" end if p.getDefaultName(text) ~= '' then return utils2._link(text) end text = text:lower():gsub("_"," ") if expanded[text] ~= nil then return utils2._link(expanded[text]) end local tmp = items.getChineseName(text) or text if tmp == "" then tmp = text end if tmp:find("|", 1, true) then return "s:" .. tmp else return "s:" .. tmp .. "|" .. tmp end end function p.getRawName(input) local text = utils.getArg(input) if not text then return "" end text = text:lower():gsub("_"," ") return expanded[text] or items.getChineseName(text) or "" end -- =p.getDefaultName { args = { "大叫汉堡" } } function p.getDefaultName(input) local text = utils.getArg(input) if not text then return "" end for key, value in pairs(expanded2) do if string.lower(value) == text then return key end end return "" end return p
该页面嵌入的页面:
模块:Documentation
(
查看源代码
)
模块:Documentation/styles.css
(
查看源代码
)
模块:Name/doc
(
查看源代码
)
模块:ProcessArgs
(
查看源代码
)
模块:STConversion
(
查看源代码
)
模块:Static
(
查看源代码
)
模块:TSLoader
(
查看源代码
)
返回
模块:Name
。
查看“︁模块:Name”︁的源代码
来自星露谷物语扩展百科