Module:Adjacent stations/i18n

来自红砖维基
zhwikipedia>Xiplus-abot2020年8月17日 (一) 04:05的版本 (已更改“Module:Adjacent stations/i18n”的保护等级:高風險模板:25579引用<!-- 機器人3 -->([编辑=仅允许模板编辑员和管理员](无限期)[移动=仅允许模板编辑员和管理员](无限期)))
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

可在Module:Adjacent stations/i18n/doc创建此模块的帮助文档

local p = {}

p = {
	['zh-CN'] = {
		['preceding'] = function(s)
			return s and '上一' .. s
		end,
		['following'] = function(s)
			return s and '下一' .. s
		end,
		['stop_noun'] = '站',
		['nonstop_past'] = function(s)
			return s and s .. '过去不在此车站停车'
		end,
		['nonstop_present'] = function(s)
			return s and s .. '不在此车站停车'
		end,
		['comma'] = function(s)
			return s and ', ' .. s
		end,
		['or'] = function(s)
			return s and '或' .. s
		end,
		['via-first'] = false, -- If the «via» text comes before termini, change to «true»
		['via'] = function(s)
			return s and '經' .. 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 '往' .. s
		end,
		['through'] = function(s)
			return s and '直通至' .. s
		end,
		['reverse'] = '折返站',
		['oneway'] = '单向运行',
		['terminus'] = '终点站',
		['transfer'] = function(s)
			return s and '于' .. 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
	}
}

return p