Module talk:Location map: Difference between revisions

Content deleted Content added
m Archiving 2 discussion(s) to Module talk:Location map/Archive 11) (bot
m Archiving 2 discussion(s) to Module talk:Location map/Archive 11) (bot
Line 12:
{{Copied |from=Template:Location map/Creating a new map definition |from_oldid=1207855218 |to=Template:Location map data documentation/doc |date=15 February 2024 |afd= |merge= |diff= |to_diff=1207858852 |to_oldid=1207854611 }}
{{Lua sidebar}}
 
== Three-state caption parameter ==
 
The module has different outputs depending on whether {{para|caption}} has a value, is empty, or absent from the call of {{tl|Location map}}. It also messes up with the border. Can't say I understand why such a design decision was made, instead of using specific params that do only and exactly what they're supposed to. Anyway... I am here to ask what to do when {{tl|Location map}} is used in a template, an infobox, which has a variable/parameter {{param|pushpin_map_caption}}. What would you use in the templates code so that {{param|pushpin_map_caption}} translates into what {{para|caption}} does: when {{param|pushpin_map_caption}} has value or is empty, use that value; but when {{param|pushpin_map_caption}} is absent from the template call in an article, make the module see it as nonexistent and provide the default caption. In other words, I need a replacement for <code><nowiki>|caption = {{{pushpin_map_caption|}}}}</nowiki></code> in the template code that will make {{para|caption}} disappear from the call of {{tl|Location map}} in the infobox code when {{param|pushpin_map_caption}} is absent from the call to the infobox in the article. Thanks! [[User:Ponor|Ponor]] ([[User talk:Ponor|talk]]) 14:01, 23 November 2023 (UTC)
 
== Possible problem with Eurasia map ==
 
Please see [https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox&oldid=1188615840 this version of my sandbox] for an illustration of a problem with locating [[Tehran]] on the map of Eurasia. The dot is located somewhere west of Egypt but should be considerably northeast of there, at the south end of the [[Caspian Sea]]. This problem is happening in the infobox at [[Tehran]] as well. The coordinates appear to be correct. The other three maps in that infobox display the dot correctly. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:35, 6 December 2023 (UTC)
:This map appears to be broken at [[Kuwait International Airport]] as well. I suspect a problem with the relatively new, undocumented [[Module:Location map/data/Eurasia]], created by {{U|पाटलिपुत्र}}. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:38, 6 December 2023 (UTC)
::{{ping|User:Jonesey95}}Yes, it wasn't calibrated. Should be better now. Please advise if there are issues. <span style=" 0.2em 0.2em 0.1em; class=texhtml">[[User:पाटलिपुत्र|<span style="color:green">पाटलिपुत्र</span>]][[User:पाटलिपुत्र|<span style="color:blue"> (Pataliputra)</span>]]</span> [[User talk:पाटलिपुत्र|'''(talk)''']] 15:53, 6 December 2023 (UTC)
:::That looks much better. Thanks for the quick fix. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 16:48, 6 December 2023 (UTC)
 
== Edit request 31 December 2023 ==