Module:Russo-Ukrainian War detailed map (oblasts): Difference between revisions

Content deleted Content added
Organized and moved some markers from the detailed map
m Moved Ocheretyne label config to detailed map
 
(25 intermediate revisions by the same user not shown)
Line 2:
 
m.containerArgs.AlternativeMap = nil
m.containerArgs.widthautoSwitcherLabel = 1100true
m.containerArgs.width = 1000
 
iflocal mark., label, thenlabel2
for _, mark in ipairs(m.marks) do
for i = m.marks.old_len+1, #m.marks do
if mark.label then
mark = m.marks[i]
label = mw.text.trim(mark.label, '%[%]')
label = mark.label
if label then
label = mw.text.trim(mark.label, '%[%]')
label2 = mw.text.split(label, '[,|]')[1]
label2 = string.gsub(label2, '­', '')
label = m.marks[label2] and mw.text.split(label, '|')[1] or label2
m.marks[label] = mark
end
if mark.label_size == 0 and mark.position and string.sub(mark.mark, 1, 1) == 'L' then -- is the last expression avoidable?
mark.label_size = szs_mapsizes[mark.marksize]
end
end
 
-- Arranged by oblasts in alphabetical order. Crimea is at the bottom.
local mm = m.marks
 
--Dnipropetrovsk Oblast
m.marksmm["Nikopol"].position = "bottom"lp.b
 
--Donetsk Oblast
mm["Khartsyzk"].position = "bottom"
m.marks["Krasnohorivka"].label_width = 7
m.marksmm["OcheretyneKrasnohorivka"].position = "top"lp.t
m.marksmm["YasynuvataKrasnohorivka"].label_width = nil7
mm["Lyman"].position = "right"
 
mm["Myrnohrad"].label_width = nil
marks = {
mm["Myrnohrad"].label_top = nil
--Cherkasy Oblast
mm["Novooleksandrivka"].label_width = 9
-- Other infrastructure
mm["Nyzhnia Krynka"].position = "bottom"
{ lat = "49.767", long = "31.472", mark = "BSicon STR+l blue.svg", marksize = 10, label = "[[Kaniv Hydroelectric Power Plant]]", link = "Kaniv Hydroelectric Power Plant", label_size = 0, position = "left" },
mm["Nyzhnia Krynka"].label_width = 8
mm["Staromykhailivka"].position = lp.b
mm["Staromykhailivka"].label_width = 8
mm["Sviatohirsk"].position = "top"
mm["Urozhaine"].position = "right"
m.marksmm["KrasnohorivkaVolodymyrivka"].label_width = 7
mm["Yasynuvata"].label_width = nil
mm["Yenakiieve"].position = "left"
mm["Zalizne"].position = lp.t
mm["Zalizne"].label_width = nil
 
--ChernihivKharkiv Oblast
mm["Vovchansk"].position = lp.r
-- Other infrastructure
{ lat = "50.926", long = "30.757", mark = "Abm-blue-icon.png", marksize = 8, label = "[[169th Training Centre (Ukraine)]]", link = "169th Training Centre (Ukraine)", label_size = 0, position = "top" },
 
local marks = {
--Donetsk Oblast
{ lat = "4948.767265", long = "3138.472160", mark = "BSiconLocation STR+ldot bluered.svg", marksize = 108, label = "[[KanivSofiivka, HydroelectricHorlivka Raion, PowerDonetsk PlantOblast|Sofiivka]]", link = "KanivSofiivka, HydroelectricHorlivka Raion, PowerDonetsk PlantOblast", label_size = 060, position = "lefttop" }, -- permanently obstructed by Yenakiieve
-- Extra villages
{ lat = "48.232", long = "37.553", mark = "Location dot blue.svg", marksize = 6, label = "Sokil", link = "uk:Сокіл (Покровський район)", label_size = 50--[[66]], position = "left" },
}