Template:BS-map

これはこのページの過去の版です。ネイ (会話 | 投稿記録) による 2021年8月24日 (火) 09:36個人設定で未設定ならUTC)時点の版 (mw-collapsible)であり、現在の版とは大きく異なる場合があります。

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

このテンプレートは従来{{Railway line header}}、{{BS-header}}、{{BS-table}}の3つを組み合わせて使用していたWikipedia:経路図テンプレートの表を1つのテンプレートで使用できるようにしたものです。もし、地図が別のインフォボックスに参照読み込みされている場合は、このテンプレートではなく、{{BS-table3}}を使用することを検討してください。


パラメーター

style 全体に適用される CSS 書式を指定します。他の infobox に取り込ませるときに有用です。例えば "border:0px; width:100%" を指定すると枠線なしで infobox の内側いっぱいに広げて表示できます。
width 全体の幅を指定します。styleでの指定を上書きできます。「BS#」行の折りたたみ可能セクションのテキスト列幅を上書きするために適用される「BS#」行テンプレートのtw変数が無効になるため、既定値はありません。
title 経路図の表題を入力します。
title-bg 表題の背景色を指定します。ただし、これは「Wikipedia:色の使用」に従って適用せず、代わりにタイトルテキストの横に{{colorbox}}、またはアイコン画像を使用することをお勧めします。 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 = 
|width = 
|title = 
|title-bg = 
|title-color = 
|navbar = 
|collapsible = 
|collapse = 
|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
PSTR(R) PSTR(L)
対向式ホーム
PSTR(R) PSTR(L)
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|PSTR(R)|PSTR(L)||[[対向式ホーム]]}}
{{BS2|PSTR(R)|PSTR(L)}}
{{BS2|STRg|STRf||}}
|bottom = ※ 縮尺なし
}}