Predloga:BS-map/dok

Iz Wikipedije, proste enciklopedije

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[uredi kodo]

{{{title}}}

{{{top}}}

 {{{map-title}}} 
{{{map}}}
 {{{map2-title}}} 
{{{map2}}}

{{{bottom}}}

{{BS-map
| style = 
| title = 
| title-bg = 
| navbar = 
| collapsible = 
| collapse = 
| width = 
| top = 
| legend = 
| bg = 
| map-title = 
| map = 
| map2-title = 
| map2 = 
| bottom = 
}}

Note[uredi kodo]

  • 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[uredi kodo]

Predloga:BS-map/parameters

Example[uredi kodo]

BS-map/dok
Placeholder.png
{{{caption}}}
Splošno
Dolžina postaje
Tiri (dolžina)
Peroni (dolžinaxširina):
Signalnovarnostne naprave:
Vir:
{{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|STR+BSr|STR+BSl||[[Side platform]]s}}
{{BS2|STR+BSr|STR+BSl}}
{{BS2|STRg|STRf||}}
| bottom = † Diagram not to scale
}}
}}

Supporting template[uredi kodo]

TemplateData[uredi kodo]

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za BS-map

An infobox template to contain the diagram created with Route Diagram Template standard.

Parametri predloge[Urejanje podatkov predloge]

ParameterOpisVrstaStanje
Floating alignmentfloat

Change which side of the template floats to. Default set to right. Values 'left' and 'center' are acceptable for their literal meanings.

Nizneobvezno
Additional CSSstyle

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.

Nizneobvezno
inline switchinline

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.

Nizneobvezno
Width of the whole box.width

Width of the whole box. Can be overridden by style entry.

Nizneobvezno
Background color of the title bartitle-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.

Privzeto
white
Nizneobvezno
navbar on box headernavbar

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.

Nizneobvezno
collapsible or notcollapsible

Allow the box collapsible or not.

Privzeto
yes
Nizneobvezno
Collapse statecollapse

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.

Privzeto
no
Nizneobvezno
Legend page linklegend

Legend page link

Privzeto
route
Nizneobvezno
1st map spacemap

Add BSn row templates in this parameter to construct a diagram.

Vsebinazahtevano
2nd map spacemap2

Add BSn row templates in this parameter to construct a diagram.

Vsebinaneobvezno
3rd map spacemap3

Add BSn row templates in this parameter to construct a diagram.

Vsebinaneobvezno
4th map spacemap4

Add BSn row templates in this parameter to construct a diagram.

Vsebinaneobvezno
5th map spacemap5

Add BSn row templates in this parameter to construct a diagram.

Vsebinaneobvezno
map titlemap-title

Optional title for map

Nizneobvezno
map2 titlemap2-title

Optional title for map2

Nizneobvezno
map3 titlemap3-title

Optional title for map3

Nizneobvezno
map4 titlemap4-title

Optional title for map4

Nizneobvezno
map5 titlemap5-title

Optional title for map5

Nizneobvezno
map centered?map-centered

Any value makes this map centered

Nizneobvezno
map2 centered?map2-centered

Any value makes this map centered

Nizneobvezno
map3 centered?map3-centered

Any value makes this map centered

Nizneobvezno
map4 centered?map4-centered

Any value makes this map centered

Nizneobvezno
map5 centered?map5-centered

Any value makes this map centered

Nizneobvezno
Collapsible or not of mapmap-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.

Privzeto
no
Nizneobvezno
Collapsible or not of map2map2-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.

Privzeto
no
Nizneobvezno
Collapsible or not of map3map3-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.

Privzeto
no
Nizneobvezno
Collapsible or not of map4map4-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.

Privzeto
no
Nizneobvezno
Collapsible or not of map5map5-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.

Privzeto
no
Nizneobvezno
Collapse state of mapmap-collapse

yes for collapsing, no by default.

Privzeto
no
Nizneobvezno
Collapse state of map2map2-collapse

yes for collapsing, no by default.

Privzeto
no
Nizneobvezno
Collapse state of map3map3-collapse

yes for collapsing, no by default.

Privzeto
no
Nizneobvezno
Collapse state of map4map4-collapse

yes for collapsing, no by default.

Privzeto
no
Nizneobvezno
Collapse state of map5map5-collapse

yes for collapsing, no by default.

Privzeto
no
Nizneobvezno
Note abovetop

Optional note above the map, directly below the header row.

Nizneobvezno
Note belowbottom

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.

Nizneobvezno
Note below stylebottomstyle

Optional CSS style for the note below the map, for example text-align:center;.

Nizneobvezno

}}” so that the template will display in expanded form when viewing the template's page.", "type": "string", "default": "no", "required": false }, "legend": { "label": "Legend page link", "description": "Legend page link", "type": "string", "default": "route", "required": false }, "map": { "label": "1st map space", "description": "Add BSn row templates in this parameter to construct a diagram.", "type": "content", "required": true }, "map2": { "label": "2nd map space", "description": "Add BSn row templates in this parameter to construct a diagram.", "type": "content", "required": false }, "map3": { "label": "3rd map space", "description": "Add BSn row templates in this parameter to construct a diagram.", "type": "content", "required": false }, "map4": { "label": "4th map space", "description": "Add BSn row templates in this parameter to construct a diagram.", "type": "content", "required": false }, "map5": { "label": "5th map space", "description": "Add BSn row templates in this parameter to construct a diagram.", "type": "content", "required": false }, "map-title": { "label": "map title", "description": "Optional title for map", "type": "string", "required": false }, "map2-title": { "label": "map2 title", "description": "Optional title for map2", "type": "string", "required": false }, "map3-title": { "label": "map3 title", "description": "Optional title for map3", "type": "string", "required": false }, "map4-title": { "label": "map4 title", "description": "Optional title for map4", "type": "string", "required": false }, "map5-title": { "label": "map5 title", "description": "Optional title for map5", "type": "string", "required": false }, "map-centered": { "label": "map centered?", "description": "Any value makes this map centered", "type": "string", "required": false }, "map2-centered": { "label": "map2 centered?", "description": "Any value makes this map centered", "type": "string", "required": false }, "map3-centered": { "label": "map3 centered?", "description": "Any value makes this map centered", "type": "string", "required": false }, "map4-centered": { "label": "map4 centered?", "description": "Any value makes this map centered", "type": "string", "required": false }, "map5-centered": { "label": "map5 centered?", "description": "Any value makes this map centered", "type": "string", "required": false }, "map-collapsible": { "label": "Collapsible or not of map", "description": "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.", "type": "string", "default": "no", "required": false }, "map2-collapsible": { "label": "Collapsible or not of map2", "description": "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.", "type": "string", "default": "no", "required": false }, "map3-collapsible": { "label": "Collapsible or not of map3", "description": "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.", "type": "string", "default": "no", "required": false }, "map4-collapsible": { "label": "Collapsible or not of map4", "description": "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.", "type": "string", "default": "no", "required": false }, "map5-collapsible": { "label": "Collapsible or not of map5", "description": "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.", "type": "string", "default": "no", "required": false }, "map-collapse": { "label": "Collapse state of map", "description": "yes for collapsing, no by default.", "type": "string", "default": "no", "required": false }, "map2-collapse": { "label": "Collapse state of map2", "description": "yes for collapsing, no by default.", "type": "string", "default": "no", "required": false }, "map3-collapse": { "label": "Collapse state of map3", "description": "yes for collapsing, no by default.", "type": "string", "default": "no", "required": false }, "map4-collapse": { "label": "Collapse state of map4", "description": "yes for collapsing, no by default.", "type": "string", "default": "no", "required": false }, "map5-collapse": { "label": "Collapse state of map5", "description": "yes for collapsing, no by default.", "type": "string", "default": "no", "required": false }, "top": { "label": "Note above", "description": "Optional note above the map, directly below the header row.", "type": "string", "required": false }, "bottom": { "label": "Note below", "description": "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.", "type": "string", "required": false }, "bottomstyle": { "label": "Note below style", "description": "Optional CSS style for the note below the map, for example text-align:center;.", "type": "string", "required": false } } } </templatedata>

]] }}</includeonly>