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}}}
{{{map}}}
{{{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
exCONTg
ENDExa
CONTgq\KRZu\CONTfq
BHF
\ABZgl\CONTfq
CONTf
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
}}
Example 1.2
terminus
Bridge
1 km
station
transfer for HSR
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''
}}
Example 1.3
Reversing siding
Station
1
2
Platform numbers
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
}}
Example 2.1

Icon overlay


icon link


background color

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
ke Stasiun A (CONT=continuation)
Tiga ikon STR (straight) sejajar dengan CONTf
Tiga ikon, tetapi yang tengah dikosongkan
BHF = bahnhof, stasiun besar
HST = halt, stasiun kecil
ke Stasiun B
{{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
ke Stasiun A
ke Stasiun B
{{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
ke Jakarta Kota
Jakarta Gambir
ke Tanah Abang
ke Bogor
Jakarta Manggarai
Jatinegara
Jalan Tol Ir.Wiyoto Wiyono
Cirebon
ke Ketanggungan
ke Margasari
Tegal
Pekalongan
Semarang Tawang
ke Solo
ke Gundih
Cepu
Bojonegoro
Jalan Tol Surabaya-Gempol
Surabaya Pasar Turi
ke SGU
ke SDT
{{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

Ini dokumennya TemplateData untuk template ini digunakan oleh VisualEditor dan alat lainnya; lihat laporan penggunaan parameter bulanan untuk templat ini.

TemplateData untuk Routemap

Template for displaying diagram composed of icon images and text labels in uniform style.

Parameter templat

Templat ini lebih menyukai format parameter dalam blok.

ParameterKeteranganJenisStatus
Inline stateinline

Remove title bar and border for transclusion in infobox

Kataopsional
Table titletitle

Official title of the system. Value «no» will remove the table title row, but this will also disable the table collapsible switch as well

Kataopsional
Title font colortitle 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

Baku
#FFF or #252525; depends
Kataopsional
Title background colortitle bg color title-bg

Background color of the title

Baku
#27404E
Kataopsional
Collapsibilitycollapsible

Whether the whole infobox is collapsible or not

Kataopsional
Collapsing statecollapse collapsed

Collapsing state. Shown by default. Any value will make the table collapse by default

Kataopsional
Template name for Navbarnavbar tnavbar

Type the diagram template page name so the Navbar template will appear and link to the template page

Kataopsional
Position of the Navbarnavbar 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

Kataopsional
Small navbarnavbar 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»).

Kataopsional
Legend appearancelegend

Alias of the legend link. It can be «bus», «canal», «footpath» or «track». «0» or «no» for no legend at all

Baku
Template:Railway line legend
Nama halamanopsional
Legend link textlegend alt

Different link name in place of «Legend» if desirable

Baku
Legend
Kataopsional
Floating statefloat

Floating state of the whole box: «right» by default; optionally «left» or «none»

Baku
right
Kataopsional
Background colorbg

Background color of the whole map area

Baku
#F9F9F9
Kataopsional
CSS style valuesstyle

Additional CSS style definition of the whole infobox

Kataopsional
Top notetop on top

Space for optional note or infobox above the map

Kataopsional
Bottom notefootnote bottom

Space for optional note or infobox below the map

Kataopsional
Width of map text celltext-width tw

Extend the width of the map text cell so the collapsible section within the map does not break

Kataopsional
Map markupsmap 1

Map data which uses specific markup/separators to load icon image and arrange the text in the uniform style

Katawajib diisi