Worldwide Trams Wiki:Route diagram template

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

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

Templates
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:

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

Template:BS
Usage:   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. 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.
 * Example BS:  bse: BHF 2,0 
 * becomes in BS2:  

Usage:   is similar to   </tt>.

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:  </tt>. 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  | </tt> is needed because Wikisyntax uses  | </tt> to separate both parameters and parts of a table.)

Example
<pre.raw style="border:0px;overflow:auto;"> {|

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.

* BS-endCollapsible is not needed when
 * 1) the collapsible section extends to the end of the diagram. Use  |} </tt> 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:  </tt> with the following parameters:
 * ID: pictogram to use for collapsed section header, defaults to blank ('leer', [[Image:BSicon_leer.svg|20px]])
 * km: distance within the collapsed section
 * Name: title of collapsed section

Template:BS2-startCollapsible
Usage:  </tt> with the following parameters:
 * ID: pictogram to use for collapsed section header, defaults to blank ('leer', [[Image:BSicon_leer.svg|20px]])
 * km: distance within the collapsed section
 * Name: title of collapsed section

Template:BS3-startCollapsible
Usage:  </tt> with the following parameters:
 * ID: pictogram to use for collapsed section header, defaults to blank ('leer', [[Image:BSicon_leer.svg|20px]])
 * km: distance within the collapsed section
 * Name: title of collapsed section

Template:BS4-startCollapsible
Usage:  </tt> with the following parameters:
 * ID: pictogram to use for collapsed section header, defaults to blank ('leer', [[Image:BSicon_leer.svg|20px]])
 * km: distance within the collapsed section
 * Name: title of collapsed section

Template:BS5-startCollapsible
Usage:  </tt> with the following parameters:
 * ID: pictogram to use for collapsed section header, defaults to blank ('leer', [[Image:BSicon_leer.svg|20px]])
 * km: distance within the collapsed section
 * Name: title of collapsed section

Template:BS-endCollapsible
Usage:  </tt>

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

Example

 * }

<pre.raw style="border:0px;overflow:auto;">


 * }

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

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: There are up to 30 variants for each base pictogram ID.
 * (usually three) capital letters which indicate the kind of the pictogram (station, branch, etc.)
 * extra lower case letters for different variants
 * a</tt>: start (from German Anfang), e</tt>: end
 * l</tt>: left, r</tt>: right
 * f</tt>: in down direction (usually away from London) <tt>g</tt>: in up direction (usually towards London)
 * <tt>o</tt>: vertical track on top, <tt>u</tt>: 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:
 * <tt>xp</tt>: Express service – does not stop at this station
 * <tt>x</tt>: Line not in use
 * <tt>t</tt>: Tunnel
 * <tt>e</tt>: Station (etc.) not in use
 * <tt>ex</tt>: Line and station not in use

A reduced table of the pictograms currently available may be found at Route diagram template/Catalog of pictograms.<BR>A directory of symbols can be found at Wikimedia Commons.<BR>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.

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
 * {{legend|#be2d2c|<tt>#be2d2c</tt> for heavy rail [[Image:BSicon BHF.svg|15px]]}}
 * {{legend|#003399|<tt>#003399</tt> for metro / light rail [[Image:BSicon uBHF.svg|15px]]}}
 * Lines not in current use (planned or closed)
 * {{legend|#d77f7e|<tt>#d77f7e</tt> for heavy rail [[Image:BSicon exBHF.svg|15px]]}}
 * {{legend|#6281c0|<tt>#6281c0</tt> for metro / light rail [[Image:BSicon uexBHF.svg|15px]]}}
 * Other features
 * {{legend|#80a080|<tt>#80a080</tt> for elevated [[Image:BSicon ELEV.svg|15px]], bridge [[Image:BSicon BRÜCKE.svg|15px]] or tunnel portal [[Image:BSicon TUNNELa.svg|15px]]}}
 * {{legend|#034ea2|<tt>#034ea2</tt> for accessible station [[Image:BSicon ACC.svg|15px]]}}
 * {{legend|#00a030|<tt>#00a030</tt> for Berlin S-bahn [[Image:BSicon SBHF.svg|15px]]}}
 * {{legend|#000000|<tt>#000000</tt> for cross-platform interchange border [[Image:BSicon CPIC.svg|15px]]}}
 * {{legend|#b3b3b3|<tt>#b3b3b3</tt> for cross-platform interchange strap [[Image:BSicon CPIC.svg|15px]]}}
 * {{legend|#007cc3|<tt>#007cc3</tt> for water [[Image:BSicon WASSER.svg|15px]]}}
 * {{legend|#000000|<tt>#000000</tt> for other features in use (such as [[Image:BSicon FLUG.svg|15px]], [[Image:BSicon ENDEa.svg|15px]])}}
 * {{legend|#aaaaaa|<tt>#aaaaaa</tt> for other features not in use (such as [[Image:BSicon exFLUG.svg|15px]], [[Image:BSicon exENDEa.svg|15px]])}}


 * Naming conventions
 * There are 30 subcodes for each pictogram ID


 * Tompw's Icon Generator may be used to easily create some types of new SVG symbols

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 <tt>KBSv</tt> instead of <tt>BS</tt> there

Design software


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.