テンプレート:BS-map/doc

提供:日本TW架空国家WIKI

<templatestyles></templatestyles>

テンプレート:Intricate template

このテンプレートは従来{{Railway line header}}、{{BS-header}}、{{BS-table}}の3つを組み合わせて使用していたWikipedia:経路図テンプレートの表を1つのテンプレートで使用できるようにしたものです。If your map is transcluded in another infobox, you may consider using {{BS-table3}} in the map template rather than this one.

パラメーター

style 全体に適用される CSS 書式を指定します。他の infobox に取り込ませるときに有用です。例えば "border:0px; width:100%" を指定すると枠線なしで infobox の内側いっぱいに広げて表示できます。
width 全体の幅を指定します。style での指定を上書きできます。No default value because it will void the tw parameter of the BS# row template which is applied to override the text column width of BS# row collapsible section.
title 経路図の表題を入力します。
title-bg 表題の背景色を指定します。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 が標準です。
title-color 表題の文字色を指定します。視認性を妨げるような使い方は避けてください。Black が標準です。
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 表全体を折り畳めるようにするかどうかを指定します。yesが標準です。noを指定すると「表示/隠す」の切替ボタンが表示されなくなります。使用の際は必ずtitleパラメーターに表題を記入してください(記入しないと切替ボタンが表示できなくなります)。
collapse 表全体の折り畳み状態を指定します。 yes で折り畳まれます。noが標準です。
legend Legend page link:
map 実際の経路図の組み合わせを配置します。{{BS-table}}を置く必要はありません。
map# 追加の経路図の組み合わせを配置します。# には 2 - 10 を指定します。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 BS# row templates (single-side text columns) and the other one uses BS#-2 (dual-side text columns) which are not compatible to each other.
map-title
map#-title
マップごとにタイトルヘッダを付けることができます。# には 2 - 10 を指定します。
map-collapsible
map#-collapsible
# represents 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 map#-title otherwise the map#-collapsible alone is not enough to turn it on.
map-collapse
map#-collapse
# represents 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 {{BS-Infobox}} or {{Infobox UK railway}} for neat data display.
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.

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 or float: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.

使用例

駅配線図
STR STR
STRg STRf
KRWgl+l KRWgr+r
両渡り線
STR STR
STR+BSr STR+BSl
対向式ホーム
STR+BSr STR+BSl
STRg STRf

※ 縮尺なし

{{BS-map
|title = 駅配線図
|title-bg = #c1121c
|title-color = white
|top = 
|legend = track
|map = 
{{BS2|STR|STR}}
{{BS2|STRg|STRf||}}
{{BS2|KRWgl+l|KRWgr+r||[[両渡り線]]}}
{{BS2|STR|STR}}
{{BS2|STR+BSr|STR+BSl||[[対向式ホーム]]}}
{{BS2|STR+BSr|STR+BSl}}
{{BS2|STRg|STRf||}}
|bottom = ※ 縮尺なし
}}