Module:Russo-Ukrainian War detailed map (oblasts)
Appearance
local m = require('Module:Russo-Ukrainian War detailed map')
m.containerArgs.AlternativeMap = nil
m.containerArgs.autoSwitcherLabel = true
m.containerArgs.width = 1000
local label2
for _, mark in ipairs(m.marks) do
label = mark.label
if label then
label = mw.text.trim(label, '%[%]')
label2 = mw.text.split(label, '[,|]')[1]
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
mark.label_size = sizes[mark.marksize]
end
end
-- Arranged by oblasts in alphabetical order. Crimea is at the bottom.
--Dnipropetrovsk Oblast
m.marks["Nikopol"].position = "bottom"
--Donetsk Oblast
m.marks["Khartsyzk"].position = "bottom"
m.marks["Krasnohorivka"].label_width = 7
m.marks["Nyzhnia Krynka"].position = "bottom"
m.marks["Ocheretyne"].position = "top"
m.marks["Volodymyrivka"].label_width = 7
m.marks["Yasynuvata"].label_width = nil
marks = {
--Donetsk Oblast
{ 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
}
TableTools.extend(m.marks, marks)
return m