User:AlisonW/Rail Icons

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Rail icons are complicated. The coding is mostly the same across icon developers and languages, but not always. These two pages try to consolidate the main available icons (it used to be one page but mediawiki breaks on trying to cope with them all at once!) Note that these pages and tables are not in the main namespace due to their reliance on CSS, thus making them not browser-independent (a requirement for main namespace articles).


0: Legend - how to decode colours

Page 1

1: Straight tracks
2: Stations and stops
3: Cross-platform interchange
5: Other Elevated
6: Cross junctions and Flyovers

Page 2

7: 2-way branches and junctions
8: 3-way branches and junctions
9: Curves
10: Branching symbols
11: Bridges and Tunnels
12: Line endings and sidings
13: Other symbols (borders, level crossings, etc)
14: Berlin S-Bahn


16: Hub overlays

How this works

Each entry line contains links to the possible icons in that series. Because many of the 'possible' codes may not actually exist - either because they are not logical/required or because no-one has yet needed to create them - this would cause lots of 'missing image' errors. CSS is therefore used to suppress those icons which do not exist, which is why these pages won't work effectively on non- CSS-capable browsers or for screen readers. It is, however, far more complete than the main manually-maintained version.

The purpose of these tables is to 'find' what icons already exist within WP, and to make it easier for editors to locate the simplest icon for their purpose. Because of this 'consolidation' approach you will find some icons are actually "wrong" according to some editors as their codes might be in error in some way. Similarly, it is often easier to overlay one simple icon with another simple icon to produce the required complexity, rather than create another icon from scratch. This also means that the tables shouldn't be used as a guide to what needs creating; just because there is a blank position it doesn't have to be filled!

It helps a lot to use this table on a wide-screen display! Multi-line-types in a single icon are being moved to their own tables due to the extension of the number of prefixes (eg 'h')


Note that the number of metals (tracks) is not normally signified in the graphic. Unless stated, naming is based on the vertical/primary route.

dark colour means a currently open line / facility
light colour means either a closed line / route / facility or one under construction / planned
red colour indicates heavy rail or freight line
blue colour indicates light rail, metro or tram line


t means 'tunnel'
h means high / elevated
u means 'unter'/'underground', eg metro and light rail
v indicates close parallel lines
Full list of prefixes in table below


l normally means to left / links / gauche
r normally means to right / rechts / droit
a normally means at start / anfang /
e normally means at end / ende / fin
f normally means forward (down) / fahrtrichtung
g normally means backward (up) / gegenrichtung
o normally means over /
u normally means under / unter
q normally means horizontal (replacing 'H' prefixes)
other codes are built up from joining these together
Prefix Example Line Type Feature Note
(none) BSicon BHF.svg Open Heavy Open
xp BSicon pBHF.svg Open Heavy Open Express service; doesn't stop here
x BSicon xBHF.svg Part open Heavy Open
e BSicon eBHF.svg Open Heavy Closed
ex BSicon exBHF.svg Closed Heavy Closed
t BSicon tABZgl.svg Open Heavy Open Tunnel
et BSicon etABZgl.svg Open Heavy Closed Tunnel
xt BSicon xtTBHF.svg Open Heavy Closed Tunnel
ext BSicon extKRZ.svg Closed Heavy Closed Tunnel
h BSicon hSTR.svg Open Heavy Open Elevated
eh BSicon ehKRZ.svg Open Heavy Closed Elevated
xh BSicon xhKRZ.svg Open Heavy Closed Elevated
exh BSicon exhKRZ.svg Closed Heavy Closed Elevated
v BSicon vSTR.svg Open Paired Open
tv BSicon tvSTR.svg Open Paired Open Tunnel
ev 20px Open Paired Closed
ve BSicon veBHF-BHF.svg Open Paired Open & Closed
vx BSicon vxBHF-BHF.svg Open Paired Open & Closed
vex 20px Open Paired Open & Closed
xev 20px Closed & Open Paired Closed & Open
exv 20px Closed Paired Closed
u BSicon uABZgl.svg Open Metro Open
ux 20px Part Open Metro Open
ue BSicon ueABZgl.svg Open Metro Closed
uex BSicon uexABZgl.svg Closed Metro Closed
ut BSicon utABZgl.svg Open Metro Tunnel
uxt BSicon uxtABZgl.svg Part Open Metro Tunnel
uet BSicon uetABZgl.svg Open Metro Tunnel
uext BSicon uextHST.svg Closed Metro Tunnel
uh BSicon uhKRZt.svg Open Metro Elevated
uxh BSicon uxhKRZt.svg Part Open Metro Elevated
ueh BSicon uehKRZt.svg Open Metro Elevated
uexh BSicon uexhKRZt.svg Closed Metro Elevated
Special IDs which have a partial code as part of the base ID are highlighted

Colour scheme

  • Existing lines in current use
  #be2d2c for heavy rail BSicon BHF.svg
  #003399 for metro / light rail BSicon uBHF.svg
  • Lines not in current use (planned or closed)
  #d77f7e for heavy rail BSicon exBHF.svg
  #6281c0 for metro / light rail BSicon uexBHF.svg
  • Other features
  #80a080 for elevated BSicon hSTR.svg, bridge BSicon BRÜCKE.svg or tunnel portal BSicon tSTRa.svg
  #034ea2 for accessible station BSicon ACC.svg
  #00a030 for Berlin S-bahn BSicon SBHF.svg
  #000000 for cross-platform interchange border BSicon XPLTq.svg
  #b3b3b3 for cross-platform interchange strap BSicon XPLTq.svg
  #007cc3 for water BSicon WASSER.svg
  #000000 for other features in use (such as BSicon FLUG.svg, BSicon ENDEa.svg)
  #aaaaaa for other features not in use (such as BSicon exFLUG.svg, BSicon exENDEa.svg)