模板:BS-map/doc
| 茲萆文件是模板:BS-map其文件子頁面 (見頁面自家)。 茲萆頁面有用法信息、分類共其它伓是原底頁面其內容。 |
This is a shorthand template which groups the deprecated templates {{Railway line header}}, {{BS-header}} and {{BS-table}} into a single entity to simplify the creation of Route Diagram Templates.
Usage
[Gāi nguòng-mā]| {{{title}}} | |||
|---|---|---|---|
|
{{{top}}} | |||
| |||
|
{{{bottom}}} |
{{BS-map |navbar = |title = |title-bg = |bg = |collapsible = |collapse = |style = |width = |top = |legend = |map-title = |map = |mapn-title = |mapn = |bottom = }} |
required
recommended
optional
|
Notes
[Gāi nguòng-mā]- n represents a number 2 through 10
- For diagrams with collapsible section(s) embedded in an infobox, the collapsible section must be ended with
{{end}}instead of|}. Otherwise the box will end immediately after the collapsible section.
Parameters
[Gāi nguòng-mā]Example
[Gāi nguòng-mā] Station layout | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Platform level | |||||||||||||||||||
| Gĭ-buōng cṳ̆-lâiu | |||||||||||||||||||
| Tracks | 2 | ||||||||||||||||||
| Lĭk-sṳ̄ | |||||||||||||||||||
| Kŭi-tŭng | 1935 nièng 5 nguŏk 15 hô̤ | ||||||||||||||||||
| |||||||||||||||||||
{{Infobox station
|name = {{color box|orange}} Station layout
|image = Placeholder.svg
|image_size = 150px
|image_caption = Platform level
|opened = {{Start date|1935|05|15|df=y}}
|tracks = 2
|route_map =  
{{BS-map
|inline = 1
|legend = track
|map =
{{BS2|STR|STR}}
{{BS2-startCollapsible|STRg|STRf||}}
{{BS2|KRWgl+l|KRWgr+r||[[Scissors crossover]]}}
{{end}}
{{BS2|STR|STR|tw=200px}}
{{BS2|STR+BSr|STR+BSl||[[Side platform]]s}}
{{BS2|STR+BSr|STR+BSl}}
{{BS2|STRg|STRf||}}
|bottom = † Diagram not to scale
}}
}}
Supporting template
[Gāi nguòng-mā]TemplateData
[Gāi nguòng-mā]See the monthly error report for this template.
TemplateData for BS-map
An infobox template to contain the diagram created with Route Diagram Template standard.
| 參數 | 描述 | 類型 | 狀態 | |
|---|---|---|---|---|
| navbar in header | navbar | Specify the template name if your map is written in a separated template page, it will include a mini bracketed template Navbar in the title bar. Leave this parameter blank if you directly use this template in the article. | 字串 | 建議 |
| Background color of the title bar | title-bg | Background color of the title bar to indicate a color appropriate to the subject.
| 字串 | 非必填 |
| Note above | top | Optional note above the map, directly below the header row. | 字串 | 非必填 |
| Floating alignment | float | Change which side of the template floats to. Default set to right. Values 'left' and 'center' are acceptable for their literal meanings. | 字串 | 非必填 |
| Additional CSS | style | Additional CSS syntax which defines the style of the whole box. It is useful when you are transcluding this map box into other infobox, e.g. add border:0px;width:100% to remove the border and let it fully stretch inside the infobox. | 字串 | 非必填 |
| inline switch | inline | Disables title and collapsible function, remove floating, margin and border, widens template width to 100% for transcluding this template into other templates such as {{Infobox rail line}}. If code of the diagram is not transcluded, but is contained within the code of the infobox,   should be added before {{BS-map}} to force proper table layout. | 字串 | 非必填 |
| Width of the whole box. | width | Width of the whole box. Can be overridden by style entry. | 字串 | 非必填 |
| collapsible or not | collapsible | Allow the box collapsible or not.
| 字串 | 非必填 |
| Collapse state | collapse | Collapse state of the whole box. For templates that are collapsed, it is recommended to use the string “|collapse = {{collapse|<includeonly>yes</includeonly>}}” so that the template will display in expanded form when viewing the template's page.
| 字串 | 非必填 |
| Legend page link | legend | Legend page link
| 字串 | 非必填 |
| map title | map-title | Optional title for map | 字串 | 非必填 |
| 1st map space | map | Add BSn row templates in this parameter to construct a diagram. | 內容 | 必填 |
| map2 title | map2-title | Optional title for map2 | 字串 | 非必填 |
| 2nd map space | map2 | Add BSn row templates in this parameter to construct a diagram. | 內容 | 非必填 |
| map3 title | map3-title | Optional title for map3 | 字串 | 非必填 |
| 3rd map space | map3 | Add BSn row templates in this parameter to construct a diagram. | 內容 | 非必填 |
| map4 title | map4-title | Optional title for map4 | 字串 | 非必填 |
| 4th map space | map4 | Add BSn row templates in this parameter to construct a diagram. | 內容 | 非必填 |
| map5 title | map5-title | Optional title for map5 | 字串 | 非必填 |
| 5th map space | map5 | Add BSn row templates in this parameter to construct a diagram. | 內容 | 非必填 |
| map centered? | map-centered | Any value makes this map centered | 字串 | 不建議使用 |
| map2 centered? | map2-centered | Any value makes this map centered | 字串 | 不建議使用 |
| map3 centered? | map3-centered | Any value makes this map centered | 字串 | 不建議使用 |
| map4 centered? | map4-centered | Any value makes this map centered | 字串 | 不建議使用 |
| map5 centered? | map5-centered | Any value makes this map centered | 字串 | 不建議使用 |
| Collapsible or not of map | map-collapsible | Allow the map collapsible or not. no by default, yes will call the expand collapse button. You MUST have something written in the mapn-title otherwise the mapn-collapsible alone is not enough to turn it on.
| 字串 | 非必填 |
| Collapsible or not of map2 | map2-collapsible | Allow the map collapsible or not. no by default, yes will call the expand collapse button. You MUST have something written in the mapn-title otherwise the mapn-collapsible alone is not enough to turn it on.
| 字串 | 非必填 |
| Collapsible or not of map3 | map3-collapsible | Allow the map collapsible or not. no by default, yes will call the expand collapse button. You MUST have something written in the mapn-title otherwise the mapn-collapsible alone is not enough to turn it on.
| 字串 | 非必填 |
| Collapsible or not of map4 | map4-collapsible | Allow the map collapsible or not. no by default, yes will call the expand collapse button. You MUST have something written in the mapn-title otherwise the mapn-collapsible alone is not enough to turn it on.
| 字串 | 非必填 |
| Collapsible or not of map5 | map5-collapsible | Allow the map collapsible or not. no by default, yes will call the expand collapse button. You MUST have something written in the mapn-title otherwise the mapn-collapsible alone is not enough to turn it on.
| 字串 | 非必填 |
| Collapse state of map | map-collapse | yes for collapsing, no by default.
| 字串 | 非必填 |
| Collapse state of map2 | map2-collapse | yes for collapsing, no by default.
| 字串 | 非必填 |
| Collapse state of map3 | map3-collapse | yes for collapsing, no by default.
| 字串 | 非必填 |
| Collapse state of map4 | map4-collapse | yes for collapsing, no by default.
| 字串 | 非必填 |
| Collapse state of map5 | map5-collapse | yes for collapsing, no by default.
| 字串 | 非必填 |
| Note below | bottom | Optional note below the map. This is also the good place to include the template Navbar if you do not want to display it in the title bar. | 字串 | 非必填 |
| Note below style | bottomstyle | Optional CSS style for the note below the map, for example text-align:center;. | 字串 | 非必填 |