Wikipedia:Railway line template

From Wikipedia, the free encyclopedia

Shortcut:
WP:TRAIL

The Railway line template is a series of templates originating from the German Wikipedia. The goal of the templates is to provide an uniform layout for railway line infoboxes, currently with the focus on German 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: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-table  : Table header with link to legend
Template:BS-table1  : Table header w/o legend
Template:BS  : Table row existing railway
Template:BSe  : Table row for former railways
Template:BS2  : Table row with two icons
Template:BSkm  : Mini table (for kilometrage changes)

[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: kilometrage of the line
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

Usage: {{BSe|ID|km|Name|Note}} with the same parameters as above. This template is used to denote former railway lines and infrastructure. Its output differs in the following way:

  • Text grey instead of black.
  • Notes in italics.

Same ID as in Template:BS is used for abandoned or removed infrastructure on an existing line. If the ID is prefixed with x the line has been removed as a whole.

The code {{BSe|ID ... results in the same output as {{BS|eID .... However, remember that not every symbol with a preceding 'e' is available.

[edit] Template:BS2 and BS3

Universal templates for a railwaystrip with two or three symbols side by side. This can be used for more complicated railway tracks. Example: de:Hasseler Tunnel. Every line shall contain two or three 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|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: kilometres
  • Parameter4: Text
  • Parameter5: Note
  • Parameter6: Right-aligned note

BS3 requires another ID parameter

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. 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] Catalog of pictograms

To be complete we give you a list of the pictograms which are currently available. There is no need to know them if you use the design program Spoorstrip (see section Design Program 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 a line is no more in use or in a tunnel.

When the prefix is 'e' and your strip has only one column, you can use the template BSe rather than BS, but this is now considered obsolete.

ID (below) Prefix (right) x t e ex symbolises
Stations and stops
BHF Station
KBFa Terminal Line start
KBFe Terminal Line end
KBFl Switchback left
KBFr Switchback right
DST Station without passenger traffic
Depot or freight station
KDSa Depot / freight station at line start
KDSe Depot / freight station at line end
KDSl Depot / freight station facing left
KDSr Depot / freight station facing right
HST Stop, small station
HSTa Stop, small at start of line
HSTe Stop, small at end of line
TurmBHFo High level station
TurmBHFu Low level station
2-way Branches and junctions
ABZlf Branch down direction: to left
ABZrf Branch down direction: to right
ABZlg Branch up direction: to left
ABZrg Branch up direction: to right
ABZrl Fork down direction
ABZlr Fork up direction
ABZgf Fork left direction
ABZfg Fork right direction
ABZ3rf Branch left direction: to up
ABZ3lg Branch left direction: to down
ABZ3lf Branch right direction: to up
ABZ3rg Branch right direction: to down
ABZld Branch both directions: to left
ABZrd Branch both directions: to right
ABZ_ld Branch both directions: to left
ABZ_rd Branch both directions: to right
ABZa Triangle line start
ABZe Triangle line end
3-way Branches and junctions
ABZdf Branch down direction: to left and right
ABZdrf Branch down direction: to left and right
ABZdlf Branch down direction: to left and right
ABZdg Branch up direction: to left and right
ABZdrg Branch up direction: to left and right
ABZdlg Branch up direction: to left and right
ABZdr Branch left direction: up and down
ABZdrr Branch left direction: up and down
ABZdrl Branch left direction: up and down
ABZdl Branch right direction: up and down
ABZdlr Branch right direction: up and down
ABZdll Branch right direction: up and down
4-way Branches and junctions
KRZ Arg 4-way (SW only)
KRZBHF 4-way with station
KRZ Flat crossing
KRZo Bridge over other line
KRZu Other line on bridge
Curves for multicolumn templates like BS2 and BS3
STRlf Curve down direction: to left
STRrf Curve down direction: to right
STRlg Curve up direction: to left
STRrg Curve up direction: to right
Junctions/Stops/Stations with underground/subway
SBHF (interchange) Station
SBHF1 Station regional or long distance
SHST Stop
SKBFa Terminal Line start
SKBFe Terminal Line end
SKBF1a Terminal regional or long distance, start
SKBF1e Terminal regional or long distance, end
Junctions/Stops/Stations with underground/subway
UKRZu Grade-separated junction upper
UKRZo Grade-separated junction lower
UTurmBHFu High level station
UTurmBHFo Low level station
Track for light railways (underground/subway/tramway)
uSTR Line
uHSTR Horizontal line
uSTRlf Curve down direction: to left
uSTRrf Curve down direction: to right
uSTRlg Curve up direction: to left
uSTRrg Curve up direction: to right
Miscellaneous infrastructure
BRÜCKE Bridge
BRÜCKE1 Bridge
BRÜCKE2 Bridge
WBRÜCKE Bridge across water
SBRÜCKE Road bridge
TUNNEL1 Tunnel
TUNNEL2 Tunnel use when several in a row
TUNNELa Tunnel Start
TUNNELe Tunnel End
Others
KMW Change of kilometrage
cf. Template:BSkm
GRENZE Border
BRÜCKE+GRENZE Border on bridge
ÜST Track switch
BUE Railway crossing
STR Line Comments
HSTR Horizontal line Comments
HBHF Station on horizontal line
LUECKE Interruption
TRAJEKT Ferry
ENDEa Line end on open line Start
ENDEe Line end on open line End
AKRZo Motorway underpass
AKRZu Motorway overpass

A directory of symbols can be found at Wikimedia Commons. New symbols can be generated via Tompw's icon generator

[edit] Example

Railway to Valley
Ypseltalbahn to Ypselheim
0,0 Mycity Station Endbahnhof Template:Tube-B-S1
Effviadukt 1.077 m
Jotbahn to Cehfurt
3,2 Mycity-Ost
Jotbahn to Cehfurt
4,1 Mycity-Zettheim Güterbahnhof
Kahbergtunnel 328 m
Strecke zum Airport Template:Tube-B-S1
7,2 Mycity-Wildpark bis 1955
9,5 Ellheim Keilbahnhof
Qubahn to Emmdorf
11,0 Üst Ennsee
13,1 Emmlingen
Kahbahn to Cehfurt
14,8 Ohchen
Kahbahn to Vauhofen
in use until 1988
Behlingen
{| {{Railway line header}}
{{BS-header|Railway to Valley}}
{{BS-table}}
{{BS|STR||[[Railway|Ypseltalbahn]] to Ypselheim}}
{{BS|BHF|0,0|[[Station|Mycity Station]]|4=Endbahnhof {{Tube-B-S1}}}}
{{BS|BRÜCKE||Effviadukt|1.077 m}}
{{BS|ABZrf||[[Railway|Jotbahn]] to Cehfurt}}
{{BS|HST|3,2|[[City|Mycity]]-Ost}}
{{BS|ABZlg||Jotbahn to Cehfurt}}
{{BS|DST|4,1|Mycity-[[Ortsteil|Zettheim]]|Güterbahnhof}}
{{BS|TUNNEL1||Kahbergtunnel|328 m}}
{{BS|ABZlf||Strecke zum [[Airport|Airport]]|4={{Tube-B-S1}}}}
{{BSe|HST|7,2|Mycity-Wildpark|bis 1955}}
{{BS|BHF|9,5|[[City|Ellheim]]|[[Keilbahnhof]]}}
{{BS|ABZrf||[[Railway|Qubahn]] to Emmdorf}}
{{BS|ÜST|11,0|[[Überleitstelle|Üst]] Ennsee}}
{{BS|BHF|13,1|[[City|Emmlingen]]}}
{{BS|ABZlg||[[Railway|Kahbahn]] to Cehfurt}}
{{BS|BHF|14,8|[[City|Ohchen]]}}
{{BS|xABZlf||Kahbahn to Vauhofen}}
{{BSe|xSTR|||in use until 1988}}
{{BSe|xKBFe||[[City|Behlingen]]}}
|}
|}

This example shows that links are possible. Since this is only a fictitional railway, the links are just links to general things like City or Railway, but in reality they should link to real cities etcetera..

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.
  • Man kann bei Abzweigen weitere Streckenartikel erwähnen, auf deren Linien im Personenverkehr umgestiegen werden kann.
  • Auch bei Keilbahnhöfen die Abzweige so darstellen, als würden die Strecken im Bahnhof zusammenlaufen, damit die Umsteigemöglichkeit klar wird. Hier kann man in der Anmerkung „Keilbahnhof“ eintragen, um Experten klar zu machen, dass dies bekannt ist.
  • 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.
  • Am Streckenanfang und -Ende Fortsetzungsstrecken mit STR angeben, sofern vorhanden.
  • Bei Abzweigungen und Fortsetzungen in Fahrtrichtung „Strecke nach X“ formulieren, bei Gegenrichtung „Strecke von X“.

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

  • Use SVG files. (previous ones have been created using CORELDraw, but it can also be done with Inkscape or an html (text) editor)
  • Please upload files to Wikimedia Commons.
  • Symmetry to the "main line" which uses 20% of the existing images' width.
  • Colours (hex-RGB): #be2d2c for existing, #d77f7e for former rail lines.
  • Naming conventions

[edit] Test Circuit

Not implemented on en: yet

Auf der Teststrecke Wikipedia Diskussion:Formatvorlage Bahnstrecke/BS Test können neue Icons gefahrlos ausprobiert werden. (Achtung: Dort heißt die Universalvorlage KBSv anstatt BS.)


[edit] Design software

Computer program Spoorstrip.exe
Computer program Spoorstrip.exe

A free computer program 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 Spoorstrip/@/gmail.com to obtain it.