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"] = "
["collapsible-block-not-closed"] = "
["collapsible-block-not-open"] = "
["collapsible-block-empty"] = "
["collapsible-block-no-first-row"] = "
["collapsible-block-no-replacement"] = "
["colspan-less-rows-than-set"] = "
},
["error-categories"] = {
default = '[[Category:
["text-images"] = '[[Category:
["separate-navbar"] = '[[Category:
["missing-text-values"] = '[[
["br-tags"] = '[[Category:
["srws"] = '[[Category:
["rmr-error"] = '[[Category:
},
text = {
navbar_text = 'Diagram ini:', -- for navbar pos 2 only
legend_text = 'Legenda',
legend = {
default = '[[Template:Legenda jalur rel',
track = '[[Template:Legenda
bus = '[[Template:Legenda rute bus',
canal = '[[Template:Legenda transportasi air',
Baris 737:
local navbar = require('Module:Navbar').navbar
local navtable = {}
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 = ' <table cellspacing="0" cellpadding="0" class="RMsplit" style="
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 =
else
link =
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%','
end
Baris 1.284 ⟶ 1.283:
]]
local org = mw.text.unstripNoWiki(frame.args[1]
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
res = string.gsub(res, '{{[Bb][Ss]%-table%d?}}', '|map =')
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)|', '{{safesubst:BS%1%2
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-replace|', '!replace{{safesubst:BS%1%2
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-startCollapsible|', '-startCollapsible-collapsed\n{{safesubst:BS%1%2
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-sc|', '-startCollapsible-collapsed\n{{safesubst:BS%1%2
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%text|', '{{safesubst:BS%1%2text
res = string.gsub(res, '{{[Bb][Ss](%d?)(%d?)%-2|', '{{safesubst:BS%1%2-2
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|')
|