Pembicaraan Modul:Adjacent stations

Permintaan penyuntingan halaman dilindungi pada 19 September 2024

sunting

Mohon ubah modul dan kode ini agar dapat membuat lin lingkar di mana keterangan terminus kiri dan kanan tidak ditampilkan kecuali sengaja dituliskan di halaman masing-masing stasiun, mengikuti circular Wikipedia Bahasa Inggris.

if Type then

if Type['color'] then -- line color is used as background if there is no background color in the line type table background_color = Type['background color'] or line['color'] color = Type['color'] elseif Type['background color'] then background_color = Type['background color'] color = line['color'] or default['color'] or '' else background_color = line['background color'] color = line['color'] or default['color'] or ''

end else background_color = line['background color'] color = line['color'] or default['color'] or '' end
+
if Type then

if Type['color'] then -- line color is used as background if there is no background color in the line type table background_color = Type['background color'] or line['color'] color = Type['color'] elseif Type['background color'] then background_color = Type['background color'] color = line['color'] or default['color'] or '' else background_color = line['background color'] color = line['color'] or default['color'] or ''

end if Type['circular'] then circular = Type['circular'] end else background_color = line['background color'] color = line['color'] or default['color'] or '' circular = line['circular'] end
local color, background_color

local Type = line['types'] and line['types'][typeN] -- get the line type table local circular if Type then if Type['circular'] then circular = Type['circular'] end else circular = line['circular'] end if Type then if Type['color'] then -- line color is used as background if there is no background color in the line type table background_color = Type['background color'] or line['color'] color = Type['color'] elseif Type['background color'] then background_color = Type['background color'] color = line['color'] or default['color'] or '' else background_color = line['background color'] color = line['color'] or default['color'] or '' end else background_color = line['background color'] color = line['color'] or default['color'] or ''

end
+
local color, background_color

local Type = line['types'] and line['types'][typeN] -- get the line type table if Type then if Type['color'] then -- line color is used as background if there is no background color in the line type table background_color = Type['background color'] or line['color'] color = Type['color'] elseif Type['background color'] then background_color = Type['background color'] color = line['color'] or default['color'] or '' else background_color = line['background color'] color = line['color'] or default['color'] or '' end else background_color = line['background color'] color = line['color'] or default['color'] or ''

end

Kode ini belum lengkap, mohon bantuannya untuk melengkapi dengan referensi kode bahasa Inggris.Mtlh01p (bicara) 19 September 2024 06.49 (UTC)Balas

Kembali ke halaman "Adjacent stations".