টেমপ্লেট:BS-map
{{{title}}} | |||
---|---|---|---|
{{{top}}} | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
{{{bottom}}} |
এই টেমপ্লেটটিতে সিনট্যাক্সের জটিল ব্যবহার হয়েছে।
টেমপ্লেটটিতে সম্পাদনা করার আগে আপনাকে এটির সেটাপ ও পার্সার ফাংশন সম্পর্কে ভালো ধারণা নেবার জন্য উৎসাহিত করা হচ্ছে। যদি আপনার সম্পাদনা কোনো সমস্যার সৃষ্টি করে তবে তা বাতিল করুন, কারণ টেমপ্লেটটি অনেকগুলো পাতায় ব্যবহৃত হতে পারে, যা সবখানে সমস্যার সৃষ্টি করবে। মনে রাখবেন, আপনি যদি কোনো পরীক্ষা-নিরীক্ষা করতে চান, তবে এখানে প্রয়োগ করার আগে তা সাধারণ টেমপ্লেট খেলাঘর বা আপনার ব্যবহারকারী উপপাতায় প্রয়োগ করে দেখতে পারেন। |
This is a shorthand template which groups {{Railway line header}}, {{BS-header}} and {{BS-table}} all in one single entity to ease the creation of standalone Wikipedia:Route diagram template table. If your map is transcluded in another infobox, you may consider using {{BS-table3}} in the map template rather than this one.
Parameters
[সম্পাদনা]Parameter names | Function |
---|---|
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. |
width | Width of the whole box. Can be overridden by style entry. No default value because it will void the tw parameter in the BSn row template which is applied to override the text column width of BSn row collapsible section. |
title | Title of the map. |
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 {{colorbox}} or icon image next to the title text. White by default. |
title-color | Font color of title text. Black by default. |
navbar | Specify the template name if your map is written in a separated template page, it will include a mini bracketed {{Navbar}} in the title bar. Leave this parameter blank if you directly use this template in the article. |
collapsible | Allow the box collapsible or not. yes by default, no will void the "expand/collapse" button. |
collapse | Collapse state of the whole box. yes for collapsing, no by default. |
legend | Legend page link:
|
map | BS row templates which comprise the diagram. |
mapn | n represents numbers 2 to 10. Additional map space. By separating maps into different map parameters, the column alignment of the maps will not implicate to each other. This is useful if you are displaying two maps, one uses the ordinary BSn row templates (single-side text columns) and the other one uses BSn-2 (dual-side text columns) which are not compatible to each other. |
map-title mapn-title |
n represents numbers 2 to 10. Optional title header for each map. |
map-collapsible mapn-collapsible |
n represents numbers 2 to 10. Allow the individual 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. |
map-collapse mapn-collapse |
n represents numbers 2 to 10. Collapse state of the individual map. yes for collapsing, no by default. |
bg | Background color of the whole digram, including the text column in the row templates. |
top | Optional note above the map. This is also the good place to include the {{BS-Infobox}} or {{Infobox UK railway}} for lining up image, line length and other informations. |
bottom | Optional note below the map. Also a good place to include the {{Navbar}} if you do not want to display it in the title bar. |
An infobox template to contain the diagram created with Route Diagram Template standard.
প্যারামিটার | বিবরণ | ধরন | অবস্থা | |
---|---|---|---|---|
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.
| স্ট্রিং | ঐচ্ছিক |
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 colorbox 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.
| স্ট্রিং | ঐচ্ছিক |
6th map space | map6 | Add BSn row templates in this parameter to construct a diagram.
| স্ট্রিং | ঐচ্ছিক |
7th map space | map7 | Add BSn row templates in this parameter to construct a diagram.
| স্ট্রিং | ঐচ্ছিক |
8th map space | map8 | Add BSn row templates in this parameter to construct a diagram.
| স্ট্রিং | ঐচ্ছিক |
9th map space | map9 | Add BSn row templates in this parameter to construct a diagram.
| স্ট্রিং | ঐচ্ছিক |
10th map space | map10 | 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
| স্ট্রিং | ঐচ্ছিক |
map6 title | map6-title | Optional title for map6
| স্ট্রিং | ঐচ্ছিক |
map7 title | map7-title | Optional title for map7
| স্ট্রিং | ঐচ্ছিক |
map8 title | map8-title | Optional title for map8
| স্ট্রিং | ঐচ্ছিক |
map9 title | map9-title | Optional title for map9
| স্ট্রিং | ঐচ্ছিক |
map10 title | map10-title | Optional title for map10
| স্ট্রিং | ঐচ্ছিক |
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.
| স্ট্রিং | ঐচ্ছিক |
Collapsible or not of map6 | map6-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 map7 | map7-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 map8 | map8-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 map9 | map9-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 map10 | map10-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.
| স্ট্রিং | ঐচ্ছিক |
Collapse state of map6 | map6-collapse | yes for collapsing, no by default.
| স্ট্রিং | ঐচ্ছিক |
Collapse state of map7 | map7-collapse | yes for collapsing, no by default.
| স্ট্রিং | ঐচ্ছিক |
Collapse state of map8 | map8-collapse | yes for collapsing, no by default.
| স্ট্রিং | ঐচ্ছিক |
Collapse state of map9 | map9-collapse | yes for collapsing, no by default.
| স্ট্রিং | ঐচ্ছিক |
Collapse state of map10 | map10-collapse | yes for collapsing, no by default.
| স্ট্রিং | ঐচ্ছিক |
Optional note above the map. | top | This is also the good place to include the template BS-Infobox or template Infobox UK railway for lining up image, line length and other information.
| স্ট্রিং | ঐচ্ছিক |
Optional note below the map. | bottom | This is also the good place to include the template Navbar if you do not want to display it in the title bar.
| স্ট্রিং | ঐচ্ছিক |
Usage
[সম্পাদনা]{{BS-map |style = |title = |title-bg = |navbar = |collapsible = |collapse = |width = |top = |legend = |bg = |map-title = |map = |map2-title = |map2 = |bottom = }}
Note
[সম্পাদনা]- Since this template table applies Infobox class it is float to right by default. If you want to align it to center or left, you need to apply the style parameter by adding
float:none; margin:auto
orfloat:left
respectively. Alternatively you can include this template in another table which aligns to center or left like so:
{|align=center | {{BS-map}} |}
- Any manually written new row 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
{{!}}}
instead of|}
. Otherwise the box will end immediately after the collapsible section.
Example
[সম্পাদনা]Station layout | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
† Diagram not to scale |