Jump to content

User:Stage7/Japan adjacent railway stations

From Wikipedia, the free encyclopedia
{{{kanjistation}}}
{{{kanastation}}}
{{{kanjistationleft}}}  
{{{kanjistationright}}}
 
[[{{{stationleft}}} Station|{{{stationleft}}}]]
{{{station}}}
[[{{{stationright}}} Station|{{{stationright}}}]]
 
{{User:Stage7/Japan adjacent railway stations|
kanjistation      = |
kanastation       = |
station           = |
linecolor         = |
trackcolor        = |
kanjistationleft  = |
stationleft       = |
kanjistationright = |
stationright      = |
}}

Example:

{{User:Stage7/Japan adjacent railway stations|
kanjistation      = 品川 |
kanastation       = しながわ |
station           = Shinagawa |
linecolor         = 9ACD32 |
trackcolor        = 009517 |
kanjistationleft  = 大崎 |
stationleft       = Ōsaki |
kanjistationright = 田町 |
stationright      = Tamachi |
}}

Yamanote Line example:

品川
しながわ
大崎  
田町
 
Shinagawa
 

Keihin-Tōhoku Line example:

新橋
しんばし
有楽町  
浜松町
 
Shinbashi
 

To do list:

  • Arrows left/right in the track. Partially done. Needs conditionals (if station is line terminus, ...).
  • Changeable track colour. Done.
  • Ability to put kanji-rōmaji instead of rōmaji-only in stationleft/right, leaving kanjistationleft/right blank.
  • Ability to link adjacent stations to their Wikipedia articles. Partially done. Should keep black typography and no underline.
  • Center rōmaji station name. Dirty workaround with cell widths, but done.
  • Template loop (I guess it is because of the example, not a bug of mine). No-includes invoked this error. Solved.
  • Excesive line feed after the box. Done (still wondering how).
  • ...

Category:Japan railway line templates