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 19:30, 25 April 2024 (Let's try 1000 width again. Tweaked labels. Added Novobakhmutivka. Moved Novoselivka Persha and Soloviove from 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 = szs_map[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 = {
	--Cherkasy Oblast
	-- Other infrastructure
	{ 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" },

	--Chernihiv Oblast
	-- 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" },

	--Donetsk Oblast
	-- Extra villages
	{ 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" },
	{ 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" },
	{ lat = "48.232", long = "37.553", mark = "Location dot blue.svg", marksize = 6, label = "Sokil", link = "uk:Сокіл (Покровський район)", label_size = 50--[[66]], position = "left" },
	{ lat = "48.225", long = "37.598", mark = "Location dot blue.svg", marksize = 6, label = "Soloviove", link = "uk:Соловйове (Покровський район)", label_size = 0--[[223]] },
}

TableTools.extend(m.marks, marks)

return m