Template:JCT
高速道路のジャンクションへのリンクを簡便に記述するためのテンプレート。
高速道路のジャンクションへのリンクを簡便に記述するためのテンプレート。
構造
{{#if: {{{6|}}}|<span style="font-size:80%;">({{{6}}}<<)</span>}}
{{#if: {{{2|}}}|({{{2}}}) }}
[[
{{{1}}} {{#switch: {{{8}}} | 分=分岐 | {{{4|ジャンクション}}} }}|
{{{1}}} {{#switch: {{{8}}} | 分=分岐 | {{{5|JCT}}} }}
]]
{{#if: {{{3|}}}|<span style="font-size:80%;">(>>{{{3}}})</span>}}
使い方
- 1 :ジャンクションの名前
- 必ず入力すること。
- 「○○」と入力すると、「○○ジャンクション」がリンク先となり、このTemplate:JCTを用いているページには「○○JCT」と表示される。
- 2 :(もし存在する場合は)ジャンクションの番号
- 引数2が存在する場合は、括弧付きで番号を表示する。
- 引数2が存在しない場合は、何も表示しない。
- 3・6 :(もし存在する場合は)分岐路線
- 引数3
- 引数3が存在する場合は、JCT名の右側に括弧と「>>」を付けて番号を表示する。
- 引数3が存在しない場合は、何も表示しない。
- 引数6
- 引数6が存在する場合は、JCT名の左側に括弧と「<<」を付けて番号を表示する。
- 引数6が存在しない場合は、何も表示しない。
- 引数3
- 4・5・8 :デフォルト値(リンク先…「○○ジャンクション」、表示…「○○JCT」)以外のリンクを作成する場合に用いる。
- 4 = 「○○ジャンクション」以外のページにリンクする場合は、リンク先の「○○」以下の部分(「ジャンクション_(XX県)」など)を記入する。
- 5 = 「○○IC」以外の表示にする場合は、「○○」以下の部分(「IC」など)を記入する。
- 8 = ただし、「○○分岐」にリンクする場合は、「引数8=分」とすると引数4・5を用いることなく「○○分岐」へのリンクを作成できる。
- 引数8と引数4・5を同時に指定した場合は、引数8が優先される。
例
* {{JCT|大泉|2|{{自動車道|外環}}}}
* {{JCT|中之島|8=分}}
関連テンプレート
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.