模組討論:Adjacent stations/testcases

线路终点站链接

函数 {{ltl}}效果 {{ltl/sandbox}}效果
{{ltl |system=testcases/Test module |line=balabala}}
{{ltl |system=testcases/Test module |line=line with no terminus}}
{{ltl |system=testcases/Test module |line=line with only left terminus |side=l}} Tiyu Xilu Tiyu Xilu
{{ltl |system=testcases/Test module |line=line with only left terminus |side=r}}
{{ltl |system=testcases/Test module |line=line with only right terminus |side=l}}
{{ltl |system=testcases/Test module |line=line with only right terminus |side=r}} Tiaodeng Tiaodeng
{{ltl |system=testcases/Test module |line=line with both terminus |side=l}} Tiyu Xilu Tiyu Xilu
{{ltl |system=testcases/Test module |line=line with both terminus |side=r}} Tiaodeng Tiaodeng
{{ltl |system=testcases/Test module |line=terminus in station format |side=l}} Auditorium Auditorium
{{ltl |system=testcases/Test module |line=terminus in station format |side=r}} Chunhua Ave. Chunhua Avenue
{{ltl |system=testcases/Test module |line=terminus with array |side=l}} Airport NorthTianhe Coach Terminal Airport North or Tianhe Coach Terminal
{{ltl |system=testcases/Test module |line=terminus with array |side=r}} Airport SouthZhujiang New TownAuditorium Airport South, Zhujiang New Town or Auditorium
{{ltl |system=testcases/Test module |line=line with both terminus and types |side=l}} Tiyu Xilu Tiyu Xilu
{{ltl |system=testcases/Test module |line=line with both terminus and types |side=r}} Tiaodeng Tiaodeng
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=balabala |side=l}} Tiyu Xilu (should fallback to Tiyu Xilu)
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=balabala |side=r}} Tiaodeng (should fallback to Tiaodeng)
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type with no terminus |side=l}} Tiyu Xilu (should fallback to Tiyu Xilu)
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type with no terminus |side=r}} Tiaodeng (should fallback to Tiaodeng)
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type with only left terminus |side=l}} Nanping Nanping
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type with only left terminus |side=r}} Tiaodeng (should fallback to Tiaodeng)
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type with both terminus |side=l}} Nanping Nanping
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type with both terminus |side=r}} Tiaodeng Tiaodeng
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type of circular line |side=l}} Tiaodeng Tiaodeng
{{ltl |system=testcases/Test module |line=line with both terminus and types |type=type of circular line |side=r}} Tangjiatuo Tangjiatuo
{{ltl |system=testcases/Test module |line=circular line |side=l}} Counter-clockwise Counter-clockwise
{{ltl |system=testcases/Test module |line=circular line |side=r}} Clockwise Clockwise
{{ltl |system=testcases/Test module |line=circular line |type=type of circular line |side=l}} Tiaodeng Tiaodeng
{{ltl |system=testcases/Test module |line=circular line |type=type of circular line |side=r}} Tangjiatuo Tangjiatuo
{{ltl |system=testcases/Test module |line=circular line |type=terminus with array |side=l}} Airport NorthTianhe Coach Terminal Airport North or Tianhe Coach Terminal
{{ltl |system=testcases/Test module |line=circular line |type=terminus with array |side=r}} Airport SouthZhujiang New TownAuditorium Airport South, Zhujiang New Town or Auditorium

icon

167项测试失败。

test_01_icon
Test Live Sandbox Expected
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module}} MTR
 N {{#invoke:Adjacent stations|icon|testcases/Test module}} MTR
 Y {{#invoke:Adjacent stations|icon|system=San Diego Trolley}}
 Y {{#invoke:Adjacent stations|icon|San Diego Trolley}}
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with title}}  
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with title}}  
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=type with title}}  
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|type with title}}  
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=icon type}}  
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|icon type}}  
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon with type|type=type with icon}}  
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon with type|type with icon}}  
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon with type|type=type without icon}} MTR
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon with type|type without icon}} MTR
 N {{#invoke:Adjacent stations|icon|Antwerp tram|1}}  
 N {{#invoke:Adjacent stations|icon|Antwerp tram|line 1}}  
 N {{#invoke:Adjacent stations|icon|São Paulo Metropolitan Trains|13-AE}}  
 N {{#invoke:Adjacent stations|icon|Taiwan High Speed Rail}} Taiwan High Speed Rail
 Y {{#invoke:Adjacent stations|icon|Brampton Transit|Brampton Transit}}
test_02_icon_format
Test Live Sandbox Expected
 N {{#invoke:Adjacent stations|icon|system=Brussels Metro|line=1}} 1
 N {{#invoke:Adjacent stations|icon|Brussels Metro|1}} 1
 N {{#invoke:Adjacent stations|icon|system=Vorarlberg S-Bahn|line=1}} S1
 N {{#invoke:Adjacent stations|icon|Vorarlberg S-Bahn|1}} S1
 N {{#invoke:Adjacent stations|icon|system=MTR|line=Island}}     
 N {{#invoke:Adjacent stations|icon|MTR|Island}}     
 N {{#invoke:Adjacent stations|icon|system=MTR|line=isl}}     
 N {{#invoke:Adjacent stations|icon|MTR|isl}}     
 N {{#invoke:Adjacent stations|icon|system=Shenzhen Metro|line=1}} 1
 N {{#invoke:Adjacent stations|icon|Shenzhen Metro|1}} 1
 N {{#invoke:Adjacent stations|icon|system=MTR Light Rail|line=505}} 505
 N {{#invoke:Adjacent stations|icon|MTR Light Rail|505}} 505
test_03_icon_format_lines
Test Live Sandbox Expected
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=link line}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|link line}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=route line}} 501 Züm Queen
 N {{#invoke:Adjacent stations|icon|testcases/Test module|route line}} 501 Züm Queen
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=croute line}} 501 Züm Queen
 N {{#invoke:Adjacent stations|icon|testcases/Test module|croute line}} 501 Züm Queen
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=xroute line}} 501 Züm Queen
 N {{#invoke:Adjacent stations|icon|testcases/Test module|xroute line}} 501 Züm Queen
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=legend line}}
 N {{#invoke:Adjacent stations|icon|testcases/Test module|legend line}}
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=link line with linked title and short name}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|link line with linked title and short name}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=route line with linked title and short name}} route line linked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|route line with linked title and short name}} route line linked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=croute line with linked title and short name}} croute line linked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|croute line with linked title and short name}} croute line linked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=xroute line with linked title and short name}} xroute line linked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|xroute line with linked title and short name}} xroute line linked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=legend line with linked title and short name}}
 N {{#invoke:Adjacent stations|icon|testcases/Test module|legend line with linked title and short name}}
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=link line with unlinked title and short name}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|link line with unlinked title and short name}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=route line with unlinked title and short name}} route line unlinked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|route line with unlinked title and short name}} route line unlinked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=croute line with unlinked title and short name}} croute line unlinked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|croute line with unlinked title and short name}} croute line unlinked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=xroute line with unlinked title and short name}} xroute line unlinked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|xroute line with unlinked title and short name}} xroute line unlinked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=legend line with unlinked title and short name}}
  501 Züm Queen
 N {{#invoke:Adjacent stations|icon|testcases/Test module|legend line with unlinked title and short name}}
  501 Züm Queen
test_04_icon_format_types
Test Live Sandbox Expected
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=link type}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|link type}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=route type}} route type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|route type}} route type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=croute type}} croute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|croute type}} croute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=xroute type}} xroute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|xroute type}} xroute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=legend type}}
  linked line title – legend title
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|legend type}}
  linked line title – legend title
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=link type with linked title and short name}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|link type with linked title and short name}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=route type with linked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|route type with linked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=croute type with linked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|croute type with linked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=xroute type with linked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|xroute type with linked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=legend type with linked title and short name}}
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|legend type with linked title and short name}}
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=link type with unlinked title and short name}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|link type with unlinked title and short name}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=route type with unlinked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|route type with unlinked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=croute type with unlinked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|croute type with unlinked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=xroute type with unlinked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|xroute type with unlinked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and type|type=legend type with unlinked title and short name}}
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and type|legend type with unlinked title and short name}}
test_05_errors_maybe
Test Live Sandbox Expected
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=link type}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|link type}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=route type}} route type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|route type}} route type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=croute type}} croute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|croute type}} croute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=xroute type}} xroute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|xroute type}} xroute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=legend type}}
  Taoyuan Airport MRT – legend title
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|legend type}}
  Taoyuan Airport MRT – legend title
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=link type with linked title and short name}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|link type with linked title and short name}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=route type with linked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|route type with linked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=croute type with linked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|croute type with linked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=xroute type with linked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|xroute type with linked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=legend type with linked title and short name}}
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|legend type with linked title and short name}}
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=link type with unlinked title and short name}}     
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|link type with unlinked title and short name}}     
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=route type with unlinked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|route type with unlinked title and short name}} route type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=croute type with unlinked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|croute type with unlinked title and short name}} croute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=xroute type with unlinked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|xroute type with unlinked title and short name}} xroute type
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=legend type with unlinked title and short name}}
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|legend type with unlinked title and short name}}
test_06_icon_with_name
Test Live Sandbox Expected
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|name=y}} MTR VR Group
 N {{#invoke:Adjacent stations|icon|testcases/Test module|name=y}} MTR VR Group
 N {{#invoke:Adjacent stations|icon|system=San Diego Trolley|name=y}} San Diego Trolley
 N {{#invoke:Adjacent stations|icon|San Diego Trolley|name=y}} San Diego Trolley
 N {{#invoke:Adjacent stations|icon|system=MTR|line=Island|name=y}}      Island line
 N {{#invoke:Adjacent stations|icon|MTR|Island|name=y}}      Island line
 N {{#invoke:Adjacent stations|icon|system=MTR|line=isl|name=y}}      Island line
 N {{#invoke:Adjacent stations|icon|MTR|isl|name=y}}      Island line
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with title|name=y}}   Green Line
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with title|name=y}}   Green Line
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with linked title and shortname|name=y}}   linked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with linked title and shortname|name=y}}   linked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with unlinked title and shortname|name=y}}   unlinked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with unlinked title and shortname|name=y}}   unlinked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title and with shortname|name=y}}   short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title and with shortname|name=y}}   short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title|name=y}}   VR Group
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title|name=y}}   VR Group
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon and with title|name=y}} MTR Green Line
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon and with title|name=y}} MTR Green Line
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon and with linked title and shortname|name=y}} MTR linked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon and with linked title and shortname|name=y}} MTR linked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon and with unlinked title and shortname|name=y}} MTR unlinked short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon and with unlinked title and shortname|name=y}} MTR unlinked short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon and title and with shortname|name=y}} MTR short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon and title and with shortname|name=y}} MTR short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without icon title and shortname|name=y}} MTR VR Group
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without icon title and shortname|name=y}} MTR VR Group
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=type with title|name=y}}   Taoyuan Airport MRT – type with title
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|type with title|name=y}}   Taoyuan Airport MRT – type with title
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=type without title|name=y}}   Taoyuan Airport MRT
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|type without title|name=y}}   Taoyuan Airport MRT
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=type with linked title and shortname|name=y}}   Taoyuan Airport MRTlinked type short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|type with linked title and shortname|name=y}}   Taoyuan Airport MRTlinked type short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=type with unlinked title and shortname|name=y}}   Taoyuan Airport MRT – unlinked type short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|type with unlinked title and shortname|name=y}}   Taoyuan Airport MRT – unlinked type short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line with type|type=line without title and with shortname|name=y}}   Taoyuan Airport MRT – type short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line with type|line without title and with shortname|name=y}}   Taoyuan Airport MRT – type short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=type with title|name=y}}   type with title
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|type with title|name=y}}   type with title
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=type without title|name=y}}   VR Group
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|type without title|name=y}}   VR Group
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=type with linked title and shortname|name=y}}   linked type short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|type with linked title and shortname|name=y}}   linked type short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=type with unlinked title and shortname|name=y}}   unlinked type short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|type with unlinked title and shortname|name=y}}   unlinked type short name
 N {{#invoke:Adjacent stations|icon|system=testcases/Test module|line=line without title with type|type=line without title and with shortname|name=y}}   type short name
 N {{#invoke:Adjacent stations|icon|testcases/Test module|line without title with type|line without title and with shortname|name=y}}   type short name
test_07_errors
Test Live Sandbox Expected
 Y {{#invoke:Adjacent stations/sandbox|icon|system=Taipei|R}}
 N {{#invoke:Adjacent stations/sandbox|icon|system=testcases/Test module|line=line with type|type=222222}} Lua error: Type "22222" for line "line with type" not in Module:Adjacent stations/testcases/Test module.
返回到“Adjacent stations/testcases”页面。