模块:Adjacent stations/i18n:修订间差异
小 已更改“Module:Adjacent stations/i18n”的保护等级:高風險模板:25579引用<!-- 機器人3 -->([编辑=仅允许模板编辑员和管理员](无限期)[移动=仅允许模板编辑员和管理员](无限期)) |
小 导入1个版本 |
||
| (未显示同一用户的1个中间版本) | |||
| 第2行: | 第2行: | ||
p = { | p = { | ||
[' | ['en-GB'] = { | ||
['preceding'] = function(s) | ['preceding'] = function(s) | ||
return s and ' | return s and 'Preceding ' .. s | ||
end, | end, | ||
['following'] = function(s) | ['following'] = function(s) | ||
return s and ' | return s and 'Following ' .. s | ||
end, | end, | ||
['stop_noun'] = ' | ['stop_noun'] = 'station', | ||
['nonstop_past'] = function(s) | ['nonstop_past'] = function(s) | ||
return s and s .. ' | return s and s .. ' did not stop here' | ||
end, | end, | ||
['nonstop_present'] = function(s) | ['nonstop_present'] = function(s) | ||
return s and s .. ' | return s and s .. ' does not stop here' | ||
end, | end, | ||
['comma'] = function(s) | ['comma'] = function(s) | ||
| 第20行: | 第20行: | ||
end, | end, | ||
['or'] = function(s) | ['or'] = function(s) | ||
return s and ' | return s and ' or ' .. s | ||
end, | end, | ||
['via-first'] = false, -- If the «via» text comes before termini, change to «true» | ['via-first'] = false, -- If the «via» text comes before termini, change to «true» | ||
['via'] = function(s) | ['via'] = function(s) | ||
return s and ' | return s and ' via ' .. s | ||
end, | end, | ||
['comma-format'] = ',%s+', | ['comma-format'] = ',%s+', | ||
| 第30行: | 第30行: | ||
['via-format'] = '%s+via%s+(.+)$', -- first match is station name | ['via-format'] = '%s+via%s+(.+)$', -- first match is station name | ||
['towards'] = function(s) | ['towards'] = function(s) | ||
return s and ' | return s and 'towards ' .. s | ||
end, | end, | ||
['through'] = function(s) | ['through'] = function(s) | ||
return s and ' | return s and 'through to ' .. s | ||
end, | end, | ||
['reverse'] = ' | ['reverse'] = 'Reverses direction', | ||
['oneway'] = ' | ['oneway'] = 'One-way operation', | ||
['terminus'] = ' | ['terminus'] = 'Terminus', | ||
['transfer'] = function(s) | ['transfer'] = function(s) | ||
return s and ' | return s and 'transfer at ' .. s | ||
end, | end, | ||
['error_duplicate'] = function(s) | ['error_duplicate'] = function(s) | ||
| 第54行: | 第54行: | ||
} | } | ||
} | } | ||
p['en-US'] = mw.clone(p['en-GB']) | |||
p['en-US']['towards'] = function(s) return s and 'toward ' .. s end | |||
return p | return p | ||
2022年10月26日 (三) 02:40的最新版本
此模块的文档可以在模块:Adjacent stations/i18n/doc创建
local p = {}
p = {
['en-GB'] = {
['preceding'] = function(s)
return s and 'Preceding ' .. s
end,
['following'] = function(s)
return s and 'Following ' .. s
end,
['stop_noun'] = 'station',
['nonstop_past'] = function(s)
return s and s .. ' did not stop here'
end,
['nonstop_present'] = function(s)
return s and s .. ' does not stop here'
end,
['comma'] = function(s)
return s and ', ' .. s
end,
['or'] = function(s)
return s and ' or ' .. s
end,
['via-first'] = false, -- If the «via» text comes before termini, change to «true»
['via'] = function(s)
return s and ' via ' .. s
end,
['comma-format'] = ',%s+',
['or-format'] = '%s+or%s+',
['via-format'] = '%s+via%s+(.+)$', -- first match is station name
['towards'] = function(s)
return s and 'towards ' .. s
end,
['through'] = function(s)
return s and 'through to ' .. s
end,
['reverse'] = 'Reverses direction',
['oneway'] = 'One-way operation',
['terminus'] = 'Terminus',
['transfer'] = function(s)
return s and 'transfer at ' .. s
end,
['error_duplicate'] = function(s)
return s and 'Same row number used multiple times for ' .. s
end,
['error_format'] = 'Station format table missing in data page',
['error_line'] = 'Lines table missing in data module',
['error_missing'] = function(s)
return s and '"' .. (s or '') .. '" is missing from the data page'
end,
['error_unknown'] = function(s)
return s and 'Unknown line "' .. (s or '') .. '"'
end
}
}
p['en-US'] = mw.clone(p['en-GB'])
p['en-US']['towards'] = function(s) return s and 'toward ' .. s end
return p