Templat:Routemap/doc
Templat berbasis Lua menggantikan templat {{BS-map}} (dan templat usang {{Railway line header}}, {{BS-header}}, dan {{BS-table}}) untuk Wikipedia:Templat peta rute karena diagram yang dibuat menggunakan templat ini dapat dimuat dengan lebih cepat dan kompatibel di Wikipedia seluler.
Penggunaan sunting
{{{title}}} | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{{top}}} | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
{{{footnote}}} |
{{routemap | inline = | title = | title color = | title bg = | collapsible = | collapse = | navbar = | navbar pos = | navbar mini = | legend = | legend alt = | float = | bg = | style = | top = | footnote = | text-width = | map = }}
Markah parameter peta sunting
Penggunaan markah parameter |map=
ini berbeda dengan templat berbasis {{BSrow}}.
{{Routemap
Add other parameters like |title=
here.
|map=
Map markup goes here!
}}
Dasar sunting
Example 1.1 | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
icon ID\icon ID\icon ID
- Ikon dipisahkan dengan backslash
\
. - Seluruh ikon rata tengah. Jika ada tanda
\\
(at the start of row 5 in the diagram) berarti tidak ada ikon. - Pengenal ikon dapat dilihat dengan mengarahkan kursor sehingga muncul pada tooltip.
Teks samping sunting
icon ID\icon ID\icon ID~~dist./time~~main text~~remark~~right remark
atau
icon ID\icon ID\icon ID~~main text
{{Routemap |title=Example 1.2 |map= KBHFa~~terminus WASSERq\hKRZWae\WASSERq~~ ~~ ~~ ~~Bridge LDER\INT\~~1 km~~station~~transfer for HSR \KBHFe\BUS~~2 km~~terminus~~bus terminal }} |
|
- Gunakan dua tilda untuk menambahkan keterangan teks.
Sel teks pada baris ikon sunting
*text\d*text\cd*text~~main text
{{Routemap
|title=Example 1.3
|map=
ENDEa~~ ~~ ~~Reversing siding
SPLa
cPLT\vSTR\cPLT~~Station
d*1\cPLT\vSTR\cPLT\d*2~~ ~~ ~~Platform numbers
cPLT\vSTR\cPLT
vCONTfge~~ ~~ ~~''to City''
}}
|
|
The asterisk indicating a text cell can be preceded by one of the BSicons' width prefixes. (Normal BSicons are square.)
Letters | c |
d |
cd |
none | b |
s |
bs |
w
|
---|---|---|---|---|---|---|---|---|
Width | ¼ | ½ | ¾ | 1 | 2 | 4 | 6 | 8 |
Tumpang tindih ikon sunting
{{Routemap |title=Example 2.1 |map= -colspan-1 Icon overlay uSTRq!~STR2!~BHF!~lHUB\\dSTR!~uSTRq\dSTR!~dNULf -colspan-2-style=border-bottom:5px solid red; ---- icon link utBHF!@Superhub -colspan ---- background color -colspan-end utSTR~~ ~~ ~~ ~~ ~~bg=#7af }} |
|
Gunakan tanda seru dan tilda (!~
) untuk menambahkan ikon baru di atas ikon sebelumnya.
Contoh sunting
Untuk memudahkan, bagi pemula usahakan agar baris ikon berjumlah, jika ganjil, ganjil semua atau genap, genap semua.
Bentuk dasar sunting
Contoh 1 | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{Routemap|title=Contoh 1 |map= CONTg~~ke Stasiun A (CONT=continuation) STR\STR\STR~~Tiga ikon STR (''straight'') sejajar dengan CONTf STR\\STR~~Tiga ikon, tetapi yang tengah dikosongkan BHF~~BHF = ''bahnhof'', stasiun besar HST~~HST = ''halt'', stasiun kecil CONTf~~ke Stasiun B }}
Diagram lintasan stasiun (dengan penjelasan) sunting
Contoh 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{Routemap|title=Contoh 1 |map= CONTg~~ke Stasiun A STRc2\ABZg3\ Di sini ada tiga ikon. Tetapi ikon yang ketiga dikosongkan (kanan backslash terakhir). STR+1\STR+c4\ PSTR(L)\PSTR\ PSTR(L)\PSTR\BUILDING PSTR(L)\PSTR\ STR2\STR+c3\ STRc1\ABZg+4\ CONTf~~ke Stasiun B }}
Penggunaan pada templat peta rute rel sunting
Kereta api Argo Bromo Anggrek |
---|
{{Routemap |title = Kereta api Argo Bromo Anggrek |title-color = white |title-bg = #0058A5 |navbar = GMR-SBI |collapsible = no |map = CONTg\~~<small>ke [[Stasiun Jakarta Kota|Jakarta Kota]] hSTRa@g\ hBHF\~~[[Stasiun Gambir|'''Jakarta Gambir''']] hSTRe@f\ <small>ke [[Stasiun Tanahabang|Tanah Abang]]! !CONTgq\ABZg+r\\~~ <small>ke [[Stasiun Bogor|Bogor]]! !CONTgq\ABZgr\\~~ pBHF\~~<small>[[Stasiun Manggarai|Jakarta Manggarai]] \KRWg+l\CONTfq\~~ ~~ ~~<small>ke [[Stasiun Pasar Senen|Jakarta Pasar Senen]] BHF(L)g\~~'''[[Stasiun Jatinegara|Jatinegara]]''' SKRZ-Bu\~~<small>[[Jalan Tol Ir.Wiyoto Wiyono]] BHF\~~[[Stasiun Cirebon|'''Cirebon''']] <small>ke [[Stasiun Ketanggungan|Ketanggungan]]! !CONTgq\ABZgr\\~~ <small>ke [[Stasiun Margasari|Margasari]]! !CONTgq\ABZg+r\\~~ pBHF\~~<small>[[Stasiun Tegal|Tegal]] BHF\~~[[Stasiun Pekalongan|'''Pekalongan''']] BHF\~~[[Stasiun Semarang Tawang|'''Semarang Tawang''']] \eKRWgl\exENDEeq\~~ ~~ ~~ <small>ke [[Pelabuhan Tanjung Mas]] <small>ke [[Stasiun Solo Balapan|Solo]]! !CONTgq\ABZgr\\~~ <small>ke [[Stasiun Gundih|Gundih]]! !CONTgq\ABZg+r\\~~ pBHF\~~<small>[[Stasiun Cepu|Cepu]] \eABZgl\exCONTfq\~~ ~~ ~~ <small>ke [[Blora]] pBHF\~~<small>[[Stasiun Bojonegoro|Bojonegoro]] \ABZgl\CONTfq\~~ ~~ ~~ <small>ke [[Jatirogo]] \KRWg+l\CONTfq\~~ ~~ ~~ <small>ke [[Gresik]] SKRZ-Bu\~~<small>[[Jalan Tol Surabaya-Gempol]] BHF\~~'''[[Surabaya Pasar Turi]]''' <small> ke [[Stasiun Surabaya Gubeng|SGU]]! !CONTgq\ABZqlr\CONTfq\~~<small>ke [[Stasiun Sidotopo|SDT]] }}
Ikon yang perlu dipelajari sunting
Peta rute sunting
Diagram lintasan stasiun sunting
Data templat sunting
TemplateData untuk Routemap
Template for displaying diagram composed of icon images and text labels in uniform style.
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
Inline state | inline | Remove title bar and border for transclusion in infobox | Kata | opsional |
Table title | title | Official title of the system. Value «no» will remove the table title row, but this will also disable the table collapsible switch as well | Kata | opsional |
Title font color | title color title-color | Color of the title's text; automatically black or white to contrast with the title background color. Only use colors that contrast well with the background color
| Kata | opsional |
Title background color | title bg color title-bg | Background color of the title
| Kata | opsional |
Collapsibility | collapsible | Whether the whole infobox is collapsible or not | Kata | opsional |
Collapsing state | collapse collapsed | Collapsing state. Shown by default. Any value will make the table collapse by default | Kata | opsional |
Template name for Navbar | navbar tnavbar | Type the diagram template page name so the Navbar template will appear and link to the template page | Kata | opsional |
Position of the Navbar | navbar pos | Position of the Navbar template. Float to left in the title bar by default; «1» for top-right corner of the map (just under the title bar); «2» for the middle bottom of the map | Kata | opsional |
Small navbar | navbar mini | If the navbar is not in default position, then this changes whether the navbar displays as "V · T · E" (default for navbar pos 1; values: «1», «y», «yes», «true») or "This diagram: view · talk · edit" (default for navbar pos 2; values: «0», «n», «no», «false»). | Kata | opsional |
Legend appearance | legend | Alias of the legend link. It can be «bus», «canal», «footpath» or «track». «0» or «no» for no legend at all
| Nama halaman | opsional |
Legend link text | legend alt | Different link name in place of «Legend» if desirable
| Kata | opsional |
Floating state | float | Floating state of the whole box: «right» by default; optionally «left» or «none»
| Kata | opsional |
Background color | bg | Background color of the whole map area
| Kata | opsional |
CSS style values | style | Additional CSS style definition of the whole infobox | Kata | opsional |
Top note | top on top | Space for optional note or infobox above the map | Kata | opsional |
Bottom note | footnote bottom | Space for optional note or infobox below the map | Kata | opsional |
Width of map text cell | text-width tw | Extend the width of the map text cell so the collapsible section within the map does not break | Kata | opsional |
Map markups | map 1 | Map data which uses specific markup/separators to load icon image and arrange the text in the uniform style | Kata | wajib diisi |