Difference between revisions of "Template:BS-any/doc"
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. | ||
| − | * | + | * {{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''' | |
| − | * | + | * Parameter {{varserif|n}}+1: kilometerage |
| − | + | * Parameter {{varserif|n}}+2: Name | |
| − | * | + | * Parameter {{varserif|n}}+3: Note 1 |
| − | * | + | * Parameter {{varserif|n}}+4: Note 2 - right-aligned |
| − | * | + | ** designated parameter {{para|PX}}: Width of image ( e.g. PX=50px), default {{BSpx}} |
| − | + | ** 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, | ||
| − | |||
=== Example === | === Example === | ||
| − | The text < | + | 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| | + | {{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
| 40px | This is a documentation subpage for Template:BS-any. It contains usage information, categories and other content that is not part of the original template page. |
| 50px | This template is part of the project:route diagram template and currently a work in progress. While it may be safe to use in the article namespace, there may be unexpected glitches or bugs, so use with caution. |
Template for BS-table row comprising seven symbols.
|n=: number of icons- Parameter 1 ... Parameter Template:Varserif: IDs of 1st to Template:Varserifth Image (
leeror 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
- designated parameter
Example
The text {{BS-any|n=5|uBHF||RP2|WASSER||0.0|Station|Highway|River|PX=25px}} produces this map row:
|