Wikipedia:Route diagram template

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Shortcuts:
WP:RDT
WP:TRAIL
WP:ROUTE
Other such lists need to be integrated into that catalog.

Route diagram templates simplify the writing of Wiki tables and provide a uniform layout primarily to railway route-map infoboxes for railway lines, waterways and other modes of transport. A grid of square icons is used to draw a route diagram, and there are over 3000 icons to identify features including railway track BSicon STR.svg, railway stations BSicon BHF.svg, bridges BSicon BRÜCKE.svg, rivers BSicon WBRÜCKE.svg, tunnels BSicon TUNNEL1.svg, junctions BSicon ABZld.svg and interchanges BSicon vBHF.svg.

 v  d  e Demonstration
KBHFa
London Great Britain
WTUNNEL1
Channel Tunnel
BSicon .svg ABZld STRlg
France Paris
BSicon .svg BHF BHF
Brussels Belgium
Portugal Lisbon
KBHFa STR BHF
Amsterdam Netherlands
Spain Madrid
BHF STR STR
ABZfg KRZ4d ABZlg
TUNNELa BHF STR
Berne Switzerland
Italy Rome
Vienna Austria
Hungary Budapest
ÜWo+l clo
STR
Berlin Germany
Romania Bucharest
BHF STR tBHF
Copenhagen Denmark
Ukraine Kiev
TUNNELe
Warsaw Poland
ÜWgo+l
ABZrd
Sweden Stockholm
STR KBHFe KBHFe
Oslo Norway
STR BOOT BSicon .svg
Baltic Sea
STR KBHFa BSicon .svg
Helsinki Finland
BS2l BS2r BSicon .svg
BHF BSicon .svg
Moscow Russia
BHF BSicon .svg
Astana Kazakhstan
BHF BSicon .svg
Beijing China
BHF BSicon .svg
Pyongyang Joseon
BHF BSicon .svg
Seoul Korea
TRAJEKT BSicon .svg
KBHFe BSicon .svg
Tokyo Japan

Contents

[edit] Templates

The templates may be considered to be in two classes:

General templates defining the product as a route map,
Detailing templates carrying information row by row into the route map.

To simplify the article the word "Template", which occurred with a frightening frequency, is being omitted from manifest lists of templates. Links which merely referred back to this article are being cut. [*] shows such a cut. Where possible "icon" is used rather than "image", "pictogram" or "symbol", "map" is used instead of "diagram" and in what follows "map" means "route map".

[edit] Table margin style-defining templates

railway line header
BHF
text placeholder placeholder
railway line header2
BHF
text placeholder placeholder

The opening of a "stand-alone" map (i.e. without transcluded into other template such as infobox.) They do not call for the table themselves, so follow the command {| to call for a Wiki table. These templates also include the parameter {{{1}}} for extra CSS styling and {{{collapse}}} to define the collapse state of the table.

Railway line header : Formatting for master table, right-aligned with collapsible button
Railway line header (center) : Formatting for master table centred in page with collapsible button
Railway line header2 : Formatting for master table, right-aligned, non-collapsible
Railway line header2 (center) : Formatting for master table, centred in page, non-collapsible

[edit] Table title templates

The text title of the table, use them right below the railway line header. They are not necessary especially when included in the infobox. But editor has the option to set the colors for both title background and font, thus indicate the theme color of the line.

BS-header / bs-header : Table header (black on red by default, with the optional {{navbar}} links in the header to the route template)
UKrail-header : Table header (variable header background colour, black text)
UKrail-header2 : Table header (variable header background colour, white text)

[edit] Railway company information template

The optional provision of the details of a railway company

Infobox rail line : Infobox line data
BS-Infobox : Stripped down Infobox line data in English
Infobox UK railway : Provision of Railway Company Information (i.e. as in {{Glasgow, Paisley, Kilmarnock and Ayr Railway}})

[edit] Map table templates

These templates define the suitable styling for the route map. They are the must for jointing the row templates seamlessly.

BS-table / bs-table : Table header with link to legend page
BS-table1 / bs-table1 : Table header without link to legend page
BS-table3 / bs-table3 : For transclusion into other infobox such as {{Infobox Public transit‎}} or {{Infobox rail line}}

[edit] BS row templates

Template:BS
BSicon .svg
Dist./Time Text Note 1 Note 2
BHF
0km/0min Bahnhof "station" (in German)

The real meat of designing the map. Use these templates with icon images continuously on every new row to construct the route system. The simplest is {{BS}} which describes its stretch of track (German = Bahnstrecke) with five basic parameters:

{{BS| ID | Dist./Time | Text | Note 1 | Note 2 }}
1
2
3
4
5
1: ID = ID of the icon (For no icon to be shown leave blank or use "leer" [German for "empty"]).
2: Distance along track or traveling time from the starting point
3: Text, name of station or other feature - left-aligned at RHS of track space
4: Note 1 - Written after Name with a leading space in smaller characters
5: Note 2 - Written after Note 1 in the smaller characters but right-aligned
Designated parameters:
PX: Width of icon (e.g. PX=50px), 20px by default
bg: Use color name or HTML RGB hex code (with prefix #) to "highlight", to emphasize certain sections, transparent by default
O1 (Owe one not zero one): ID of an icon (if any) to overlay on the icon of Parameter 1.
tw: Width of the text column. This is especially required for joining the icons cohesively when the text length in the "normal" BS row template text column isn't wide enough to override the BS row collapsible sections.
Designated parameters
{{bs1|BHF||PX=40px|bg=#ccffff|O1=uSTRq|tw=500px}}

The template BS allowed drawing only a single vertical line of icons and other templates have been developed.

  • Names and notes may contain wikilinks.
  • Any of the fields Dist./Time, Name and Notes may also be empty.

[edit] Templates:BS"#" with "#" an integer from 2 to 9

{{BS}} / BS1 / bs1
{{BS2}} / bs2
{{BS3}} / bs3
{{BS4}} / bs4
{{BS5}} / bs5
{{BS6}} / bs6
{{BS7}} / bs7
{{BS8}} / bs8
{{BS9}} / bs9

Universal templates for a railwaystrip with as many icon IDs as the name shows, side by side, for more complicated railway tracks. When an empty space is wanted either put nothing between the appropriate "|"s or use the ID leer.

  • Example BS: {{BS|BHF|2,0|Name of town|remark 1|remark 2}}
  • becomes in BS2: {{BS2|BHF||2,0|Name of town|remark 1|remark 2}}

Usage: {{BS2|ID|ID|Dist./Time|Text|Note 1|Note 2}}

is similar to {{BS3|ID|ID|ID|Dist./Time|Text|Note 1|Note 2}}.

Each BS"#" template takes after its # of IDs four further parameters: Distance/Time, Text, Left-aligned Note, Right-aligned Note.

Parameters for BS"#":

Parameter 1~"#": IDs of the icons sequentially (defaults to 'leer' if blanked)
Parameter after the "#"th parameter case: Distance or Time
Parameter after Distance/Time case: Text (usually station name)
Parameter after the Text case: Note 1
Parameter after the Note 1 case: Note 2, right-aligned
Designated parameters:
PX: Width of icon (e.g. PX=50px), 20px by default
PX2, PX3, etc.: further definition of the width of the corresponding icon case. The parameter PX works as the global width or the individual width for the 1st icon.
bg: Use color name or HTML RGB hex code (with prefix #) to "highlight", to emphasize certain sections, transparent by default
O1, O2, O3, etc.: ID of an icon to overlay on the icon of the corresponding icon case.
tw: Width of the text column.
BHF BHF BHF BHF
{{BS4}}
BHF BHF
{{BS2}}
  • Different row templates can be used together in 1 map vertically. The simpliest way to do so is using odd number row templates or even number row templates jointly. The spanned column of all icons always aligns to center together horizontally, so the 3rd icon of {{bs5}} will connect to 4th icon of {{bs7}} vertically, for example. When joining odd and even number row templates, specialized icons such as BS2l BSicon BS2l.svg should be used, see branching icons catalog.

[edit] Template:BSkm

Usage: {{BSkm{{!}}km1{{!}}km2}}. This template can be used in place of the parameter 'km' (Distance), when two distances must be shown together, for example when a new range of distances starts. (The unusual {{!}} is needed because Wikisyntax uses | to separate both parameters and parts of a table.)

Applying this template will lengthen the height of row, thus causing the icons "break apart" from row to row. Use parameter PX to enlarge the icon size (> default width: 20px) on all rows to overtop the height of distance indicator.

[edit] Closing map table

Use |}s to close the map table. The exact quantity required to close is judged by at least 3 points. 1st for any collapsible sections. 2nd for the {{BS-table}}/{{BS-table1}}. 3rd for the call of table, {|. As the following example shows, extra notes or toolbox such as {{navbar}} can be written between the last 2 closing |}s.

  • Do not write the row templates and |}s continuously on a same row, as this is an unrecognizable format by Wiki table. Each of them should be written on separate row.

[edit] Example

Note: The code here produces the adjoining map. It does not mean to reflect the current situation.

Eurostar route map
KBHFa
0km / 0hour St. Pancras International Underground no-text.svg
eHST
Stratford International DLR no-text roundel.svg (opening 2010)
HST
37 / 0:15 Ebbsfleet International
exCONTr eABZlg BSicon .svg
Fawkham Junction (Arrow Blue Left 001.svg Chatham Main Line )
HST
90 / 0:30 Ashford International
TUNNELa
BSicon .svg tGRENZE BSicon .svg
GB-FR border (Channel Tunnel) Strait of Dover
TUNNELe
HST
0:54 Calais-Fréthun
BHF
1:20 Lille-Europe
BSicon .svg ABZlf STRlg
BSicon .svg STR GRENZE
France-Belgium border
STRrg ABZrf KBHFe
1:51 Bruxelles Midi/Brussel-Zuid Metro-brussels.svg
KBHFe ABZlf STRlg
492 / 2:15 Paris Gare du Nord
BSicon .svg STR KHSTe
2:33 Marne la Vallée-Chessy (Disneyland)
STRrg ABZrf BSicon .svg
KHSTe STR BSicon .svg
5:40 Avignon Centre
HST
6:27 Moûtiers (ski)
eHST
6:59 Aime la Plagne (ski, set down only)
KHSTe
7:17 Bourg Saint Maurice (ski)

Times shown are fastest timetabled journey from London St Pancras.

{| {{Railway line header}}
{{UKrail-header2|Eurostar route map|#27404E}}
{{BS-table}}
{{BS|KBHFa|0km / 0hour|[[St Pancras railway station|St. Pancras International]] [[File:Underground no-text.svg|10px]]}}
{{BS|eHST||[[Stratford International station|Stratford International]] [[File:DLR no-text roundel.svg|10px]] <small>(opening 2010)</small>}}
{{BS|HST|37 / 0:15|[[Ebbsfleet International railway station|Ebbsfleet International]]}}
{{BS3|exCONTr|eABZlg|||<small>[[Fawkham Junction]]</small>|{{RoutemapRoute|Licon=L|[[Chatham Main Line]]|enclosed=yes|}}|}}
{{BS|HST|90 / 0:30|[[Ashford International railway station|Ashford International]]}}
{{BS|TUNNELa}}
{{BS3||tGRENZE|||<small>[[United Kingdom|GB]]-[[France|FR]] border ([[Channel Tunnel]])</small>||[[Strait of Dover]]|bg=#558cd3}}
{{BS|TUNNELe}}
{{BS|HST|0:54|[[Gare de Calais-Fréthun|Calais-Fréthun]]}}
{{BS|BHF|1:20|[[Gare de Lille-Europe|Lille-Europe]]}}
{{BS3||ABZlf|STRlg|||}}
{{BS3||STR|GRENZE||<small>[[France]]-[[Belgium]] border</small>}}
{{BS3|STRrg|ABZrf|KBHFe|1:51|[[Brussels-South|Bruxelles Midi/Brussel-Zuid]] [[File:Metro-brussels.svg|10px]]}}
{{BS3|KBHFe|ABZlf|STRlg|492 / 2:15|[[Gare du Nord|Paris Gare du Nord]]}}
{{BS3||STR|KHSTe|2:33|[[Marne la Vallée-Chessy railway station|Marne la Vallée-Chessy]] <small>([[Disneyland Resort Paris|Disneyland]])</small>}}
{{BS3|STRrg|ABZrf||}}
{{BS3|KHSTe|STR||5:40|[[Avignon]] Centre}}
{{BS|HST|6:27|[[Moûtiers]] <small>(ski)</small>}}
{{BS|eHST|6:59|[[La Plagne|Aime la Plagne]] <small>(ski, set down only)</small>}}
{{BS|KHSTe|7:17|[[Bourg Saint Maurice]] <small>(ski)</small>}}
|}
Times shown are fastest timetabled journey from London St Pancras.
|}

[edit] Collapsible sections

It is possible to make sections of track description collapsible as if it were in a NavFrame. Template:Railway line header and the table header template (eg: Template:BS-header) are used as above.

Usually the diagram might look broken with the collapsible section that the icons slightly shift horizontally, this is because the hidden items within the collapsible section do not affect the width of the diagram when they are not being "shown", but automatically expanding the box width when shown. It is often desirable to explicitly increase the width of a non-collapsible BS row template by applying the parameter {{{tw}}} (for e.g. tw=270px) to define its text column width to override the width of the widest "shown" collapsible section. The {{{tw}}} only need to be input once per diagram in one of the non-collapsible BS row template. When more than 1 {{{tw}}} entry exists, the widest will be picked.

[edit] Map table templates with collapsible section included

Template:BS-table/WithCollapsibles / bs-table/wc  : Table header with link to legend, substituting Template:BS-table
Template:BS-table1/WithCollapsibles / bs-table1/wc  : Table header w/o legend, substituting Template:BS-table1

[edit] Collapsible section beginning row templates

Use one of the following row templates to call for a collapsible section. After that use the ordinary BS/BS"#" row templates to follow before closing the collapsible section.

  • If the map has combined use of different BS"#" row templates, editor should choose the collapsible row template with the greatest icon columns (e.g., use bs5-sc when bs5 and other smaller row templates are used in the same map).

[edit] Template:BS-startCollapsible

{{BS-startCollapsible}} / bs-sc
{{BS2-startCollapsible}} / bs2-sc
{{BS3-startCollapsible}} / bs3-sc
{{BS4-startCollapsible}} / bs4-sc
{{BS5-startCollapsible}} / bs5-sc
{{BS6-startCollapsible}} / bs6-sc
{{BS7-startCollapsible}} / bs7-sc
{{BS8-startCollapsible}} / bs8-sc

Usage: {{BS-startCollapsible|ID|Dist./Time|Text}} with the following parameters:

ID: ID of the icon used for collapsed section header, defaults to blank ('leer', BSicon leer.svg)
Dist./Time: Distance or time within the collapsed section
Text: Title of collapsed section
Other designated parameters are the same as BS template.

[edit] Template:BS"#"-startCollapsible with "#" an integer from 2 to 8

For example the usage of {{BS2-startCollapsible}}:

{{BS2-startCollapsible|ID|ID|Dist./Time|Text}} with the following parameters:

ID: IDs of the icons used for collapsed section header, defaults to blank ('leer', BSicon leer.svg)
Dist./Time: Distance or time within the collapsed section
Text: Title of collapsed section
Other designated parameters are the same as BS"#" templates.

[edit] Closing collapsible section

  • Template {{BS-endCollapsible}} is not needed anymore
  • Use |} instead to close the collapsible section.
  • When connecting collapsible sections or making 1 collapsible section included within another collapsible section (though this is highly not recommended,) sufficient closing |} is required.

[edit] Example

Eurostar route map
BSicon .svg BSicon .svg exKBHFa
London St. Pancras (after 2007–11)
BSicon .svg BSicon .svg exHST
Stratford International
BSicon .svg KBHFa exWBRÜCKE
0:00 London Waterloo
STRrg ABZrf KBHFe
2:15 Brussels Gare du Midi
KBHFe ABZlf STRlg
2:35 Paris Gare du Nord
BSicon .svg STR KHSTe
2:53 Marne-la-Vallée – Chessy (Disneyland)
STRrg ABZrf BSicon .svg
KHSTe STR BSicon .svg
6:00 Avignon Centre
HST
6:47 Moûtiers (ski)
eHST
7:19 Aime la Plagne (ski: set down only)
KHSTe
7:37 Bourg Saint Maurice (ski)
{| {{Railway line header}}
{{UKrail-header2|Eurostar route map|#27404E}}
{{BS-table/WithCollapsibles}}
{{BS3|||exKBHFa||[[St Pancras railway station|London St. Pancras]]|(''after 2007–11'')}}
{{BS3|||exHST||[[Stratford International station|Stratford International]]}}
{{BS3||KBHFa|exWBRÜCKE|0:00|'''[[Waterloo Station|London Waterloo]]'''}}
{{BS3-startCollapsible||LUECKE|exLUECKE|2:15|Waterloo to Brussels|bg=#c0c0f0}}
{{BS3||STR|exHST||[[Dartford International railway station|Ebbsfleet International]]}}
{{BS3||eABZrg|exSTRrf|}}
{{BS|HST|0:50|[[Ashford International railway station|Ashford International]]}}
{{BS|TUNNELa}}
{{BS|tGRENZE|||[[Channel Tunnel]] (''0:21 transit'')}}
{{BS|TUNNELe}}
{{BS|HST|1:15|[[Gare de Calais-Fréthun|Calais-Fréthun]]}}
{{BS|BHF|1:40|[[Gare de Lille-Europe|Lille-Europe]]}}
{{BS3||ABZlf|STRlg|||}}
{{BS3||STR|GRENZE|||}}
|} <!-- end of collapsible section -->
{{BS3|STRrg|ABZrf|KBHFe|2:15|'''[[Bruxelles Gare du Midi / Brussel-Zuid railway station|Brussels Gare du Midi]]'''}}
{{BS3|KBHFe|ABZlf|STRlg|2:35|'''[[Gare du Nord|Paris Gare du Nord]]'''}}
{{BS3||STR|KHSTe|2:53|'''[[Marne-la-Vallée – Chessy]]'''|(Disneyland)}}
{{BS3|STRrg|ABZrf||}}
{{BS3|KHSTe|STR||6:00|'''[[Avignon]] Centre'''}}
{{BS|HST|6:47|[[Moûtiers]]|(ski)}}
{{BS|eHST|7:19|[[La Plagne|Aime la Plagne]]|(ski: ''set down only'')}}
{{BS|KHSTe|7:37|'''[[Bourg Saint Maurice]]'''|(ski)}}
|}
|}
{{BS-2}} / BS1-2 / bs-2 / bs1-2
{{BS2-2}} / bs2-2
{{BS3-2}} / bs3-2
{{BS4-2}} / bs4-2
{{BS5-2}} / bs5-2
{{BS6-2}} / bs6-2
{{BS7-2}} / bs7-2
{{BS8-2}} / bs8-2

[edit] Row templates:BS-2, BS"#"-2 with "#" an integer from 2 to 8

BS"#"-2 templates take text on both sides without the Distance/Time case available as oppose to the previously introduced BS row templates that only allow text to be displayed on the right. All designated parameters of BS and BS"#" row templates are applicable here. These templates should not be used with other "right-Text only" BS row templates. Example is shown in the demonstration on the top of this project page.

Usage:

{{BS2-2|ID|ID|L Text|R Text|L Note|R Note 1|R Note 2 (r-aligned)}}

  • Collapsible section is not yet available for BS"#"-2 map.

[edit] Hints

Options for vee station
CONTg BSicon .svg
BHFABZld CONTr
BHFABZld
vSTRrg CONTr
vSTRrg with
vBHF BSicon .svg
vBHF and
vSTRe BSicon .svg
vSTRe
CONTr
ABZld overlays
CONTf BSicon .svg
with BHF legende
Custom legend
CPICla uCPICma utCPICra
Station A
STR uCPICl utCPICr
Station B
STR uBHF utSTR
Station C
CPICle uCPICme utCPICre
Station D
Legend
STRq
Express service
uSTRq
Weekday local
utSTRq
Weekend, holiday local
  • If a station has a WP article, link to that, not to the town.
  • Avoid overlinkage to a city or railway when its occurences are close together on the route map.
  • For a line which connects to the subject line link its article particularly if there is a connection for passengers.
  • For vee stations show the lines as already joined in the station to show the connection or use the CPIC set. The mere showing of a vee station shows that it has not been overlooked.
  • At the ends of a line show tracks which go further by STR BSicon STR.svg or CONT set BSicon CONTg.svgBSicon CONTf.svgBSicon CONTl.svg BSicon CONTr.svg.
  • For lines branching off as the route runs from its start specify 'To X', in the opposite case (lines which join) 'From X'".
    • Template {{RoutemapRoute}} (shortcut: {{rmr}}) is an option to help describing in the text column with arrow icons ) Arrow Blue Up 001.svg Arrow Blue Down 001.svg Arrow Blue Left 001.svg Arrow Blue Right 001.svg.
  • When your diagram grows too big like this, it is recommended not to transclude such map inside an infobox or table which floats / aligns to left or right, otherwise it would press the main text outside to the narrow space. This problem exaggerates to user who uses small screen resolution. It is a good idea to use the standalone table with style defined by {{railway line header (center)}} or {{railway line header2 (center)}} so the table does not float to left or right. If the left/right-aligned table is desired, adjust the diagram width for a minimum of 1024px display width in monobook Wiki style. Set the table collapsed by default also helps (by applying the parameter collapse=yes in {{railway line header}} or {{railway line header (center)}}).
  • If an unusual situation requires using a current icon unconventionally, give an explanation either by the text level with the icon or by a note at the top or bottom of the map, separated by an empty row or border line, showing the "misused" icon and its meaning.

[edit] Pictograms

A list of the pictograms which are currently available. A separate page lists waterways pictograms. A directory of icons can be found at Wikimedia Commons.

The conventional file name format for image of this project is as follow: BSicon_(pictogram ID).svg. In BS(#) row templates, editor only needs to type the ID for the desired icon. The name of a pictogram, or ID, is constructed by prefix, ROOT and suffix jointly (e.g. uSTRlg BSicon uSTRlg.svg forming by u-STR-lg). Prefix and suffix are always lowercase but ROOT is all caps to distinguish from the affixes. All icons contain at least 1 ROOT or combining 2 or more to form some complex icon. Affixes mostly variate the "base" icon in color, directionality, structure, etc and may not apply to simple icons.

Because of the number of projects using these icons, additional codes have been created for special uses, including parallel routes and type changes. A complete index is available at User:AlisonW/Rail Icons for CSS-compatible browsers.

The following tables of icon cover the most basic, commonly used stems:

[edit] Prefix

It indicates that infrastructure is not used, disused (or not yet opened) or in a tunnel:

Heavy rail /
Facility
e.g. Metro /
Light rail
e.g. Alternative*
Track, station or facility in use (no prefix) STRKRZBHF u uSTRuKRZuBHF
BOOTLDERTRAM
Station passed by express train xp xpBHF uxp uxpBHF
Track or station inside the tunnel t tSTRtKRZtBHF ut utSTRutKRZutBHF
Unused track or station on track-in-use e eKRZeBHF ue ueKRZueBHF
Unused track, station or facility ex exSTRexKRZexBHF uex uexSTRuexKRZuexBHF e / ue
exBOOTexLDERexTRAM
Unused track or station on track-in-use inside the tunnel et etKRZetBHF uet uetKRZuetBHF te / ute
Unused track and station inside the tunnel ext extSTRextKRZextBHF uext uextSTRuextKRZuextBHF tex / utex

* Alternatives are not recommended because they cause inconsistency with other prefixes and to the naming rule. Editor may use these icons if the desired icon of the formal prefix does not exist.

[edit] Root

The core part of the icon ID:

Root e.g. Etymology
End of track ENDE* ENDEa DE: Ende, EN: end
Track STR STR DE: Strecke, EN: straight
Interruption LUECKE LUECKE DE: Lücke
Continuation CONT CONTf EN: Continuation
Bridge BRÜCKE BRÜCKE DE: Brücke
Cross-water bridge WBRÜCKE* WBRÜCKE
WBRÜKE2
DE: Wasser + Brücke
Tunnel TUNNEL* TUNNEL1
TUNNELa
DE: Tunnel, EN: tunnel
Underwater tunnel WTUNNEL* WTUNNEL
WTUNNEL1
DE: Wasser + Tunnel,
EN: water + tunnel
Border GRENZE GRENZE DE: Grenze
Crossroad KRZ KRZ DE: Kreuzung
90° branching ABZ* ABZlf DE: Abzweigstelle
45° branching 1 BS2* BS2l
45° branching 2 ÜW* ÜWol DE: Überwerfungsbauwerk
Terminus KBHF* KBHFa DE: Kopfbahnhof
Same with KHST, KSBHF, KSHST, KSDST, KDST and KBST
Station BHF BHF DE: Bahnhof
Minor station HST HST DE: Haltestelle
Commuter station SBHF BHF DE: S-Bahnhof
Minor commuter station SHST SHST DE: S-Bahn Haltestelle
Accessible station ACC ACC EN: accessible
Interchange INT INT EN: interchange
Split level station TBHF* TBHFo DE: Turmbahnhof
Same with THST, TSBHF and TSHST
Cross-platform interchange CPIC* CPICl EN: cross-platform interchage
Non-passenger station DST DST DE: Dienststation
Non-passenger stop BST BST DE: Betriebsstelle

* These icons are accompanied with suffix in most case. Number indicates the variation is also considered suffix in this case.

  • Alphabet Ü (DE: ue) can be input using ASCII by alt+0220 (must type the number on numeric keypad on the righthand side of keyboard). Some non-western language option might alter to the undesired output such as the lowercase ü or non-diacritic U. Some redirects replacing the 'Ü' with 'UE' are already set up (e.g. BRUECKE -> BRÜCKE). You may creat such file name redirect in Wikimedia Commons yourself if you see fit.

[edit] Suffix

Affixes in this category indicates the directionality, position or structural variation:

Suffix e.g. Etymology
Forward f STRfCONTf DE: fahrtrichtung, EN: forward
Backward g STRgCONTg DE: gegenrichtung
Rightward r STRrBS2r EN: right
Leftward l STRlÜWol EN: left
From right +r BS2+rÜWo+r
From left +l BS2+lÜWo+l
Foward and turn right rf STRrfABZrf
Foward and turn left lf STRlfABZlf
Backward and turn right rg STRrgABZrg
Backward and turn left lg STRlgABZlg
Transverse
(indefinite direction)
q BHFqDSTq
LUECKEqBRÜCKEq
DE: quer
Start a KBHFaENDEa DE: anfang
End e KBHFeENDEe DE: ende, EN: end
Over o KRZoÜWol DE: oben, EN: over
Under u KRZuÜWul DE: unter, EN: under
Middle m CPICmINTm DE: mittlere, EN: middle
Supplementary corner for 45° branchings:
Objective upper right c1 BS2c1ÜWc1 EN: corner
Objective lower right c2 BS2c2ÜWc2
Objective lower left c3 BS2c3ÜWc3
Objective upper left c4 BS2c4ÜWc4
  • The directionality for-, back-, left- and right-ward of ROUTE icon is based on that the line in the diagram starts the trip from the upper side downward. So the left and right are reversed in the diagram from objective view, unless the direction is described as backward. Some icon makes exception, such as CPIC and corner sets.

[edit] HUB

HUB is a set of modules requires overlaying to describe multiple lines within a large transport hub, usually sharing one station name. Naming rule of these icons is different than ordinary railway icons.

{{BS2|BHF|uBHF||O1=HUB84|O2=HUB82}}

[edit] Overlay

If a required icon does not exist it might be produced from two existing icons using the overlay parameter to superimpose one icon over another. Add the overlay parameter in the BS"#" table row template, O1 corresponds to icon column 1, O2 icon column 2, etc. As shown in the HUB example. The icon of overlay function will appear over the icon typed in the conventional icon ID case (on the left-hand side.)

  • For unknown reason, in Microsoft Internet Explorer 7 or other browsers base on IE7, overlayed icons might shift horizontally to its unintended position (or simply invisible.) This will happen when changing the browser size or show/hide any collapsible section that will change the BS table position or its width. This can be cured temporarily after purging the page

[edit] Developer notes

[edit] Own icons

In most case the icons available in Wikimedia Commons should be sufficient. However, if you think you need to create an icon of your own, please take note of the following points:

  • Names should be of the form: "BSicon prefixROOTsuffix.svg"
  • where ROOT defines a general function/shape,
  • prefix specifies a coloration/style/usage, and
  • suffix is a shape modifier
  • redirects must be made for files containing diacritics from their dediacriticized name on Commons. For example file:BSicon BRUECKE.svg redirects to file:BSicon BRÜCKE.svg.
  • Graphic size isn't restricted, but it should be in square shape, usually 500px*500px. They will be eventually resized to 20px-wide in the map by default.
  • Tompw's Icon Generator may be used to easily create some types of new SVG icons.
  • Upload files to Wikimedia Commons, add proper copyright statement and the [[category:BSicon]] .
  • Do not use copyrighted materials such as company logo. Even if you do not upload to Commons, it will violate the terms of fair use when applying them in the diagram.
  • If you are incapable or having trouble in creating icon, post your question in the talk page.

[edit] 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 TUNNELa.svg
     #034ea2 for accessible station BSicon ACC.svg
     #006e34 for Berlin S-Bahn BSicon SBHF legende.svg
     #5abf89 for Berlin S-Bahn BSicon exSBHF legende.svg (former/planned)
     #000000 for cross-platform interchange border BSicon CPIC.svg
     #b3b3b3 for cross-platform interchange strap BSicon CPIC.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)

[edit] Test circuit

Not implemented on en: yet

There is a test circuit on German Wikipedia: w:de:Wikipedia Diskussion:Formatvorlage Bahnstrecke/BS Test, where new icons can be safely tested. Please use the template KBSv instead of BS there


[edit] Sandbox area

Experimental design can be produced in Wikipedia:Railway line template/sandbox

[edit] See also

  • Canal/Water icons:
  • FootPath icons:
  • Motorway icons:
  • Rail icons:
  • Optional instrumental template:
  • {{infobox rdt}}: help transcluding route map into infobox that doesn't support RDT well
  • {{Rdt intro}}: description for route template