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

Content deleted Content added
Finally managed to make the switcher work
Improved ___location indexing, tweaked Volodymyrivka label, and moved no longer obstructed Novobakhmutivka and Soloviove to detailed map
Line 5:
m.containerArgs.width = 1000
 
local label2
for _, mark in ipairs(m.marks) do
label = mark.label
if label then
label = mw.text.trim(label, '%[%]')
labellabel2 = mw.text.split(label, '[,|]')[1]
label = m.marks[label2] and mw.text.split(label, '|')[1] or label2
m.marks[label] = mark
end
Line 25 ⟶ 27:
m.marks["Khartsyzk"].position = "bottom"
m.marks["Krasnohorivka"].label_width = 7
--m.marks["Novokalynove"].label_width = 7
m.marks["Nyzhnia Krynka"].position = "bottom"
m.marks["Ocheretyne"].position = "top"
--m.marks["NovokalynoveVolodymyrivka"].label_width = 7
m.marks["Yasynuvata"].label_width = nil
 
marks = {
--Donetsk Oblast
{ lat = "48.227", long = "37.619", mark = "Location dot red.svg", marksize = 6, label = "Novobakhmutivka", link = "Territorial control during the Russo-Ukrainian War#Novobakhmutivka", label_size = 50--[[191]], position = "right" }, -- obstructed by Berdychi
{ lat = "48.232", long = "37.553", mark = "Location dot blue.svg", marksize = 6, label = "Sokil", link = "uk:Сокіл (Покровський район)", label_size = 50--[[66]], position = "left" }, -- obstructed by Ocheretyne
{ lat = "48.225", long = "37.598", mark = "Location dot red.svg", marksize = 6, label = "Soloviove", link = "Territorial control during the Russo-Ukrainian War#Soloviove", label_size = 0--[[223]] }, -- obstructed by Berdychi
}