Jump to content

Module:Russo-Ukrainian War detailed map (oblasts)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Alexiscoutinho (talk | contribs) at 09:24, 26 April 2024 (Moved all infrastructure to detailed map). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local m = require('Module:Russo-Ukrainian War detailed map')

m.containerArgs.AlternativeMap = nil
m.containerArgs.width = 1000

for _, mark in ipairs(m.marks) do
	label = mark.label
	if label then
		label = mw.text.trim(label, '%[%]')
		label = mw.text.split(label, '|')[1]
		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["Novokalynove"].position = "right"
m.marks["Nyzhnia Krynka"].position = "bottom"
m.marks["Ocheretyne"].position = "top"
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" }, -- blocked by Berdychi
	{ lat = "48.196", long = "37.532", mark = "Location dot blue.svg", marksize = 6, label = "Novoselivka Persha", link = "uk:Новоселівка Перша", label_size = 50--[[935]], label_width = 10, position = "left" }, -- blocked by Semenivka
	{ lat = "48.232", long = "37.553", mark = "Location dot blue.svg", marksize = 6, label = "Sokil", link = "uk:Сокіл (Покровський район)", label_size = 50--[[66]], position = "left" }, -- blocked 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]] }, -- blocked by Berdychi
}

TableTools.extend(m.marks, marks)

return m