打开/关闭搜索
搜索
打开/关闭菜单
331
1.7K
131
11.8K
星露谷物语扩展百科
导航
首页
最近更改
随机页面
交流群
互通站
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模块:STConversion”︁的源代码
来自星露谷物语扩展百科
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:STConversion
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:已验证邮箱用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} local fallbackString = mw.getCurrentFrame():extensionTag('nowiki') local function item( variant, content ) if not content then return '' end if string.match( content, '^()%s*$' ) then return variant .. ':' .. fallbackString .. ';' end return variant .. ':' .. string.match( content, '^.*%S' ) .. ';' end function p.call( args ) return '-{' .. ( args.mode and ( args.mode .. '|' ) or '' ) .. item( 'zh-cn', args[ 'zh-cn' ] or args[ 1 ] ) .. item( 'zh-tw', args[ 'zh-tw' ] or args[ 2 ] ) .. item( 'zh-hk', ( args.closehkinherit and '' ) or args[ 'zh-hk' ] or args[ 3 ] ) .. '}-' end function p.main( f ) local args = f if f == mw.getCurrentFrame() then args = f:getParent().args end return p.call( args ) end p.fallbackList = { [ 'zh' ] = { 'zh', 'zh-hans', 'zh-hant', 'zh-cn', 'zh-tw', 'zh-hk', 'zh-sg', 'zh-mo', 'zh-my' }, [ 'zh-hans' ] = { 'zh-hans', 'zh-cn', 'zh-sg', 'zh-my', 'zh' }, [ 'zh-hant' ] = { 'zh-hant', 'zh-tw', 'zh-hk', 'zh-mo', 'zh' }, [ 'zh-cn' ] = { 'zh-cn', 'zh-hans', 'zh-sg', 'zh-my', 'zh' }, [ 'zh-tw' ] = { 'zh-tw', 'zh-hant', 'zh-hk', 'zh-mo', 'zh' }, [ 'zh-hk' ] = { 'zh-hk', 'zh-hant', 'zh-tw', 'zh-mo', 'zh' }, [ 'zh-sg' ] = { 'zh-sg', 'zh-hans', 'zh-cn', 'zh-my', 'zh' }, [ 'zh-mo' ] = { 'zh-mo', 'zh-hant', 'zh-hk', 'zh-tw', 'zh' }, [ 'zh-my' ] = { 'zh-my', 'zh-hans', 'zh-cn', 'zh-sg', 'zh' } } function p.lan( args ) local variants = {} local codes = { 'zh', 'zh-hans', 'zh-hant', 'zh-cn', 'zh-tw', 'zh-hk', 'zh-sg', 'zh-mo', 'zh-my' } for _, code in ipairs(codes) do if args[code] then table.insert(variants, item(code, args[code])) end end if #variants == 0 then return '' end return '-{' .. table.concat(variants, '') .. '}-' end return p
该页面嵌入的页面:
模块:Documentation
(
查看源代码
)
模块:Documentation/styles.css
(
查看源代码
)
模块:ProcessArgs
(
查看源代码
)
模块:STConversion
(
查看源代码
)
模块:STConversion/doc
(
查看源代码
)
模块:Static
(
查看源代码
)
模块:TSLoader
(
查看源代码
)
返回
模块:STConversion
。
查看“︁模块:STConversion”︁的源代码
来自星露谷物语扩展百科