Modul:Adjacent stations: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k test
k test
Baris 3:
local p = {}
 
local lang = 'enid-GBID' -- local default language
 
-- Below these comments: Internationalization table
Baris 20:
-- • Remove any unnecessary translations.
 
local i18n = require("Module:Adjacent stations/i18n"){
['id-ID'] = {
-- ['word_space'] = ' ',
['preceding'] = function(var)
return 'Stasiun sebelumnya' .. var
end,
['following'] = function(var)
return 'Stasiun berikutnya' .. var
end,
['stop_noun'] = ' ',
['nonstop_past'] = function(var)
return var .. 'dahulunya berjalan langsung'
end,
['nonstop_present'] = function(var)
return var .. 'berjalan langsung'
end,
['comma'] = function(var)
return ', ' .. var
end,
['or'] = function(var)
return ' or ' .. var
end,
['via-first'] = false, -- If the «via» text comes before termini, change to «true»
['via'] = function(var)
return ' via ' .. var
end,
['comma-format'] = ',%s+',
['or-format'] = '%s+or%s+',
['via-format'] = '%s+via%s+(.+)$', -- first match is station name
['towards'] = function(var)
return 'menuju ' .. var
end,
['through'] = function(var)
return 'lewat ' .. var
end,
['reverse'] = 'Melawan arus',
['oneway'] = 'Operasi satu arah',
['terminus'] = 'Terminus',
['error_duplicate'] = function(var)
return 'Same row number used multiple times for ' .. var
end,
['error_format'] = 'Station format table missing in data page',
['error_line'] = 'Lines table missing in data module',
['error_missing'] = function(var)
return '"' .. (var or '') .. '" is missing from the data page'
end,
['error_unknown'] = function(var)
return 'Unknown system or line "' .. (var or '') .. '"'
end
},
}
 
local function getData(system, verify)
if verify then