Wikipedia:Route diagram template
From Wikipedia, the free encyclopedia
- 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
, railway stations
, bridges
, rivers
, tunnels
, junctions
and interchanges
.
|
[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 | ||||||
|---|---|---|---|---|---|---|
|
||||||
| railway line header2 | ||||||
|---|---|---|---|---|---|---|
|
||||||
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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||
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: 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 | ||||||
|---|---|---|---|---|---|---|
|
||||||
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
|
{{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.
- PX: Width of icon (e.g. PX=50px), 20px by default
|
|||||||||||||||
- 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
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
|
{{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',
) - 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',
) - 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{| {{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)}}
|}
|}
|
{{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 | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Custom legend | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
- 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.
- 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 )
.
- Template {{RoutemapRoute}} (shortcut: {{rmr}}) is an option to help describing in the text column with arrow icons )
- 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
| Key to symbols | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
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) | u | |||
| Station passed by express train | xp | uxp | |||
| Track or station inside the tunnel | t | ut | |||
| Unused track or station on track-in-use | e | ue | |||
| Unused track, station or facility | ex | uex | e / ue | ||
| Unused track or station on track-in-use inside the tunnel | et | uet | te / ute | ||
| Unused track and station inside the tunnel | ext | uext | 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* | DE: Ende, EN: end | |
| Track | STR | DE: Strecke, EN: straight | |
| Interruption | LUECKE | DE: Lücke | |
| Continuation | CONT | EN: Continuation | |
| Bridge | BRÜCKE | DE: Brücke | |
| Cross-water bridge | WBRÜCKE* | DE: Wasser + Brücke | |
| Tunnel | TUNNEL* | DE: Tunnel, EN: tunnel | |
| Underwater tunnel | WTUNNEL* | DE: Wasser + Tunnel, EN: water + tunnel |
|
| Border | GRENZE | DE: Grenze | |
| Crossroad | KRZ | DE: Kreuzung | |
| 90° branching | ABZ* | DE: Abzweigstelle | |
| 45° branching 1 | BS2* | ||
| 45° branching 2 | ÜW* | DE: Überwerfungsbauwerk | |
| Terminus | KBHF* | DE: Kopfbahnhof | |
| Same with KHST, KSBHF, KSHST, KSDST, KDST and KBST | |||
| Station | BHF | DE: Bahnhof | |
| Minor station | HST | DE: Haltestelle | |
| Commuter station | SBHF | DE: S-Bahnhof | |
| Minor commuter station | SHST | DE: S-Bahn Haltestelle | |
| Accessible station | ACC | EN: accessible | |
| Interchange | INT | EN: interchange | |
| Split level station | TBHF* | DE: Turmbahnhof | |
| Same with THST, TSBHF and TSHST | |||
| Cross-platform interchange | CPIC* | EN: cross-platform interchage | |
| Non-passenger station | DST | DE: Dienststation | |
| Non-passenger stop | 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 | DE: fahrtrichtung, EN: forward | |
| Backward | g | DE: gegenrichtung | |
| Rightward | r | EN: right | |
| Leftward | l | EN: left | |
| From right | +r | ||
| From left | +l | ||
| Foward and turn right | rf | ||
| Foward and turn left | lf | ||
| Backward and turn right | rg | ||
| Backward and turn left | lg | ||
| Transverse (indefinite direction) |
q | DE: quer | |
| Start | a | DE: anfang | |
| End | e | DE: ende, EN: end | |
| Over | o | DE: oben, EN: over | |
| Under | u | DE: unter, EN: under | |
| Middle | m | DE: mittlere, EN: middle | |
| Supplementary corner for 45° branchings: | |||
| Objective upper right | c1 | EN: corner | |
| Objective lower right | c2 | ||
| Objective lower left | c3 | ||
| Objective upper left | c4 | ||
- 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
| List of HUB## | |||||
|---|---|---|---|---|---|
| 01-05 | |||||
| 06-10 | |||||
| 11-15 | |||||
| 16-20 | |||||
| 21-25 | |||||
| 26-30 | |||||
| 31-35 | |||||
| 36-40 | |||||
| 41-45 | |||||
| 46-50 | |||||
| 51-55 | |||||
| 56-60 | |||||
| 61-65 | |||||
| 66-70 | |||||
| 71-75 | |||||
| 76-80 | |||||
| 81-85 | |||||
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.
|
|||||||
[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:
- Check on Commons Icons for railway descriptions and subcategories whether a such icon already exists.
- Think if the icon you need can be done via overlaying 2 existing icons.
- Use SVG file format only. This can be done by using CORELDraw, Inkscape, Adobe Illustrator or an html/xml (text) editor.
- Follow the colour scheme and naming conventions listed in the catalog of pictograms and User:AlisonW/Rail_Icons.
-
- 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
- Lines not in current use (planned or closed)
- Other features
- #80a080 for elevated
, bridge
or tunnel portal 
- #034ea2 for accessible station

- #006e34 for Berlin S-Bahn

- #5abf89 for Berlin S-Bahn
(former/planned) - #000000 for cross-platform interchange border

- #b3b3b3 for cross-platform interchange strap

- #007cc3 for water

- #000000 for other features in use (such as
,
) - #aaaaaa for other features not in use (such as
,
)
[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