Module:Insurgency in Mozambique detailed map
This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
Rules for Editing the Map
1- A reliable source for that specific edit should be provided.
2- Copying from maps is strictly prohibited. Maps from mainstream media are approximate and therefore unreliable for any edit. Maps from amateur sources are below the standards of Wikipedia for any edit. They violate WP:RS and WP:CIRCULAR.
See also: Wikipedia:Top 10 myths about the Wikipedia Syria war map. |
For quick reference, this module is transcluded on the following:
[edit]Labels
[edit]Only towns & border posts can have blue visible wikilink labels. Whether a town has a blue visible wikilink label or not will depend on its size, importance and available space around it for the label to appear without obstructing other towns. The wikilink labels have a minimum size of 65 (label_size=65).
Contested icon
[edit]Definition
[edit]The purpose of the contested icon () is to show 2 groups of soldiers fighting over control of a town, and that there is a significant number of troops inside the city actively holding territory. We generally turn a town contested based on widespread clashes reports. Contested means we cannot say one specific side controls the town. There should be evidence that the enemy is inside the town, which is a necessary (but not sufficient) condition for making a town contested. Contested status is appropriate if the town in question is controlled partly by one party, and partly by another. For example, it could be that one party controls the outer neighborhoods, while the other party holds the city center.
Examples of cases where the contested icon should not be used
[edit]- A case where there was no chance of the enemy taking the town over, and only, small clashes were going on in the town. We don't put towns contested if there are only sporadic clashes. So reports of clashes are not always enough to mark a town as contested.
- A case where there were clashes in a town with a handful of enemy fighters and the clashes were over after some hours. For example if source says: "… at least six insurgents were killed during the clashes … while the rest of militants escaped on Saturday evening”
- A case where there was just one source about clashes in a major town and what occurred was essentially a small firefight. Sleeper cells infiltrated the town and shot at some soldiers, and the soldiers shot back and killed some of them. The source then reports the rest of the fighters as having fled the battlefield. So this was a one-off, hit-and-run attack, not a serious attempt to grab and hold parts of the town.
- A case where there were many separate reports of rebel ambushes on army checkpoints so this was not a seizure of territory inside of the town. The rebels do not control any part of the town, so a contested icon is unwarranted.
- A case where the enemy reached city limits. Well, they still haven't entered the city proper (which is the prerequisite for marking the city as "contested") When the city really becomes contested, a bunch of news outlets will be reporting on it. Just because there is enemy at gates does not mean it is contested. The enemy needs to be making progress in the city.
- The evidence should be especially strong to turn a “stronghold” contested. A few clashes, especially on the periphery are not enough. There should be evidence that the enemy can do more than just hit & run attacks. In these cases, a semi-circle is often enough.
Cities
[edit]For example, we would not mark as contested a city where a party still controls 95% of the city. Instead we mark specific enemy positions on the outskirts of the city until fighting in the city becomes widespread. As nobody claims there is any fighting inside of the city, it should be marked as colored dot within a siege circle (see Figure 1). Then, advanced points in the city should be marked as small dots in the color of the enemy (or small contested icons). In this specific case, a "contested" icon was added to represent the "west side of the city" that is contested (see Figure 2). This is more informative to our viewers. Since the code puts icons on the map in the order of code lines (starting with first line of code and ending with last line of code), the small "contested" icon should come in the line after that of the (large) city icon. Otherwise, the small icon will be hidden by the large icon and will therefore be invisible.
After the fights become more widespread in the city (& enemy controls a larger part of the city), we can remove the "west side of the city" icon and turn the whole city contested (see Figure 3). After this, if we learn that the enemy has taken over the whole city except for a small pocket (in south east) that is still resisting, then we change the contested icon into the color of the enemy and put a small dot representing the small pocket that is still resisting (see Figure 4).
Siege and pressure from one side icons
[edit]Definition
[edit]The siege icon () should be used for towns that are under siege or strong enemy pressure. The “pressure from one side” icon () should be used for towns that are under enemy pressure from one side.
How to place these icons
[edit]The easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then:
- Replace the mark = parameter with or
- Increase marksize = parameter by 4. So for example, if the town dot has a size of 10, then the circle (or semi-circle) should have a size of 14.
Always put line of code circle (or semi-circle) before line of code of town (or other object). This is because the code puts icons on the map in the order of code lines starting with first line of code and ending with last line of code. If you put the line of code that draws the circle (or semi-circle) icon after the line of code that draws the town icon then the computer puts the town icon first and then put the circle (or semi-circle) icon on top of it. The town icon still appears because the circle (or semi-circle) is drawn on a transparent background. However, even a transparent background does obstruct the name of the town icon from appearing. So, the name of the town will not appear when you hold cursor over it.
Example:
- Correct:
{ lat = "33.972", long = "36.897", mark = "map-arcNE-black.svg", marksize = "12" }, { lat = "33.972", long = "36.897", mark = "Abm-red+icon.png", marksize = "8", label = "Brigade 128", label_size = "0" },
- Wrong:
{ lat = "33.972", long = "36.897", mark = "Abm-red+icon.png", marksize = "8", label = "Brigade 128", label_size = "0" }, { lat = "33.972", long = "36.897", mark = "map-arcNE-black.svg", marksize = "8" },
"link=" parameter: linking towns to sources
[edit]Every element on the map should be verifiable. Information on towns (description of control & sources) can be found by clicking on the town dot on the map. Notice the caption of the map which says: "Hold cursor over location to display name; click to go to sources &/or status description (if available, the cursor will show as ; if not, it will show as )."
Notice the “link=” parameter in the map code. This is supposed to link to the part in the Wikipedia article that contains the source and talks about the events in the town. So for example, if you click on the dot of the town "Inkhil" on the map, it will take you to the part of the Wikipedia article on the town "Inkhil" that has the description of war events (& sources): link = "Inkhil#civilwar" Here the first part before the # is the name of the article (Inkhil). the second part after the # is the name of the section (civilwar).
For this to work, there needs to be a section by this same name in the article or you need to put a wikilink anchor: {{anchor|section}} that will act as a section header (in this case {{anchor|civilwar}}).
The link to sources &/or status description should be done according to the following priorities in this order:
- The part of the town's article that talks about the war events in the town (see Example 1 below).
- The part of a "battle/offensive/etc..." article that talks about the latest status of the specific town (see Example 2 below).
- The article about the town which does not contain war events (still better than nothing).
A quick look at the map's code will tell you where each town dot is currently linking.
Example 1: How to keep town dots linked to the latest status source when the town has its own Wikipedia article.. The example concerns the town of Al-Taybah. First, notice how there is: link = "Al-Taybah#civilwar" parameter associated with the code line of town Al-Taybah. As indicated above, this links the Al-Taybah town dot with the war section in the town's Wikipedia article. This parameter does not change over time. However, the war section in the town's Wikipedia article needs to stay up-to-date in terms of the latest control status and latest associated source. For example, on 20/08/2017 the government took the town. To keep the link up-to-date, this latest event (along with the source) needs to be added to the war section in the town's Wikipedia article. To accomplish this, notice the following edit which added to the article the following text:
However, in 20/08/2017, the Army stormed the Taybah area from their positions at the Al-Kom axis, pushing their way through ISIL's front-lines. Unable to maintain their positions, ISIL was forced to retreat from Taybah, leaving the entire area for the Army to take control of after a short battle.<ref>[https://www.almasdarnews.com/article/breaking-syrian-army-liberates-important-area-besiege-isil-north-palmyra/ Syrian Army liberates important area to besiege ISIL north of Palmyra], Al-Masdar news, 20/08/2017.</ref>
This provides the latest status (along with the source) to viewers clicking on the town's dot in the map. Notice also how at the beginning of the war section in the town's Wikipedia article, there is the expression: {{anchor|civilwar}}. This mirrors the #civilwar part in the link parameter in the map's code and allows the click on the dot to take the viewer to the beginning of the war section in the town's Wikipedia article. In summary, when the status of a map object changes, the color of the icon has to be updated and the write-up (along with the source) has to be added as well.
Example 2: How to keep town dots linked to the latest status source when the town does not have its own Wikipedia article. The example concerns the town of "Kabajeb". Up to August 2017, the link parameter associated with the code line of the town was link= "Deir ez-Zor offensive (April–July 2014)#Kabajeb". As indicated above, this links the Kabajeb town dot with a war article that talks about the latest war events concerning the town (along with a source). This was done because the town Kabajeb does not have its own Wikipedia article. Therefore, the link is made to the article that have the latest status & source. In this case, it is the article Deir ez-Zor offensive (April–July 2014) which states in its code:
{{anchor|Kabajeb}}The ISIS reportedly took parts of the town,<ref>{{cite web|url=http://www.dailystar.com.lb/News/Middle-East/2014/Apr-10/252903-syria-qaeda-loses-ground-to-jihadist-rivals-on-iraq-border.ashx|title=Syria Qaeda loses ground to jihadist rivals on Iraq border|work=The Daily Star Newspaper - Lebanon|accessdate=25 October 2014}}</ref>
Notice how the paragraph starts with the expression {{anchor|Kabajeb}}. This guides the link to put the reader exactly at the beginning of the latest status & source. However, on 2017-09-04, the government took the town from ISIS. So the above link & source is no longer up-to-date. To stay up-to-date, you need to do 2 steps:
Step 1: Write about the new status in some "battle/offensive/etc..." article that relates to the town. Alternatively, you can find an up-to-date text that someone else wrote and proceed to the next step. In our case, you find that someone wrote this updated status in the article Central Syria campaign (July 2017–present) which states in its code:
5th Corps alongside 18th Reserve Division captured the town of Kabajib during midday, while later in the day together with Tiger Forces captured al-Shulah.<ref>{{Cite news|url=https://www.almasdarnews.com/article/breaking-syrian-army-liberates-strategic-town-en-route-deir-ezzor-city/|title=Breaking: Syrian Army liberates strategic town en route to Deir Ezzor City|date=2017-09-04|work=AMN - Al-Masdar News {{!}} المصدر نيوز|access-date=2017-09-04|language=en-US}}</ref>
This is exactly what we need. Therefore, we proceed to the next step.
Step 2: In the map code, we need to update the link parameter to point to the new status in the new article. This edit does this. As you can see, the link was changed from link="Deir ez-Zor offensive (April–July 2014)#Kabajeb" to link="Central Syria campaign (July 2017–present)#Kabajeb". However, for this to work, we need to also put the expression {{anchor|Kabajeb}} at the beginning of the part in the new article that talks about the new status. This is done in this edit.
Example 3: For another illustration on how the link= parameter and "anchor" template work, see Talk:Cities and towns during the Syrian Civil War/Archive 65#Link of Suran, Hama.
How to preview map before saving edit
[edit]Before saving your changes (by clicking "Publish changes"), you should preview your edits (changes). This allows you to view the map to make sure it is what you want to do before saving and making the change appear on Wikipedia. To do this, type in the box under "Preview page with this module" the name of the template: "Template:Insurgency in Mozambique detailed map". Then hit "Show preview".
How war map module work with other parts of Wikipedia
[edit]
Usage
[edit]{{#invoke:Insurgency in Mozambique detailed map|function_name}}
return {
secondaryModules = {
},
marks = {
{ lat = "-25.967", long = "32.583", mark = "Location dot red.svg", marksize = "30", label = "[[Maputo]]", link = "Maputo", label_size = "200", position = "right" },
{ lat = "-25.962", long = "32.458", mark = "Location dot red.svg", marksize = "25", label = "[[Matola]]", link = "Matola", label_size = "150", position = "left" },
{ lat = "-15.117", long = "39.267", mark = "Location dot red.svg", marksize = "14", label = "[[Nampula]]", link = "Nampula", label_size = "100", position = "top" },
{ lat = "-19.833", long = "34.85", mark = "Location dot red.svg", marksize = "14", label = "[[Beira, Mozambique|Beira]]", link = "Beira, Mozambique", label_size = "100", position = "top" },
{ lat = "-19.116", long = "33.483", mark = "Location dot red.svg", marksize = "14", label = "[[Chimoio]]", link = "Chimoio", label_size = "100", position = "top" },
{ lat = "-17.876", long = "36.887", mark = "Location dot red.svg", marksize = "14", label = "[[Quelimane]]", link = "Quelimane", label_size = "100", position = "top" },
{ lat = "-16.166", long = "33.6", mark = "Location dot red.svg", marksize = "14", label = "[[Tete, Mozambique|Tete]]", link = "Tete, Mozambique", label_size = "100", position = "top" },
{ lat = "-14.543", long = "40.673", mark = "Location dot red.svg", marksize = "14", label = "[[Nacala]]", link = "Nacala", label_size = "100", position = "top" },
{ lat = "-13.313", long = "35.240", mark = "Location dot red.svg", marksize = "14", label = "[[Lichinga]]", link = "Lichinga", label_size = "100", position = "top" },
{ lat = "-12.967", long = "40.55", mark = "Location dot red.svg", marksize = "14", label = "[[Pemba, Mozambique|Pemba]]", link = "Pemba, Mozambique", label_size = "100", position = "top" },
{ lat = "-10.783", long = "40.483", mark = "Location dot red.svg", marksize = "14", label = "[[Palma, Mozambique|Palma]]", link = "Palma, Mozambique", label_size = "100", position = "right" },
{ lat = "-10.848", long = "40.587", mark = "Location dot red.svg", marksize = "8", label = "Afungi", link = "", label_size = "0", position = "right" },
{ lat = "-11.343", long = "40.357", mark = "Location dot red.svg", marksize = "14", label = "[[Mocímboa da Praia]]", link = "Mocímboa da Praia", label_size = "100", position = "top" },
{ lat = "-11.777", long = "39.897", mark = "Location dot red.svg", marksize = "7", label = "[[Muidumbe District|Muidumbe]]", link = "Muidumbe District", label_size = "70", position = "top" },
{ lat = "-10.656", long = "40.169", mark = "Location dot red.svg", marksize = "7", label = "[[Kitaya]]", label_size = "0", position = "top" },
{ lat = "-11.277", long = "39.724", mark = "Location dot red.svg", marksize = "7", label = "[[Nkonga]]", label_size = "0", position = "top" },
{ lat = "-11.025", long = "40.680", mark = "Location dot red.svg", marksize = "7", label = "[[Vamizi]]", label_size = "0", position = "top" },
{ lat = "-11.510", long = "40.032", mark = "Location dot red.svg", marksize = "7", label = "[[Awasse]]", label_size = "0", position = "top" },
{ lat = "-12.231", long = "40.135", mark = "Location dot red.svg", marksize = "14", label = "[[Macomia District|Macomia]]", label_size = "100", position = "left" },
{ lat = "-11.758", long = "39.806", mark = "Location dot red.svg", marksize = "7", label = "[[Muatide]]", label_size = "0", position = "top" },
{ lat = "-11.633", long = "39.616", mark = "Location dot red.svg", marksize = "7", label = "[[Mueda]]", link = "Mueda", label_size = "70", position = "left" },
{ lat = "-11.267", long = "39.287", mark = "Location dot red.svg", marksize = "7", label = "[[Ngapa, Mozambique|Ngapa]]", link = "Ngapa, Mozambique", label_size = "70", position = "top" },
{ lat = "-11.065", long = "39.673", mark = "Location dot red.svg", marksize = "7", label = "[[Nangade]]", label_size = "0", position = "top" },
{ lat = "-12.072", long = "40.479", mark = "Location dot red.svg", marksize = "7", label = "Mucojo", label_size = "100", position = "right" },
{ lat = "-11.660190", long = "40.364017", mark = "Location dot red.svg", marksize = "7", label = "Marere", label_size = "100", position = "right" },
{ lat = "-11.62894", long = "40.17542", mark = "Location dot red.svg", marksize = "7", label = "Mbau", label_size = "0", position = "right" },
{ lat = "-11.70766", long = "39.98412", mark = "Location dot black.svg", marksize = "7", label = "Chitunda", label_size = "0", position = "right" },
{ lat = "-11.80471", long = "39.99611", mark = "Location dot black.svg", marksize = "7", label = "Xitaxi", label_size = "0", position = "right" },
{ lat = "-11.57971", long = "40.04627", mark = "Location dot red.svg", marksize = "7", label = "Chinda", label_size = "0", position = "right" },
{ lat = "-11.75333", long = "40.43893", mark = "Location dot black.svg", marksize = "7", label = "Quiterajo", label_size = "0", position = "right" },
{ lat = "-10.594", long = "40.507", mark = "Location dot red.svg", marksize = "7", label = "Quionga", label_size = "0", position = "right" },
{ lat = "-12.972", long = "40.388", mark = "Location dot red.svg", marksize = "7", label = "[[Metuge District|Metuge]]", label_size = "100", position = "left" },
{ lat = "-10.89642", long = "40.05482", mark = "Location dot red.svg", marksize = "7", label = "Pundanhar", label_size = "0", position = "top" },
{ lat = "-10.8549", long = "40.5862", mark = "Location dot red.svg", marksize = "7", label = "Maganja", label_size = "0", position = "top" },
{ lat = "-10.9911", long = "40.4753", mark = "Location dot red.svg", marksize = "7", label = "Olumbe", label_size = "0", position = "top" },
{ lat = "-10.8648", long = "40.4951", mark = "Location dot red.svg", marksize = "7", label = "Patacua", label_size = "0", position = "top" },
{ lat = "-13.4849", long = "40.0336", mark = "3x3dot-black.svg", marksize = "7", label = "ISIS presnce", label_size = "0", position = "top" },
{ lat = "-11.997", long = "40.532", mark = "Location dot red.svg", marksize = "7", label = "[[Pangane]]", label_size = "0", position = "top" },
{ lat = "-11.797", long = "40.441", mark = "Location dot black.svg", marksize = "7", label = "[[Milamba]]", label_size = "0", position = "top" },
{ lat = "-16.85", long = "36.983", mark = "Location dot red.svg", marksize = "14", label = "[[Mocuba]]", link = "Mocuba", label_size = "100", position = "top" },
{ lat = "-15.467", long = "36.983", mark = "Location dot red.svg", marksize = "14", label = "[[Gurúè]]", link = "Gurúè", label_size = "100", position = "top" },
{ lat = "-25.05", long = "33.65", mark = "Location dot red.svg", marksize = "14", label = "[[Xai-Xai]]", link = "Xai-Xai", label_size = "100", position = "top" },
{ lat = "-12.436", long = "40.495", mark = "Location dot red.svg", marksize = "14", label = "[[Quissanga District|Quissanga]]", link = "Quissanga District", label_size = "100", position = "top" },
{ lat = "-23.867", long = "35.35", mark = "Location dot red.svg", marksize = "14", label = "[[Maxixe, Mozambique|Maxixe]]", link = "Maxixe, Mozambique", label_size = "100", position = "top" },
{ lat = "-11.5778772929879", long = "39.77049472959809", mark = "Location dot red.svg", marksize = "7", label = "Maca", label_size = "0", position = "right" },
{ lat = "-11.53403", long = "39.9376", mark = "Location dot red.svg", marksize = "7", label = "Diaca", label_size = "0", position = "right" },
{ lat = "-11.57688123857476", long = "39.72260755587391", mark = "Location dot red.svg", marksize = "7", label = "Namau", label_size = "0" },
},
containerArgs = {
'Mozambique',
float = 'center',
width = '2000',
caption = [=['''Hold cursor over location to display name; click to go to location row in the "table of cities and towns" (if available).'''<br/>
*[[File:Location dot red.svg|11px]] Under control of the [[Mozambique Defence Armed Forces|Mozambique Defence Armed Forces (FADM)]] and allies
*[[File:Location dot black.svg|11px]] Under control of Islamist militants ([[Ansar al-Sunna (Mozambique)|Ansar al-Sunna]], [[Islamic State of Iraq and the Levant|Islamic State (IS)]], and allies)
Rural presence ''':''' [[File:4x4dot-red.svg|11px]] [[File:4x4dot-black.svg|11px]]<br/>
Contested
*[[File:80x80-red-black-anim.gif|11px]] Government - Islamist militants
Other
*[[File:Abm-red-icon.png|15px]] [[File:Abm-black-icon.png|15px]] Army base
*[[File:Fighter-jet-red-icon.svg|13px]] [[File:Fighter-jet-black-icon.svg|13px]] Airport or air base (jet)
*[[File:Helicopter-red-icon.svg|13px]] [[File:Helicopter-black-icon.svg|13px]] Airport or air base (helicopter)
*[[File:Anchor_pictogram.svg|12px]] Major port, naval base, or oil terminal
*[[File:Mountain pass 12x12 n.svg|20px]] Border post
*[[File:Arch dam 12x12 w.svg|16px]] Dam
*[[File:Icon NuclearPowerPlant-black.svg|12px]] Industrial complex
Besieged ''':''' [[File:map-circle-red.svg|12px]] [[File:map-circle-black.svg|12px]]
Besieged one side<br>
[[File:map-arcNN-red.svg|11px]] [[File:map-arcNN-black.svg|11px]] [[File:map-arcNE-red.svg|11px]] [[File:map-arcNE-black.svg|11px]] [[File:map-arcEE-red.svg|11px]] [[File:map-arcEE-black.svg|11px]] [[File:map-arcSE-red.svg|11px]] [[File:map-arcSE-black.svg|11px]] [[File:map-arcSS-red.svg|11px]] [[File:map-arcSS-black.svg|11px]] [[File:map-arcSW-red.svg|11px]] [[File:map-arcSW-black.svg|11px]] [[File:map-arcWW-red.svg|11px]] [[File:map-arcWW-black.svg|11px]] [[File:map-arcNW-red.svg|11px]] [[File:map-arcNW-black.svg|11px]]
<br>'''2 nested circles: Controlled by inner, but under siege by outer'''<br>'''Large circle with different icons inside: Situation in military/economic installations in and around city'''
]=]
}
}