Difference between revisions of "Template:Deutsche Bahn station codes"

From blackwiki
Jump to navigation Jump to search
imported>Izkala
(simply omit if no ds100 or category)
imported>MusikAnimal
m (Protected "Template:Deutsche Bahn station codes": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#if:{{{code|}}}|{{{code}}}|{{#if:{{{ds100|}}}{{{category|}}}|n/a}}}}{{#if:{{{ds100|}}}|</td></tr><tr><th scope="row">[[List of Deutsche Bahn station abbreviations|DS100 code]]</th><td>{{{ds100}}}}}{{#if:{{{category|}}}|</td></tr><tr><th scope="row">[[German railway station categories|Category]]</th><td>{{{category}}}}}<noinclude>
+
{{#if:{{{code|}}}|{{{code}}}|{{#if:{{{ds100|}}}{{{category|}}}{{{ibnr|}}}|n/a}}}}{{#if:{{{ds100|}}}|</td></tr><tr><th scope="row">[[List of Deutsche Bahn station abbreviations|DS100 code]]</th><td>{{{ds100}}}}}{{#if:{{{ibnr|}}}|</td></tr><tr><th scope="row"><abbr title="Internationale Bahnhofsnummer">IBNR</abbr></th><td>{{{ibnr}}}}}{{#if:{{{category|}}}|</td></tr><tr><th scope="row">[[German railway station categories|Category]]</th><td>{{{category}}}}}<noinclude>
 
{{Documentation|content=
 
{{Documentation|content=
 
This template can be used in conjunction with {{tl|Infobox station}} to list [[Deutsche Bahn|DB]]-specific codes.
 
This template can be used in conjunction with {{tl|Infobox station}} to list [[Deutsche Bahn|DB]]-specific codes.
  
 
<pre>
 
<pre>
{{Deutsche Bahn station codes|code=|ds100=|category=}}
+
{{Deutsche Bahn station codes|code=|ds100=|ibnr=|category=}}
 
</pre>
 
</pre>
  
Line 12: Line 12:
 
  | code = 9999
 
  | code = 9999
 
  | ds100 = XY
 
  | ds100 = XY
 +
| ibnr = 12345678
 
  | category = 1
 
  | category = 1
 
  }}
 
  }}
Line 20: Line 21:
 
  | code = 9999
 
  | code = 9999
 
  | ds100 = XY
 
  | ds100 = XY
 +
| ibnr = 12345678
 
  | category = 1
 
  | category = 1
 
  }}
 
  }}

Latest revision as of 17:20, 9 October 2017

Template documentation

This template can be used in conjunction with {{Infobox station}} to list DB-specific codes.

{{Deutsche Bahn station codes|code=|ds100=|ibnr=|category=}}

Example

Other information
Station code9999
DS100 codeXY
IBNR12345678
Category1
Script error: No such module "Parameter validation".
{{Infobox station
| code = {{Deutsche Bahn station codes
 | code = 9999
 | ds100 = XY
 | ibnr = 12345678
 | category = 1
 }}
}}