Module:Libyan Civil War detailed map/doc: Difference between revisions

Content deleted Content added
Add section: "link=" parameter: linking towns to sources
Add an example on how to keep town dots linked to the latest status source.
Line 13:
 
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: [[WP:ANCHOR|<nowiki>{{anchor|section}}</nowiki>]] that will act as a section header (in this case <nowiki>{{anchor|civilwar}}</nowiki>). By the way, sources &/or status description can also be found in "battle/offensive/etc..." articles and not just in towns' articles... A quick look at the map's code will tell you where each town dot will link.
 
'''Here is an example''' on how to keep town dots linked to the ''latest'' status source. 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 the war section in the town's Wikipedia article. To accomplish this, notice [https://en.wikipedia.org/w/index.php?title=Al-Taybah&diff=796465930&oldid=789256319 the following edit] which added to the article the following text:
 
<small><nowiki>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></nowiki></small>
 
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: <nowiki>{{anchor|civilwar}}</nowiki>. 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 [[Al-Taybah#civilwar|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.
 
<noinclude>{{#invoke:Location map/multi|load|Module:Libyan Civil War detailed map}}</noinclude>