Modul:Routemap: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
RaFaDa20631 (bicara | kontrib)
Update modul
RaFaDa20631 (bicara | kontrib)
Membalikkan revisi 26340061 oleh RaFaDa20631 (bicara)
Tag: Pembatalan
 
(8 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 1:
local i18n = {
errors = {
["parameter-missing"] = "MissingKehilangan parameter!",
["collapsible-block-not-closed"] = "CollapsibleBagian sectionyang notdapat closeddiciutkan properlytidak ditutup dengan benar!",
["collapsible-block-not-open"] = "MissingTidak ada markah start-Collapsible markup!",
["collapsible-block-empty"] = "CollapsibleBagian sectionyang mustdapat notdiciutkan betidak emptyboleh kosong!",
["collapsible-block-no-first-row"] = "InvalidBaris firstpertama rowbagian ofyang collapsibledapat section!diciutkan tidak valid",
["collapsible-block-no-replacement"] = "InvalidBaris collapsiblepengganti replacementyang rowdapat diciutkan tidak valid!",
["colspan-less-rows-than-set"] = "InvalidSet colspan settidak valid!",
},
["error-categories"] = {
default = '[[Category:PagesHalaman withyang errorsmenggunakan ofRoutemap Moduledengan Routemapgalat]]',
["text-images"] = '[[Category:PagesHalaman usingyang menggunakan Routemap withdengan textgambar imagesteks]]',
["separate-navbar"] = '[[Category:PagesHalaman usingyang Routemapmenggunakan withRoutemap adengan separatetemplat navbar templateterpisah]]',
["missing-text-values"] = '[[CategoryKategori:PagesHalaman usingyang menggunakan BSto oratau BSsrws with missingtanpa textnilai valuesteks]]',
["br-tags"] = '[[Category:PagesHalaman usingyang menggunakan BSto, BSsplit, BSsrws, oratau BScvt withdengan brtag tagsbr]]',
["srws"] = '[[Category:PagesHalaman usingyang BSsplitmenggunakan insteadBSsplit ofalih-alih BSsrws]]',
["rmr-error"] = '[[Category:PagesHalaman withdengan badnilai valueburuk foruntuk RoutemapRoutetemplat templateRoutemapRoute]]'
},
text = {
navbar_mini = false, -- for navbar pos 2 only
navbar_text = 'Diagram ini:', -- for navbar pos 2 only
legend_text = 'Legenda',
legend = {
default = '[[Template:Legenda jalur rel',
track = '[[Template:Legenda jalurtata relletak stasiun',
bus = '[[Template:Legenda rute bus',
canal = '[[Template:Legenda transportasi air',
Baris 737:
local navbar = require('Module:Navbar').navbar
local navtable = {}
args.navbar = args.navbar or args.tnavbar
if args.navbar then
navtable = {args.navbar, mini = i18n.text.navbar_mini, text = i18n.text.navbar_text}
Baris 864 ⟶ 863:
end
style = style or ''
local result = '&#32;<table cellspacing="0" cellpadding="0" class="RMsplit" style="font-size:90%;font-weight:inherit;color:inherit;background:transparent;margin-top:-2px;margin-bottom:-2px;display:inline-table;vertical-align:middle;text-align:'..align
if italic or it == 'all' then result = result..';font-style:italic' end
if bold then result = result..';font-weight:bold' end
Baris 891 ⟶ 890:
if bs == 'srws' then
if stn then
link = t1stn..' '..t2t1..' '..stnt2
else
link = t1..'Stasiun '..t2t1..' railway station'..t2
end
elseif bs == 'cvt' then
Baris 1.002 ⟶ 1.001:
args[4] = args[4] or args.it or args.i
args[5] = args[5] or args.b
return base(args[1],args[2],args[3],nil,nil,args[4],nil,args[5],args.align,args.style,args.bg1,args.bg2,args.line,'105%','92%inherit','.9',nil,nil,nil,'to')
end
 
Baris 1.284 ⟶ 1.283:
 
]]
local org = mw.text.unstripNoWiki(frame.args[1]) or 'Paste legacy RDT markupsmarkup between the nowiki tags')
local res = org
res = string.gsub(res, '{{[Bb][Ss]%-?map', '{{Routemap') -- "%-" is an escape for hyphen which is used as "between" in pattern.
res = string.gsub(res, '{|%s?{{[Rr]ailway line header}}', '{{Routemap')
res = string.gsub(res, '{{[Bb][Ss]%-header%d?|', '{{safesubst:BS-header/safesubst|') -- "%d?" means optional digit in case use of variant template like BS-header3.
res = string.gsub(res, '{{[Bb][Ss]%-table%d?}}', '|map =')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)|', '{{safesubst:BS%1%2/safesubst|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-replace|', '!replace{{safesubst:BS%1%2/safesubst|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-startCollapsible|', '-startCollapsible-collapsed\n{{safesubst:BS%1%2/safesubst|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-sc|', '-startCollapsible-collapsed\n{{safesubst:BS%1%2/safesubst|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%text|', '{{safesubst:BS%1%2text/safesubst|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-2|', '{{safesubst:BS%1%2-2/safesubst|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-2replace|', '!replace{{safesubst:BS%1%2-2|')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-2sc|', '-startCollapsible-collapsed\n{{safesubst:BS%1%2-2|')