Wikipedia: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 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.
[edit] Templates
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
|
|
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|London St. Pancras]]'''}}
{{BS|TUNNEL1}}
{{BS|eHST||[[Stratford International station|Stratford International]]|(Not yet open)}}
{{BS|TUNNEL1}}
{{BS|WTUNNEL1|||[[River Thames]]}}
{{BS|HST|0:15|[[Ebbsfleet International railway station|Ebbsfleet International]]}}
{{BS|eABZlg|||[[Fawkham Junction]] route to [[London Waterloo]] to 2007}}
{{BS|HST|0:30|[[Ashford International railway station|Ashford International]]}}
{{BS|TUNNELa}}
{{BS|tGRENZE|||[[Channel Tunnel]] (''0:21 transit'')}}
{{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|||}}
{{BS3|STRrg|ABZrf|KBFe|1:51|'''[[Brussels-South]]'''}}
{{BS3|KBFe|ABZlf|STRlg|2:15|'''[[Gare du Nord|Paris Gare du Nord]]'''}}
{{BS3||STR|HSTe|2:33|'''[[Marne-la-Vallée – Chessy]]'''|(Disneyland)}}
{{BS3|STRrg|ABZrf||}}
{{BS3|HSTe|STR||5:40|'''[[Avignon]] Centre'''}}
{{BS|HST|6:27|[[Moûtiers]]|(ski)}}
{{BS|eHST|6:59|[[La Plagne|Aime la Plagne]]|(ski: ''set down only'')}}
{{BS|HSTe|7:17|'''[[Bourg Saint Maurice]]'''|(ski)}}
|}
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.
* {{BS-endCollapsible}} is not needed when
- the collapsible section extends to the end of the diagram. Use |} instead to close table.
- 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', Image:BSicon leer.svg)
- 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', Image:BSicon leer.svg)
- 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', Image:BSicon leer.svg)
- 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', Image:BSicon leer.svg)
- 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', Image:BSicon leer.svg)
- 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
{| {{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)}}
|}
|}
- 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
- #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
, )
- 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
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 Spoorstrip gmail.com to obtain it.
[edit] See also
|