Wikipedia:Route diagram template

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Sameboat (talk | contribs) at 09:00, 28 July 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Jump to navigation Jump to search

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.

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)
Template:BS6 : Table row with six icons
Template:BS7 : Table row with seven icons
Template:BS7-2 : Table row with seven icons with text descriptions on both sides of columns
Template:BS8 : Table row with eight icons
Template:BS8-2 : Table row with eight icons with text descriptions on both sides of columns

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

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.

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.

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.

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

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.)

Example

Template:UKrail-header2Template:BS-tableTemplate:BSTemplate:BSTemplate:BSTemplate:BS3Template:BSTemplate:BSTemplate:BSTemplate:BSTemplate:BSTemplate:BSTemplate:BS3Template:BS3Template:BS3Template:BS3Template:BS3Template:BS3Template:BS3Template:BSTemplate:BSTemplate:BS

Times shown are fastest timetabled journey from London St Pancras. |}


<pre.raw style="border:0px;overflow:auto;">{| {{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. |}

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.

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

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

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

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

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

Template:BS-endCollapsible

Usage: {{BS-endCollapsible}}

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

Example

Template:UKrail-header2Template:BS-table/WithCollapsiblesTemplate:BS3Template:BS3Template:BS3Template:BS3-startCollapsibleTemplate:BS3Template:BS3Template:BSTemplate:BSTemplate:BSTemplate:BSTemplate:BSTemplate:BSTemplate:BS3Template:BS3Template:BS-endCollapsibleTemplate:BS3Template:BS3Template:BS3Template:BS3Template:BS3Template:BSTemplate:BSTemplate:BS

|}

<pre.raw style="border:0px;overflow:auto;"> {| {{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)}} |} |}

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“.
  • That seems to mean "For lines branching off as the route runs from its start specify 'To X', in the opposite case (lines which join) 'From X'".

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.

HUB

Template:UKrail-headerTemplate:BS-table1Template:BS5Template:BS-colspan

Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5 Template:BS-colspan


Template:BS5

|}

HUB is a set of modules requires overlapping to describe multiple lines within a large transportation hub, usually sharing one station name. Naming rule of these icons is different than ordinary railway icons. Route diagram templates originally created by Japanese Wikpedians provide some nice sample in massive scale, such as ja:Tokyo Metro Chiyoda Line and ja:Tokyo Metro Marunouchi Line.

command display
{{BS2|BHF|BHF||XXX|O1=HUB84|O2=HUB82}}
Template:BS2

Overlap

In case of lacking of specific icon which can be composed by two existing icons, use the overlap parameter to superimposes 1 icon over another icon. Simply add the overlap parameter in the BS row template, O1 correspond to icon column 1, O2 icon column 2, etc. As shown in the HUB example. The icon of overlap function will appear over the icon typed in the conventional icon ID case (on the left-hand side.)

Developer notes

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 File:BSicon ELEV.svg, 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

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

Design software

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.

See also

  • Canal/Water icons:
  • FootPath icons:
  • Motorway icons:
  • Rail icons: