Difference between revisions of "Template:BS-header/doc"
Jump to navigation
Jump to search
imported>Jc86035 m (ce) |
imported>Jc86035 m (ce) |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
{{template shortcut|bs-header}} | {{template shortcut|bs-header}} | ||
| − | {{ombox|text=Please use {{tl|Routemap}} or {{tl|BS-map}} instead of this template so you can skip | + | {{ombox|text=Please use {{tl|Routemap}} or {{tl|BS-map}} instead of this template so you can skip {{tl|Railway line header}} and {{tl|BS-table}} altogether. See [[WP:ROUTE]] for more information. Use of {{tl|Routemap}} is currently preferred as it displays correctly on the mobile site.}} |
Title Header for [[Wikipedia:Route diagram template]]. | Title Header for [[Wikipedia:Route diagram template]]. | ||
==Usage== | ==Usage== | ||
Revision as of 10:21, 30 June 2017
| 40px | This is a documentation subpage for Template:BS-header. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | Please use {{Routemap}} or {{BS-map}} instead of this template so you can skip {{Railway line header}} and {{BS-table}} altogether. See WP:ROUTE for more information. Use of {{Routemap}} is currently preferred as it displays correctly on the mobile site. |
Title Header for Wikipedia:Route diagram template.
Usage
{{BS-header|title-text|template-name|background-color|font-color|header-width}}
All parameters are optional.
- title-text: the value that appears in the title bar. It is automatically put in bold face. Defaults to "Route map" if not specified.
- template-name: if present, a mini {{Navbar}} with "v d e" links to the route template will be displayed on the left. If the diagram is directly written in the article instead of a template, just leave it empty.
- background-color: The background color of the livery of the system. The default is #27404E◆.
- font-color: The color of the text font (including that in the Navbar). The default is white. If the title-text value is a link, this value won't affect the link's color. Instead, use the HTML element
<span>like this:[[Green Line|<span style="color:white;">Green Line</span>]]
Alternatively, use the {{LinkColor}} template. - header-width: The width of a header as a fixed width or as a proportion of the width of its containing HTML element (typically, a table). The default is 100%. Tip: it is more effective to set the table width in {{Railway line header}} by applying the #1 parameter (for defining additional CSS styling).
Examples
| Code | Result | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
{|{{railway line header}}
{{BS-header|BS-header example|BS-header|#be2d2c|silver|300px}}
{{BS-table1}}
{{BS|BHF||name placeholder|placeholder1|placeholder2}}
|}
|}
|
| |||||||||
See also
- {{Railway line header}}
- {{Rail-header}}
- {{Rail-header2}}