首页
随机
登录
设置
关于NeuroWiki
免责声明
NeuroWiki
搜索
查看“Module:Lan”的源代码
←
Module:Lan
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} local merge p.fallbackList = { [ 'zh' ] = { 'zh', 'zh-hans', 'zh-hant', 'zh-cn', 'zh-tw', 'zh-hk' }, [ 'zh-hans' ] = { 'zh-hans', 'zh-cn', 'zh' }, [ 'zh-hant' ] = { 'zh-hant', 'zh-tw', 'zh-hk', 'zh' }, [ 'zh-cn' ] = { 'zh-cn', 'zh-hans', 'zh' }, [ 'zh-tw' ] = { 'zh-tw', 'zh-hant', 'zh-hk', 'zh' }, [ 'zh-hk' ] = { 'zh-hk', 'zh-hant', 'zh-tw', 'zh' } } function p.call( args ) local userLanguage = mw.getCurrentFrame():callParserFunction( 'int:module-lan-user-language' ) local fallback = p.fallbackList[ userLanguage ] if fallback == nil then fallback = p.fallbackList[ 'zh' ] end for _, langArgName in ipairs( fallback ) do if args[ langArgName ] ~= nil then return args[ langArgName ] end end return '' end function p.main() local f = mw.getCurrentFrame() if not merge then merge = require('Module:ProcessArgs').merge end local args = merge(true) return p.call( args ) end return p
该页面使用的模板:
Template:Documentation header
(
查看源代码
)
Template:T
(
查看源代码
)
Template:Template link
(
查看源代码
)
Template:Tl
(
查看源代码
)
Module:Lan/doc
(
查看源代码
)
返回
Module:Lan
。