साँचा:BS-map
{{{title}}} | |||
---|---|---|---|
{{{top}}} | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
{{{bottom}}} |
Documentation
संपादित करें This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
Use the superseding {{Routemap}} for shorter loading time and smaller template size! Its use is currently preferred as it displays correctly on the mobile site. |
This is a shorthand template which groups the deprecated templates {{Railway line header}}, {{BS-header}} and {{BS-table}} all in one single entity to ease the creation of standalone Wikipedia:Route diagram template tables.
Usage
संपादित करें{{{title}}} | |||
---|---|---|---|
{{{top}}} | |||
| |||
| |||
{{{bottom}}} |
{{BS-map | style = | title = | title-bg = | navbar = | collapsible = | collapse = | width = | top = | legend = | bg = | map-title = | map = | map2-title = | map2 = | bottom = }}
Note
संपादित करें- Any manually written new row of map should replace the
|
by{{!}}
. - If you are using in-diagram collapsible section which begins with {{BS-startCollapsible}} or {{BS2-startCollapsible}}, the ending of the collapsible section must be
{{end}}
instead of|}
. Otherwise the box will end immediately after the collapsible section.
Parameters
संपादित करेंExample
संपादित करें Station layout | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
सामान्य जानकारी | |||||||||||||||||||||||||||||||||||||||||||
ट्रैक | 2 | ||||||||||||||||||||||||||||||||||||||||||
इतिहास | |||||||||||||||||||||||||||||||||||||||||||
प्रारंभ | 15 मई 1935 | ||||||||||||||||||||||||||||||||||||||||||
|
{{Infobox station | name = {{color box|orange}} Station layout | image = Placeholder.png | 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|PSTR(R)|PSTR(L)||[[Side platform]]s}} {{BS2|PSTR(R)|PSTR(L)}} {{BS2|STRg|STRf||}} | bottom = † Diagram not to scale }} }}
TemplateData
संपादित करेंTemplateData for BS-map
An infobox template to contain the diagram created with Route Diagram Template standard.
पैरामीटर | विवरण | प्रकार | स्थिति | |
---|---|---|---|---|
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. | स्ट्रिंग | वैकल्पिक |
Background color of the title bar | title-bg | Background color of the title bar to indicate the livery color of the subject. But this is preferable not to be applied as per WP:COLOR and instead use template color box or icon image next to the title text.
| स्ट्रिंग | वैकल्पिक |
navbar on box 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. | स्ट्रिंग | वैकल्पिक |
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
| स्ट्रिंग | वैकल्पिक |
1st map space | map | Add BSn row templates in this parameter to construct a diagram. | सामग्री | आवश्यक |
2nd map space | map2 | Add BSn row templates in this parameter to construct a diagram. | सामग्री | वैकल्पिक |
3rd map space | map3 | Add BSn row templates in this parameter to construct a diagram. | सामग्री | वैकल्पिक |
4th map space | map4 | Add BSn row templates in this parameter to construct a diagram. | सामग्री | वैकल्पिक |
5th map space | map5 | Add BSn row templates in this parameter to construct a diagram. | सामग्री | वैकल्पिक |
map title | map-title | Optional title for map | स्ट्रिंग | वैकल्पिक |
map2 title | map2-title | Optional title for map2 | स्ट्रिंग | वैकल्पिक |
map3 title | map3-title | Optional title for map3 | स्ट्रिंग | वैकल्पिक |
map4 title | map4-title | Optional title for map4 | स्ट्रिंग | वैकल्पिक |
map5 title | map5-title | Optional title for map5 | स्ट्रिंग | वैकल्पिक |
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 above | top | Optional note above the map, directly below the header row. | स्ट्रिंग | वैकल्पिक |
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;. | स्ट्रिंग | वैकल्पिक |
ऊपर दिए गए निर्देश साँचा:BS-map/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |