This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||
|
This is the discussion/talk page for: Template:Location map many.
08-Sep-2007: The "Template:Location_map_many" was created on 6-Sep-07, while expanding the documentation about the earlier Template:Location_map. The newer template was created to mimic the original parameters for label, mark, marksize by adding parameter names label2, label3, mark2, mark3, mark2size, mark3size, etc. The concept of repeating functionality is used in various other templates, by repeating parameter names amended with 2/3/4 (etc.), so that same concept was followed for naming parameters in the "Location_map_many" template, again, to seem obvious to other users. However, another multi-template named "Template:Location_map+" allows unlimited markers/labels, but uses a "recursive" approach not obvious to other users, by repeating functionality, using repeated listing of template "Template:Location_map~" (a highly unusual template name, due to tilde). To keep the operation more obvious, the numbered parameter names (label2/3/4...) were kept as a simple approach, to mimic the names of the original template. See more below in: Allows multiple defaults. -Wikid77 07:40, 8 September 2007 (UTC)
08-Sep-07: When "Template:Location_map_many" was designed to use obvious numbered parameter names (label2/3/4 etc.), the reason was simply to keep parameter names obvious to other new users. However, as a side benefit, each numbered parameter name can be pre-stored with a default value ("mark2 = My2ndPointer.gif") in any map-country template (such as "Location_map_Zimbabwe"). Hence, rather than have all markers, by default, appear as red-dots, the parameters mark/mark2 & mark3 could be pre-stored as another pointer-image, or 3 separate pointer images, in defaulting appearance for the casual user. Similarly, any named parameters could have pre-stored defaults in any map-country template. Any parameter names not needed by the earlier "Template: Location_map" would simply be ignored by it.
An example of parameter-defaults would be to have a variation of a map-country template as a transportation map and set default pointer-images for train or roadway markers, with default sizes for each marker (mark2size, mark3size, etc.), perhaps used as a set of train-station markers near a given location. Such a transportation map could then be custom-labeled, specifically, in a series of related articles. A similar example would be a map of major highways, labeled with a series of markers along one highway, perhaps highlighting special exits by label, without the need to redraw the map to highlight each highway, or special road exit. -Wikid77 07:40, 8 September 2007 (UTC)
11-Sep-2007: I have expanded the template (16%) to add parameter checking for the 9 pairs of latitude and longitude coordinates. They are compared to the 4 map edge limits (minimum and maximum values) of the map specified by parameter 1 (locname). Because the edge limits are actual latitudes and longitudes, the parameter checking implicitly detects latitudes outside 90# and longitudes outside 180#. The concept is based on a "north-centric" view of the Earth (where Australia is below the equator). The template has not been tested for a south-centric view, where the southern hemisphere would be mapped as "up" above the equator.
11-Sep-2007: There are several issues concerning the implementation of the template to display a map with multiple markers/labels.
11-Sep-2007: Programming in the Wiki template language can be very tedious, unless a syntax-checker program is used to scan the edited template code for unbalanced braces "(( ))" and then list variables used. The wiki-template language is sometimes called "esoteric" (perhaps "itsospastic") due to the treacherous, error-prone design of the language syntax with hideous overuse of nested braces (as in "(({arg|(({arg_alias|))))))"). The confusing braces were a design choice, because parameters could have been coded as "#[arg]" (such as "#[arg|#[arg_alias|]]") to provide a visual distinction from if-statement braces (currently coded as "((#ifexpr: A > B |then|else))"). Fortunately, the wiki-template language could be extended someday to allow "#[arg]" as an option. See below: Template debugging.
11-Sep-07: Perhaps the most common statement would be the typical if-expression (coded in the form "((#ifexpr: A > B |then |else))"). The if-expression statements can be indented and split after "((" and between then/else clauses:
((
#ifexpr: (({loc1(({loc1_alias|))} ))} > 10.4
|<!--then--> Location above 10.4
|<!--else--> Location below 10.4 ))
In the "Location_map_many" template, the double-braces "((" have been split from #ifexpr several times. -Wikid77 13:40, 11 September 2007 (UTC)
20-Dec-07: Templates can be debugged by a variety of techniques:
Ideally, a syntax-checker program should be used to scan for unbalanced braces and list all variable names, to look for outliers. A misspelled variable name might be very difficult to locate, within code, when it causes "Unexpected expression" errors. Also, a spell-checker program could be used, treating the template coding as a text file, to look for "misspelled" words: allow the valid parameter names as valid spellings, and look for outliers. -Wikid77 (talk) 13:48, 20 December 2007 (UTC)
I've been using this excellent resource in Cotswold Gliding Club, but have found that if I tried adding a 6th location (Cirencester), the program crashed, claiming it had run across a "?". Any ideas? --NigelG (or Ndsg) | Talk 15:16, 15 December 2007 (UTC)
Is there any way of completely suppressing the display of location markers? On my map I'd like to mark only the principal location, while adding names—but no markers—to various surrounding towns, which are already shaded in on the map. So far I've resorted to shrinking the markers down to 1px, but the little dot is still just visible in each case. --NigelG (or Ndsg) | Talk 10:27, 19 December 2007 (UTC)
The location map of Japan has an inset map showing Okinawa. If I enter the coordinates of a place in Okinawa (Naha) in the template, the dot does not appear in the inset map. Instead I get an error message and a dot outside of the map area. An example can be seen here. How do I get the dot to display correctly the location of Naha? Apparently it works in the infobox at the Naha, Okinawa article. bamse (talk) 04:45, 27 April 2009 (UTC)
((Location map many | Japan | label=Sendai | position=right | lat=38.256065 | long=140.856685 | label2=Naha <!--Okinawa--> | pos2=bottom | lat2=26.2 |long2=127.68<!--for Okinawa, add: +6.3,+17.9--> | lat2=((#expr:26.2+6.3)) | long2=((#expr:127.683 +17.9)) | width=300| float=right ))
The "backend" used by this template was recently updated. I you notice any unexpected behavior please leave a note at Template talk:Location map. Thanks. –droll [chat] 04:37, 27 April 2011 (UTC)
What causes the File:etc. at top? I can't get it out. Benjamin Trovato (talk) 03:28, 18 May 2013 (UTC)
<div>...</div>
containers. Frietjes (talk) 13:23, 6 November 2017 (UTC)Location Map allows label_width to have long labels to be displayed on one line. This is even more useful with Location Map Many when several marks may be close together and the labels collide. Yet label_width is not supported here. I would find it very helpful. MB 01:43, 23 October 2017 (UTC)
There are three similar maps here all displaying the same location which is outside the map. The outside=1 is not suppressing the map location error in the third map (an invocation of Location Map Many). The second is a workaround I found that worked - numbering the parameters to #2. The third is the exactly the same as the first (except it's Location Map Many instead of Location Map) and I expect the first and third to have identical results but outside=1 isn't working in the third.
MB 04:29, 23 October 2017 (UTC)
https://en.wikipedia.org/wiki/Vatusila#Geographic_and_temporal_range
https://en.wikipedia.org/wiki/Megachile_chomskyi (infobox)
Both were working fine the other day but all of a sudden I don't see the actual locations. Did something change with the templates? I can't figure out why they no longer work. Thanks for any help. Umimmak (talk) 16:19, 23 February 2018 (UTC)
Whats configuration for more than 10 makers? It is possible? Joaosilva2000 (talk) 05:01, 14 October 2023 (UTC)