Difference between revisions of "Template:BS-any/doc"

From blackwiki
Jump to navigation Jump to search
imported>Peterwhy
m ({{BS warning}} moved to doc)
imported>Peterwhy
(Update doc with parameter naming)
Line 3: Line 3:
  
 
Template for '''BS-table''' row comprising seven symbols.
 
Template for '''BS-table''' row comprising seven symbols.
* Parameter1 ... Parameter10: ID of 1st.,. 10th Image (<code>leer</code> or leave blank for no symbol). '''IMPORTANT: The list of icons must come ''before'' any other parameters'''
+
* {{para|n}}: number of icons
 
+
* Parameter 1 ... Parameter {{varserif|n}}: IDs of 1st to {{varserif|n}}th Image (<code>leer</code> or leave blank for no symbol). '''IMPORTANT: The list of icons must come ''before'' any other parameters'''
* '''<code>mile</code>''' mileage 8
+
* Parameter {{varserif|n}}+1: kilometerage
* '''<code>km</code>''' kilometerage
+
* Parameter {{varserif|n}}+2: Name
* '''<code>name</code>''' Name 9
+
* Parameter {{varserif|n}}+3: Note 1
* '''<code>note1</code>''' Note 1 10
+
* Parameter {{varserif|n}}+4: Note 2 - right-aligned
* '''<code>note2</code>''' Note 2 - right-aligned 11
+
** designated parameter {{para|PX}}: Width of image ( e.g. PX=50px), default {{BSpx}}  
* '''<code>icons</code>''' number of icons
+
** designated parameter {{para|HI}}: Use CSS class "highlight", in order to emphasize certain sections, example see Seetalbahn  
** designated parameter PX: Width of image ( e.g. PX=50px), default {{BSpx}}  
+
** designated parameter {{para|O1}}, ..., {{para|O{{varserif|n}}}}: ID of the '''O'''verlapping image on the 1st, 2nd, 3rd, 4th, 5th, 6th or 7th image respectively
** designated parameter HI: Use CSS class "highlight", in order to emphasize certain sections, example see Seetalbahn  
 
** designated parameter O1, O2, O3, O4, O5, O6, O7: ID of the '''O'''verlapping image on the 1st, 2nd, 3rd, 4th, 5th, 6th or 7th image respectvely
 
 
 
  
 
=== Example ===
 
=== Example ===
The text <tt>'''<nowiki>{{BS-any|icons=4|STR|uBHF|RP2|WASSER|km=0.0|name=Station|note1=Highway|note2=River|PX=20px}}</nowiki>'''</tt> produces this map row:
+
The text <code><nowiki>{{BS-any|n=5|uBHF||RP2|WASSER||0.0|Station|Highway|River|PX=25px}}</nowiki></code> produces this map row:
  
 
{{BS-map
 
{{BS-map
 
|map=
 
|map=
{{BS-any|icons=4|STR|uBHF|RP2|WASSER|km=0.0|name=Station|note1=Highway|note2=River|PX=20px}}
+
{{BS-any|n=5|uBHF||RP2|WASSER||0.0|Station|Highway|River|PX=25px}}
 
}}
 
}}
  
 
<includeonly>[[Category:Route diagram templates|any]]</includeonly>
 
<includeonly>[[Category:Route diagram templates|any]]</includeonly>

Revision as of 01:33, 15 December 2016

Template for BS-table row comprising seven symbols.

  • |n=: number of icons
  • Parameter 1 ... Parameter Template:Varserif: IDs of 1st to Template:Varserifth Image (leer or leave blank for no symbol). IMPORTANT: The list of icons must come before any other parameters
  • Parameter Template:Varserif+1: kilometerage
  • Parameter Template:Varserif+2: Name
  • Parameter Template:Varserif+3: Note 1
  • Parameter Template:Varserif+4: Note 2 - right-aligned
    • designated parameter |PX=: Width of image ( e.g. PX=50px), default 20px
    • designated parameter |HI=: Use CSS class "highlight", in order to emphasize certain sections, example see Seetalbahn
    • designated parameter |O1=, ..., |OTemplate:Varserif=: ID of the Overlapping image on the 1st, 2nd, 3rd, 4th, 5th, 6th or 7th image respectively

Example

The text {{BS-any|n=5|uBHF||RP2|WASSER||0.0|Station|Highway|River|PX=25px}} produces this map row:

0.0 Station
Highway
River