Wikipedia:Route diagram template

From Wikipedia, the free encyclopedia

Shortcuts:
WP:RDT
WP:TRAIL
WP:ROUTE

The Route diagram template is a series of templates originating from the German Wikipedia. The goal of the templates is to provide a uniform layout for route-map infoboxes for railway lines, waterways and other modes of transport, currently with the (German) focus on German railway lines. It is similar to the Autobahnbox series of templates.

Please note that this page is currently a translation in progress, and some sections are not translated from the original German yet.

Contents

[edit] Templates

Template:Railway line header  : Formatting for master table
Template:Railway line header (center)  : Formatting for master table in centre of page (intended for station diagrams, e.g. Carlisle railway station)
Template:Infobox UK railway  : Version of Template:Infobox rail that can be embedded at the beginning of a route map. For use with route diagrams of historical railways.
Template:BS-header  : Table header (white on red)
Template:UKrail-header  : Table header (variable header background colour, black text)
Template:UKrail-header2  : Table header (variable header background colour, white text)
Template:BS-daten  : Infobox line data
Template:BS-Infobox  : Stripped down Infobox line data in English
Template:BS-table  : Table header with link to legend
Template:BS-table1  : Table header w/o legend
Template:BS  : Table row existing railway
Template:BS2  : Table row with two icons
Template:BS3  : Table row with three icons
Template:BS4  : Table row with four icons
Template:BS5  : Table row with five icons
Template:BSkm  : Mini table (for kilometrage changes)

The obsolete Template:BSe for former railways has now been deleted. One of the above templates will provide the same functionality.

[edit] Template:BS-daten

Parameters of Template:BS-daten:

{{BS-daten
|DE-KBS=
|STRECKENNR=
|LÄNGE=
|SPURWEITE=
|STROMG=
|STROMW=
|ZAHNSTANGE=
|NEIGUNGA=
|NEIGUNG=
|RADIUS=
|V-MAX=
|BILDPFAD_KARTE=
|PIXEL_KARTE=
}}

Further explanation of the parameters is provided at the template's page.

[edit] Template:BS

Usage: {{BS|ID|km|Name|Note}} with the following parameters

ID: identifies the pictogram, see Pictogram Matrix below
km: distance along the line, in kilometres
Name: Name of infrastructure
Note: will be written in small print

Names and notes may contain wikilinks. Any of the fields km, Name and Note may also be empty. If the ID is prefixed with an x, this denotes that parts of the infrastructure have been closed (i.e. a former through station converted to a terminal). If the ID is prefixed with a t, parts of the infrastructure are situated in a tunnel.

[edit] Template:BSe

Now deleted. Use Template:BS instead. The code {{BS|eID ... results in the same output as {{BSe|ID .... However, remember that not every symbol with a preceding 'e' may be available, so you may need to get a symbol created.

[edit] Templates: BS2, BS3, BS4 and BS5

Universal templates for a railwaystrip with two, three, four or five symbols side by side. This can be used for more complicated railway tracks. Example: de:Hasseler Tunnel. Every line shall contain two, three, four or five IDs. When an empty space is wanted, use the ID leer. This is German and means 'empty'. But you 'll find it more convenient to leave the space empty.

These templates require that the letters 'e', 'x' and 'ex' are written before the ID, not after BS.

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

Usage: {{BS2|ID|ID|km|Name|Note|Note}} is similar to {{BS3|ID|ID|ID|km|Name|Note|Note}}.

Parameters for BS2:

  • Parameter1: ID of the first pictogram (or 'leer') (defaults to 'leer' if omitted)
  • Parameter2: ID of the second pictogram (or 'leer') (defaults to 'leer' if omitted)
  • Parameter3: distance
  • Parameter4: Text
  • Parameter5: Note
  • Parameter6: Right-aligned note

(BS3, BS4 and BS5 require a further 1, 2 or 3 parameters respectively, inserted after Parameter2)

The following parameters are optional:

  • Keyword parameter PX: Width of the strip (for example PX=50px). Default is 20px.
  • Keyword parameter HI: CSS Class for "Highlight", to highlight certain parts of the indicated distance. For example see de:Seetalbahn

[edit] Template:BSkm

Usage: {{BSkm{{!}}km1{{!}}km2}}. This template can be used in place of the parameter 'km', 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.)

[edit] Example

Eurostar route map
KBFa
0:00 St. Pancras International
eHST
Stratford International (opening 2010)
HST
0:15 Ebbsfleet International
exHLUECKE eABZlg
Fawkham Junction
HST
0:30 Ashford International
TUNNELa
tGRENZE
GB-F border (Channel Tunnel)
TUNNELe
HST
0:54 Calais-Fréthun
BHF
1:20 Lille-Europe
ABZlf STRlg
STR GRENZE
France-Belgium border
STRrg ABZrf KBFe
1:51 Bruxelles Midi/Brussel-Zuid
KBFe ABZlf STRlg
2:15 Paris Gare du Nord
STR HSTe
2:33 Marne la Vallée-Chessy (Disneyland)
STRrg ABZrf
HSTe STR
5:40 Avignon Centre
HST
6:27 Moûtiers (ski)
eHST
6:59 Aime la Plagne (ski, set down only)
HSTe
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|KBFa|0:00|[[St Pancras railway station|St. Pancras International]] [[Image:Underground no-text.svg|10px]]}}
{{BS|eHST||[[Stratford International station|Stratford International]] [[Image:DLR no-text roundel.svg|10px]] <small>(opening 2010)</small>}}
{{BS|HST|0:15|[[Ebbsfleet International railway station|Ebbsfleet International]]}}
{{BS3|exHLUECKE|eABZlg|||<small>[[Fawkham Junction]]</small>}}
{{BS|HST|0:30|[[Ashford International railway station|Ashford International]]}}
{{BS|TUNNELa}}
{{BS|tGRENZE||<small>[[United Kingdom|GB]]-[[France|F]] border ([[Channel Tunnel]])</small>}}
{{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|KBFe|1:51|[[Brussels-South|Bruxelles Midi/Brussel-Zuid]] [[Image:Metro-brussels.svg|10px]]}}
{{BS3|KBFe|ABZlf|STRlg|2:15|[[Gare du Nord|Paris Gare du Nord]]}}
{{BS3||STR|HSTe|2:33|[[Marne la Vallée-Chessy railway station|Marne la Vallée-Chessy]] <small>([[Disneyland Resort Paris|Disneyland]])</small>}}
{{BS3|STRrg|ABZrf||}}
{{BS3|HSTe|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|HSTe|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.

Because the hidden items do not affect the width of the box, it is often desirable to explicitly set the width by adding a style parameter to the Template:Railway line header. This should be done in units that are relative to font size, such as pt or em.

Template:BS-table/WithCollapsibles  : Table header with link to legend, substituting Template:BS-table
Template:BS-table1/WithCollapsibles  : Table header w/o legend, substituting Template:BS-table1
Template:BS-startCollapsible  : Start collapsible section of 1 icon per row
Template:BS2-startCollapsible  : Start collapsible section of 2 icons per row
Template:BS3-startCollapsible  : Start collapsible section of 3 icons per row
Template:BS4-startCollapsible  : Start collapsible section of 4 icons per row
Template:BS5-startCollapsible  : Start collapsible section of 5 icons per row
Template:BS-endCollapsible  : End of collapsible section*

* {{BS-endCollapsible}} is not needed when

  1. the collapsible section extends to the end of the diagram. Use |} instead to close table.
  2. another collapsible section is following immediately. No extra code is needed to end that collapsible section.

[edit] Template:BS-startCollapsible

Usage: {{BS-startCollapsible|ID|km|Name}} with the following parameters:

ID: pictogram to use for collapsed section header, defaults to blank ('leer', )
km: distance within the collapsed section
Name: title of collapsed section

[edit] Template:BS2-startCollapsible

Usage: {{BS2-startCollapsible|ID|ID|km|Name}} with the following parameters:

ID: pictogram to use for collapsed section header, defaults to blank ('leer', )
km: distance within the collapsed section
Name: title of collapsed section

[edit] Template:BS3-startCollapsible

Usage: {{BS3-startCollapsible|ID|ID|ID|km|Name}} with the following parameters:

ID: pictogram to use for collapsed section header, defaults to blank ('leer', )
km: distance within the collapsed section
Name: title of collapsed section

[edit] Template:BS4-startCollapsible

Usage: {{BS4-startCollapsible|ID|ID|ID|ID|km|Name}} with the following parameters:

ID: pictogram to use for collapsed section header, defaults to blank ('leer', )
km: distance within the collapsed section
Name: title of collapsed section

[edit] Template:BS5-startCollapsible

Usage: {{BS5-startCollapsible|ID|ID|ID|ID|ID|km|Name}} with the following parameters:

ID: pictogram to use for collapsed section header, defaults to blank ('leer', )
km: distance within the collapsed section
Name: title of collapsed section

[edit] Template:BS-endCollapsible

Usage: {{BS-endCollapsible}}

It is NOT required to use {{BS-endCollapsible}} immediately before any of the above startCollapsible templates.

[edit] Example

Eurostar route map
exKBFa
London St. Pancras (after 2007–11)
exHST
Stratford International
KBFa exWBRÜCKE
0:00 London Waterloo
STRrg ABZrf KBFe
2:15 Brussels Gare du Midi
KBFe ABZlf STRlg
2:35 Paris Gare du Nord
STR HSTe
2:53 Marne-la-Vallée – Chessy (Disneyland)
STRrg ABZrf
HSTe STR
6:00 Avignon Centre
HST
6:47 Moûtiers (ski)
eHST
7:19 Aime la Plagne (ski: set down only)
HSTe
7:37 Bourg Saint Maurice (ski)
{| {{Railway line header}}
{{UKrail-header2|Eurostar route map|#27404E}}
{{BS-table/WithCollapsibles}}
{{BS3|||exKBFa||[[St Pancras railway station|London St. Pancras]]|(''after 2007–11'')}}
{{BS3|||exHST||[[Stratford International station|Stratford International]]}}
{{BS3||KBFa|exWBRÜCKE|0:00|'''[[Waterloo Station|London Waterloo]]'''}}
{{BS3-startCollapsible||LUECKE|exLUECKE|2:15|Waterloo to Brussels}}
{{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|||}}
{{BS-endCollapsible}}
{{BS3|STRrg|ABZrf|KBFe|2:15|'''[[Bruxelles Gare du Midi / Brussel-Zuid railway station|Brussels Gare du Midi]]'''}}
{{BS3|KBFe|ABZlf|STRlg|2:35|'''[[Gare du Nord|Paris Gare du Nord]]'''}}
{{BS3||STR|HSTe|2:53|'''[[Marne-la-Vallée – Chessy]]'''|(Disneyland)}}
{{BS3|STRrg|ABZrf||}}
{{BS3|HSTe|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|HSTe|7:37|'''[[Bourg Saint Maurice]]'''|(ski)}}
|}
|}

[edit] Hints

  • If there is an article about a station, link to the station, not to the city.
  • Avoid several links to the same city or railway, in particular when they are consecutive.
  • For branching off lines one may mention the relevant line article when it is a passenger correspondence.
  • For Vee stations show the lines as if they were already joined in the station to clarify the correspondence. Noting the fact of a Vee station shows that one knows about it.
  • Vorlagen für S-Bahn-Linien an Abzweigen und an Endbahnhöfen im Anmerkungsfeld verwenden, an Endbahnhöfen mit dem Text „Endbahnhof“. Nur bei Mehrdeutigkeiten auch das S-Bahn-Netz erwähnen, zu dem die Linie gehört.
  • At the start and end of line show continuing lines with STR, so they exist.
  • Bei Abzweigungen und Fortsetzungen in Fahrtrichtung „Strecke nach X“ formulieren, bei Gegenrichtung „Strecke von X“.

[edit] Pictograms

To be complete we give you a list of the pictograms which are currently available. A separate page lists waterways pictograms. There is no need to know them if you use the design program Spoorstrip (see section Design software below). They are shown in the original size, as they appear when the templates are used.

The name of a pictogram, or ID, is constructed as follows:

  • (usually three) capital letters which indicate the kind of the pictogram (station, branch, etc.)
  • extra lower case letters for different variants
    • a: start (from German Anfang), e: end
    • l: left, r: right
    • f: in down direction (usually away from London) g: in up direction (usually towards London)
    • o: vertical track on top, u: vertical track on bottom (at grade-separated junctions)
  • the ID may be preceded by a prefix consisting of lower case letters. It indicates that infrastructure is not used, disused (or not yet opened) or in a tunnel:
    • xp: Express service – does not stop at this station
    • x: Line not in use
    • t: Tunnel
    • e: Station (etc.) not in use
    • ex: Line and station not in use

There are up to 30 variants for each base pictogram ID.

A reduced table of the pictograms currently available may be found at Wikipedia:Route diagram template/Catalog of pictograms.
A directory of symbols can be found at Wikimedia Commons.
Some new symbols can be generated via Tompw's icon generator

Because of the number of projects using these symbols, 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.

[edit] Developer notes

[edit] Own icons

In 95 % of cases the symbols described above 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.
  • Use SVG files. (previous ones have been created using CORELDraw, but it can also be done with Inkscape, an html (text) editor) or Adobe Illustrator.
  • Please upload files to Wikimedia Commons.
  • Symmetry to the "main line" which uses 20% of the existing images' width.
  • Colours (hex-RGB):
  • Existing lines in current use
     #be2d2c for heavy rail
     #003399 for metro / light rail
  • Lines not in current use (planned or closed)
     #d77f7e for heavy rail
     #6281c0 for metro / light rail
  • Other features
     #80a080 for elevated , bridge or tunnel portal
     #034ea2 for accessible station
     #00a030 for Berlin S-bahn
     #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 , )
  • Naming conventions
  • There are 30 subcodes for each pictogram ID

[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] Design software

Computer program Spoorstrip.exe
Computer program Spoorstrip.exe

A free computer program - Spoorstrip.exe - is available to facilitate drawing a railway line. With this program there is hardly any need to know the text of this page (let alone to translate it from German). The program is free and contains no spyware or adware. Send mail to Spoorstripgmail.com to obtain it.

[edit] See also