Content deleted Content added
No edit summary |
|||
Line 21:
local i18n = require("Module:Adjacent stations/i18n")
local error_messages = {
type_not_in_module = 'Type "%s" for line "%s" not in [[Module:Adjacent stations/%s]]',
}
local function getData(system, verify)
if verify then
Line 552 ⟶ 557:
local line_type = args[3] or args.type
if line_type then
line_type = data.aliases and
if line.types then
if line.types[line_type] then
line_type = line.types[line_type]
end
error(string.format(error_messages.type_not_in_module, line_type, line_name, system))
end
icon_format = line_type['icon format'] or data['type icon format']
|