Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Module talk
:
Coordinates
Add topic
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{permanently protected}} {{talk page header}} {{Collapse top|title=Examples}} {{#invoke:Coordinates/sandbox|link}} {| | {{coord|57|18|22|N|4|27|32|W}} | {{#invoke:Coordinates|coord|57|18|22|N|4|27|32|W}} | {{#invoke:Coordinates/sandbox|coord|57|18|22|N|4|27|32|W}} |- | {{coord|44.112|N|87.913|W}} | {{#invoke:Coordinates|coord|44.112|N|87.913|W}} | {{#invoke:Coordinates/sandbox|coord|44.112|N|87.913|W}} |- | {{coord|44.112|-87.913}} | {{#invoke:Coordinates|coord|44.112|-87.913}} | {{#invoke:Coordinates/sandbox|coord|44.112|-87.913}} |- | {{coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|name=Klann Road}} | {{#invoke:Coordinates|coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|name=Klann Road}} | {{#invoke:Coordinates/sandbox|coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|name=Klann Road}} |- | {{coord|10.2|-20.3|display=inline}} | {{#invoke:Coordinates|coord|10.2|-20.3|display=inline}} | {{#invoke:Coordinates/sandbox|coord|10.2|-20.3|display=inline}} |- | {{coord|10.2|-20.3}} | {{#invoke:Coordinates|coord|10.2|-20.3}} | {{#invoke:Coordinates/sandbox|coord|10.2|-20.3}} |- | {{coord|44.4|-111.1|type:city_region:US}} | {{#invoke:Coordinates|coord|44.4|-111.1|type:city_region:US}} | {{#invoke:Coordinates/sandbox|coord|44.4|-111.1|type:city_region:US}} |- | {{coord|51.01234|-1.56789|type:landmark_region:GB}} | {{#invoke:Coordinates|coord|51.01234|-1.56789|type:landmark_region:GB}} | {{#invoke:Coordinates/sandbox|coord|51.01234|-1.56789|type:landmark_region:GB}} |- | {{coord|-35.5|150.1|type:landmark_region:AU}} | {{#invoke:Coordinates|coord|-35.5|150.1|type:landmark_region:AU}} | {{#invoke:Coordinates/sandbox|coord|-35.5|150.1|type:landmark_region:AU}} |- | {{coord|12|34|12|N|45|33|45|W}} | {{#invoke:Coordinates|coord|12|34|12|N|45|33|45|W}} | {{#invoke:Coordinates/sandbox|coord|12|34|12|N|45|33|45|W}} |- | {{coord|43.651234|-79.383333}} | {{#invoke:Coordinates|coord|43.651234|-79.383333}} | {{#invoke:Coordinates/sandbox|coord|43.651234|-79.383333}} |- | {{coord|43.65|-79.38}} | {{#invoke:Coordinates|coord|43.65|-79.38}} | {{#invoke:Coordinates/sandbox|coord|43.65|-79.38}} |- | {{coord|43.6500|-79.3800}} | {{#invoke:Coordinates|coord|43.6500|-79.3800}} | {{#invoke:Coordinates/sandbox|coord|43.6500|-79.3800}} |- | {{coord|43.651234|N|79.383333|W}} | {{#invoke:Coordinates|coord|43.651234|N|79.383333|W}} | {{#invoke:Coordinates/sandbox|coord|43.651234|N|79.383333|W}} |- | {{coord|43|29|N|79|23|W}} | {{#invoke:Coordinates|coord|43|29|N|79|23|W}} | {{#invoke:Coordinates/sandbox|coord|43|29|N|79|23|W}} |- | {{coord|43|29|4|N|79|23|0|W}} | {{#invoke:Coordinates|coord|43|29|4|N|79|23|0|W}} | {{#invoke:Coordinates/sandbox|coord|43|29|4|N|79|23|0|W}} |- | {{coord|43|29|4.5|N|79|23|0.5|W}} | {{#invoke:Coordinates|coord|43|29|4.5|N|79|23|0.5|W}} | {{#invoke:Coordinates/sandbox|coord|43|29|4.5|N|79|23|0.5|W}} |- | {{coord|55.752222|N|37.615556|E}} | {{#invoke:Coordinates|coord|55.752222|N|37.615556|E}} | {{#invoke:Coordinates/sandbox|coord|55.752222|N|37.615556|E}} |- | {{coord|55.752222|N|37.615556|E|format=dms}} | {{#invoke:Coordinates|coord|55.752222|N|37.615556|E|format=dms}} | {{#invoke:Coordinates/sandbox|coord|55.752222|N|37.615556|E|format=dms}} |- | {{coord|39.098095|-94.587307|format=dms}} | {{#invoke:Coordinates|coord|39.098095|-94.587307|format=dms}} | {{#invoke:Coordinates/sandbox|coord|39.098095|-94.587307|format=dms}} |- | {{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} | {{#invoke:Coordinates|coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} | {{#invoke:Coordinates/sandbox|coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} |- | {{coord|33|55|S|18|25|E}} | {{#invoke:Coordinates|coord|33|55|S|18|25|E}} | {{#invoke:Coordinates/sandbox|coord|33|55|S|18|25|E}} |- | {{coord|35|00|N|105|00|E}} | {{#invoke:Coordinates|coord|35|00|N|105|00|E}} | {{#invoke:Coordinates/sandbox|coord|35|00|N|105|00|E}} |- | {{coord|22|54|30|S|43|14|37|W}} | {{#invoke:Coordinates|coord|22|54|30|S|43|14|37|W}} | {{#invoke:Coordinates/sandbox|coord|22|54|30|S|43|14|37|W}} |- | {{coord|22|S|43|W}} | {{#invoke:Coordinates|coord|22|S|43|W}} | {{#invoke:Coordinates/sandbox|coord|22|S|43|W}} |- | {{coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}} | {{#invoke:Coordinates|coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}} | {{#invoke:Coordinates/sandbox|coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}} |- | {{coord|46|43|N|7|58|E|type:mountain}} | {{#invoke:Coordinates|coord|46|43|N|7|58|E|type:mountain}} | {{#invoke:Coordinates/sandbox|coord|46|43|N|7|58|E|type:mountain}} |- | {{coord|51.500611|N|0.124611|W|scale:1000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:1000}} | {{#invoke:Coordinates/sandbox|coord|51.500611|N|0.124611|W|scale:1000}} |- | {{coord|51.500611|N|0.124611|W|scale:10000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:10000}} | {{#invoke:Coordinates/sandbox|coord|51.500611|N|0.124611|W|scale:10000}} |- | {{coord|51.500611|N|0.124611|W|scale:100000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:100000}} | {{#invoke:Coordinates/sandbox|coord|51.500611|N|0.124611|W|scale:100000}} |- | {{coord|51.500611|N|0.124611|W|scale:1000000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:1000000}} | {{#invoke:Coordinates/sandbox|coord|51.500611|N|0.124611|W|scale:1000000}} |- | {{coord|0|N|90|W|dim:10000000}} | {{#invoke:Coordinates|coord|0|N|90|W|dim:10000000}} | {{#invoke:Coordinates/sandbox|coord|0|N|90|W|dim:10000000}} |- | {{coord|40.5|-82.5|dim:400000}} | {{#invoke:Coordinates|coord|40.5|-82.5|dim:400000}} | {{#invoke:Coordinates/sandbox|coord|40.5|-82.5|dim:400000}} |- | {{coord|51.033|13.73|dim:20000}} | {{#invoke:Coordinates|coord|51.033|13.73|dim:20000}} | {{#invoke:Coordinates/sandbox|coord|51.033|13.73|dim:20000}} |- | {{coord|40.6892|-74.0445|dim:100}} | {{#invoke:Coordinates|coord|40.6892|-74.0445|dim:100}} | {{#invoke:Coordinates/sandbox|coord|40.6892|-74.0445|dim:100}} |- | {{coord|45.516194|-122.673226|dim:0.6}} | {{#invoke:Coordinates|coord|45.516194|-122.673226|dim:0.6}} | {{#invoke:Coordinates/sandbox|coord|45.516194|-122.673226|dim:0.6}} |- | {{coord|46.9524|N|7.4396|E|region:CH}} | {{#invoke:Coordinates|coord|46.9524|N|7.4396|E|region:CH}} | {{#invoke:Coordinates/sandbox|coord|46.9524|N|7.4396|E|region:CH}} |- | {{coord|52.5164|N|13.3775|E|region:DE-BE}} | {{#invoke:Coordinates|coord|52.5164|N|13.3775|E|region:DE-BE}} | {{#invoke:Coordinates/sandbox|coord|52.5164|N|13.3775|E|region:DE-BE}} |- | {{coord|0|40|26.69|N|23|28|22.69|E|globe:moon}} | {{#invoke:Coordinates|coord|0|40|26.69|N|23|28|22.69|E|globe:moon}} | {{#invoke:Coordinates/sandbox|coord|0|40|26.69|N|23|28|22.69|E|globe:moon}} |- | {{coord|48.269|N|225.990|W|globe:mars}} | {{#invoke:Coordinates|coord|48.269|N|225.990|W|globe:mars}} | {{#invoke:Coordinates/sandbox|coord|48.269|N|225.990|W|globe:mars}} |- | {{coord|7.5|S|303|E|globe:venus}} | {{#invoke:Coordinates|coord|7.5|S|303|E|globe:venus}} | {{#invoke:Coordinates/sandbox|coord|7.5|S|303|E|globe:venus}} |- | {{coord|8|N|190.5|W|globe:mercury}} | {{#invoke:Coordinates|coord|8|N|190.5|W|globe:mercury}} | {{#invoke:Coordinates/sandbox|coord|8|N|190.5|W|globe:mercury}} |} {| | {{coord|57|18|22|N|4|27|32|W}} | {{#invoke:Coordinates|coord|57|18|22|N|4|27|32|W}} |- | {{coord|44.112|N|87.913|W}} | {{#invoke:Coordinates|coord|44.112|N|87.913|W}} |- | {{coord|44.112|-87.913}} | {{#invoke:Coordinates|coord|44.112|-87.913}} |- | {{coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|name=Klann Road}} | {{#invoke:Coordinates|coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|name=Klann Road}} |- | {{coord|10.2|-20.3|display=inline}} | {{#invoke:Coordinates|coord|10.2|-20.3|display=inline}} |- | {{coord|10.2|-20.3}} | {{#invoke:Coordinates|coord|10.2|-20.3}} |- | {{coord|44.4|-111.1|type:city_region:US}} | {{#invoke:Coordinates|coord|44.4|-111.1|type:city_region:US}} |- | {{coord|51.01234|-1.56789|type:landmark_region:GB}} | {{#invoke:Coordinates|coord|51.01234|-1.56789|type:landmark_region:GB}} |- | {{coord|-35.5|150.1|type:landmark_region:AU}} | {{#invoke:Coordinates|coord|-35.5|150.1|type:landmark_region:AU}} |- | {{coord|12|34|12|N|45|33|45|W}} | {{#invoke:Coordinates|coord|12|34|12|N|45|33|45|W}} |- | {{coord|43.651234|-79.383333}} | {{#invoke:Coordinates|coord|43.651234|-79.383333}} |- | {{coord|43.65|-79.38}} | {{#invoke:Coordinates|coord|43.65|-79.38}} |- | {{coord|43.6500|-79.3800}} | {{#invoke:Coordinates|coord|43.6500|-79.3800}} |- | {{coord|43.651234|N|79.383333|W}} | {{#invoke:Coordinates|coord|43.651234|N|79.383333|W}} |- | {{coord|43|29|N|79|23|W}} | {{#invoke:Coordinates|coord|43|29|N|79|23|W}} |- | {{coord|43|29|4|N|79|23|0|W}} | {{#invoke:Coordinates|coord|43|29|4|N|79|23|0|W}} |- | {{coord|43|29|4.5|N|79|23|0.5|W}} | {{#invoke:Coordinates|coord|43|29|4.5|N|79|23|0.5|W}} |- | {{coord|55.752222|N|37.615556|E}} | {{#invoke:Coordinates|coord|55.752222|N|37.615556|E}} |- | {{coord|55.752222|N|37.615556|E|format=dms}} | {{#invoke:Coordinates|coord|55.752222|N|37.615556|E|format=dms}} |- | {{coord|39.098095|-94.587307|format=dms}} | {{#invoke:Coordinates|coord|39.098095|-94.587307|format=dms}} |- | {{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} | {{#invoke:Coordinates|coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} |- | {{coord|33|55|S|18|25|E}} | {{#invoke:Coordinates|coord|33|55|S|18|25|E}} |- | {{coord|35|00|N|105|00|E}} | {{#invoke:Coordinates|coord|35|00|N|105|00|E}} |- | {{coord|22|54|30|S|43|14|37|W}} | {{#invoke:Coordinates|coord|22|54|30|S|43|14|37|W}} |- | {{coord|22|S|43|W}} | {{#invoke:Coordinates|coord|22|S|43|W}} |- | {{coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}} | {{#invoke:Coordinates|coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}} |- | {{coord|46|43|N|7|58|E|type:mountain}} | {{#invoke:Coordinates|coord|46|43|N|7|58|E|type:mountain}} |- | {{coord|51.500611|N|0.124611|W|scale:1000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:1000}} |- | {{coord|51.500611|N|0.124611|W|scale:10000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:10000}} |- | {{coord|51.500611|N|0.124611|W|scale:100000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:100000}} |- | {{coord|51.500611|N|0.124611|W|scale:1000000}} | {{#invoke:Coordinates|coord|51.500611|N|0.124611|W|scale:1000000}} |- | {{coord|0|N|90|W|dim:10000000}} | {{#invoke:Coordinates|coord|0|N|90|W|dim:10000000}} |- | {{coord|40.5|-82.5|dim:400000}} | {{#invoke:Coordinates|coord|40.5|-82.5|dim:400000}} |- | {{coord|51.033|13.73|dim:20000}} | {{#invoke:Coordinates|coord|51.033|13.73|dim:20000}} |- | {{coord|40.6892|-74.0445|dim:100}} | {{#invoke:Coordinates|coord|40.6892|-74.0445|dim:100}} |- | {{coord|45.516194|-122.673226|dim:0.6}} | {{#invoke:Coordinates|coord|45.516194|-122.673226|dim:0.6}} |- | {{coord|46.9524|N|7.4396|E|region:CH}} | {{#invoke:Coordinates|coord|46.9524|N|7.4396|E|region:CH}} |- | {{coord|52.5164|N|13.3775|E|region:DE-BE}} | {{#invoke:Coordinates|coord|52.5164|N|13.3775|E|region:DE-BE}} |- | {{coord|0|40|26.69|N|23|28|22.69|E|globe:moon}} | {{#invoke:Coordinates|coord|0|40|26.69|N|23|28|22.69|E|globe:moon}} |- | {{coord|48.269|N|225.990|W|globe:mars}} | {{#invoke:Coordinates|coord|48.269|N|225.990|W|globe:mars}} |- | {{coord|7.5|S|303|E|globe:venus}} | {{#invoke:Coordinates|coord|7.5|S|303|E|globe:venus}} |- | {{coord|8|N|190.5|W|globe:mercury}} | {{#invoke:Coordinates|coord|8|N|190.5|W|globe:mercury}} |} {{Collapse bottom}} {{User:MiszaBot/config |archiveheader = {{talkarchivenav}} |maxarchivesize = 75K |counter = 3 |minthreadsleft = 7 |minthreadstoarchive = 2 |algo = old(365d) |archive = Module talk:Coordinates/Archive %(counter)d }} {{Lua sidebar|template=Coord}} == Interface-protected edit request 27 December 2023 == {{sudo|Module:Coordinates|answered=yes}} Please sync from [[Module:Coordinates/sandbox]] ([https://en.wikipedia.org/wiki/Special:ComparePages?page1=Module%3ACoordinates&rev1=1161270528&page2=Module%3ACoordinates%2Fsandbox&rev2=1192087921&action=&diffonly=&unhide=&diffmode=source diff]). This adds a class and a data-gadget attribute to the span. For now, this is a no-op change. It is intended to facilitate a more performant way of loading the WikiMiniAtlas script, when coupled with the proposed changes in [[MediaWiki talk:Common.js#Class-triggered gadgets]]. β [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 14:36, 27 December 2023 (UTC) : {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 16:54, 27 December 2023 (UTC) {{sudo|Module:Coordinates|answered=yes}} As MediaWiki now supports category-based gadget load, we can switch to that. Please sync from [[Module:Coordinates/sandbox]] ([[Special:Diff/1192107975/1226463973]]). For now, this is a no-op as the gadget isn't actually defined. β [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 20:17, 30 May 2024 (UTC) : {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 00:22, 31 May 2024 (UTC) == coordinsert problem? == @[[User:Jonesey95|Jonesey95]] I recently found your [[de:Benutzer_Diskussion:Plenz/OSM_for_Wiki#Errors_at_en:Hatfield_Chase|old question]] on German WP. It could be because of a malformed Geohack link: "Infobox UK place" uses coordinsert which generates a broken string when "coord" got a "title" parameter: https://geohack.toolforge.org/geohack.php?pagename=Hatfield_Chase¶ms=53.528_N_0.893_W_&title=Tunnel+Pits_region:GB_type:city (see the splitted "params" seperated by the "title" parameter). "coordinsert" assumes "params" always as last parameter? Which isn't true when "title" is used. [[User:DB111|DB111]] ([[User talk:DB111|talk]]) 09:10, 14 August 2024 (UTC) == Add a "precedence" parameter == Hello. Can https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&oldid=1319497477 be synced to [[Module:Coordinates]] please? This should add a "level" parameter that can be set to "primary" and that defaults to "secondary", matching the behavior of the [[mw:Extension:GeoData|GeoData extension]] that this module relies on. We currently overload "display=title" to indicate that coordinates are the primary ones. Primary in this case means which coordinates get returned for the whole page in queries such as <https://en.wikipedia.org/w/api.php?action=query&prop=coordinates&titles=Cincinnati>. I'd like greater flexibility within this template and I'd like to be more explicit about the behavior by adding this "level" parameter. Any and all code review is welcome. The name "level" isn't great. I considered doing "display=primary" initially but that seemed worse. Level or order matches what we typically call words such as primary, secondary, or tertiary. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 04:40, 30 October 2025 (UTC) :It's a bit unfortunate choice of the parameter name. In this context, I thought level has something to do with altitude. How about "importance level", prominence, significance, priority, relevance, precedence, or primacy? [[Special:Contributions/98.15.131.172|98.15.131.172]] ([[User talk:98.15.131.172|talk]]) 09:26, 30 October 2025 (UTC) ::Precedence may be better, yeah. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 15:31, 30 October 2025 (UTC) {{tlx|sudo}} Based on feedback, I switched to "precedence" in <https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&oldid=1319561810>. Can this be please be reviewed for acceptance? --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 15:34, 30 October 2025 (UTC) :Should the <nowiki>{{#coordinates:}}</nowiki> not be included if the params are |display=title|precedence=secondary ? As precedence is currently ignored if display has title, or would then never be a case with the title coord not being the primary? -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 18:18, 30 October 2025 (UTC) :: Oh, good point. I believe this is now addressed in <https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&oldid=1319669517>. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 05:15, 31 October 2025 (UTC) ::: {{ping|MZMcBride}} Did a little testing and didn't seem to work all the time, so made [https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&diff=1319687729&oldid=1319669517 some changes]. Did the check for display=title and precedence=secondary first and also set the value to blank rather than secondary that gets passed over to #coordinates as it didn't seem to accept secondary. Can you check that it looks ok with my changes? -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 08:49, 31 October 2025 (UTC) ::::I like precedence better than level, but are we overspecifying this, making it easier to make typos and other errors? What if we just had {{para|primary|yes}} for any primary coords on a page and {{para|primary|no}} for all other (secondary) coordinates? β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:12, 2 November 2025 (UTC) :::::Yeah, this might be a lot cleaner and clearer. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 18:55, 3 November 2025 (UTC) ::::::I meant to say, in case it is not implied: {{para|primary|yes}} would be the default, as it essentially is now, so really only {{para|primary|no}} would need to be used for secondary coordinates. We could also do {{para|secondary|yes}} if that makes more logical sense. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:41, 4 November 2025 (UTC) :::::::We currently set coords to secondary by default and only to primary if display=title is set. I'm trying to add functionality so that we can set primary coords without needing to overload display=title. We do not want every {{tlx|coords}} on the page trying to set itself as primary by default as far as I know. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 01:22, 7 November 2025 (UTC) ::::::::Indeed. I either didn't know that or had forgotten. Carry on. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 13:23, 7 November 2025 (UTC) == Issue with inline coords == {{moved from|Template_talk:Infobox_settlement#Issue_with_coordinates...}} {{Infobox settlement | mapframe = no | coordinates = }} So I keep coming across pages where the {{para|coordinates|{{tlc|coords|...|display{{=}}title}}}}. The issue with this is that the logic in the if statement sees that {{param|coordinates}} is not empty, and therefore renders the {{code|Coorindates:}} text. See the example at right, note I have used a [[nbsp]] to achieve the same result here so as not to throw random coords on the talk page title. We should fix this somehow... The options I see include: # Detecting if {{para|display|title}} and if so, hiding the {{code|Coordinates:}} text. # Somehow modifying [[Module:coordinates]] so that in certain circumstances you can use the {{code|coordinsert}} functionality to change the display from just title to title and inline, though I now realize that would ''still'' require detecting what the current value of {{para|display}} is. We don't want to run into errors because the coords are defined as inline in the infobox then at the bottom of the page there is a 2nd set of coords defined for the title... Open to any suggestions! '''[[User:Zackmann08|<span style="color:#00ced1">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange;">What I been doing</span>]]</sub>) 23:04, 14 December 2025 (UTC) :{{ping|Jonesey95|Hike395}} any thoughts on this? '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 18:40, 15 December 2025 (UTC) :Looks like the coordinates module already has some helper functions that parse the display parameter value, so maybe just make sure they are exported in a namespace from which they can be reused? --[[User:Joy|Joy]] ([[User talk:Joy|talk]]) 19:42, 15 December 2025 (UTC) ::Not sure how exactly that would look. I'm only able to picture an additional function that would return the a parsed display parameter. '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 22:33, 15 December 2025 (UTC) :::Can we test the output of {{para|coordinates}} to see if it wants to display the inline portion? Alternatively, can we somehow inject display=inline into the parameter, maybe with a string replacement? β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 01:02, 16 December 2025 (UTC) ::::Exactly what I am thinking, just not really sure how to do that... Happy to dive into it though. Mainly wanted to sanity check that I wasn't missing something obvious before I went down the rabbit hole. '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 01:04, 16 December 2025 (UTC) :::::This is a total hack and will definitely have negative side effects (I think), but <syntaxhighlight lang=wikitext inline>{{Str rep|1={{coords|1|1|N|3|3|E|display=title}}|2=-hidden noexcerpt|3=}}</syntaxhighlight> might be fun to play with. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 02:18, 17 December 2025 (UTC) ::::::Because there's no mention of 'display' or 'inline' or 'title' in the second or third parameters, nobody will remember what it does tomorrow. Let's not make it more complex and less likely to be maintained. --[[User:Joy|Joy]] ([[User talk:Joy|talk]]) 08:19, 17 December 2025 (UTC) :::I'm referring to isInline() and similar functions, [[Module:Coordinates#L-633]]. With a few relatively small interventions, this could be brought out of the local scope and we could conceivably use it to quickly check the display value from the outside. --[[User:Joy|Joy]] ([[User talk:Joy|talk]]) 08:47, 16 December 2025 (UTC) ::::Hmm that could certainly help! I'll get into this later this week and see if I can't mock something up in the Sandbox. '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 16:46, 16 December 2025 (UTC) :::::{{ping|Joy|Jonesey95}} moved the discussion here where I probably should have started it. I have mocked up a solution in [[Module:Coordinates/sandbox]]. See below: :::::* {{tlc|coord/sandbox|8|N|7|W|display{{=}}i}} → {{coord/sandbox|8|N|7|W|display=i}} :::::* {{mlx|coordinates/sandbox|forceinline|{{tlc|coords|8|N|7|W|display{{=}}t}}}} → {{#invoke:coordinates/sandbox|forceinline|{{coords|8|N|7|W|display=t}}}} :::::So with this we could wrap {{tl|Infobox settlement}}'s {{param|coordinates}} param in the new function as follows: {{mlx|coordinates|forceinline|{{param|coordinates}}}}. This would ensure that it always displays inline, in addition to in the title if that is desired. Note I have done '''VERY LITTLE''' testing of this, but am looking for feedback on this as a possible solution. '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 02:58, 19 December 2025 (UTC) ::::::{{ping|Pppery|Izno|Hike395|Frietjes}} as recent editors of this template, at your convenience, could you please review the above discussion and my [[Special:Permalink/1328309609|attempted solution]]? Thanks! {{smiley|santa}} '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 19:13, 22 December 2025 (UTC) == Edit request 28 December 2025 == {{Edit fully-protected|answered=yes}} '''Description of suggested change:''' To help solve the problem described at [[Module_talk:Coordinates#Issue_with_inline_coords|Issue with inline coords (above)]] I have written a new function that can be called to force coordinates to display inline. (Note: if/when implemented I will add documentation for this). '''New code:''' please insert at [[Module:Coordinates#L-765|Line 765]] <syntaxhighlight lang="lua" style="overflow: auto"> function coordinates.forceinline(frame) local text text = mw.ustring.gsub(frame.args[1], 'geo%-inline%-hidden', 'geo-inline') text = mw.ustring.gsub(text, 'style=\"display:none\"', '') return text end </syntaxhighlight> '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 19:46, 28 December 2025 (UTC) :{{ping|Pppery|Izno}} could one of you possibly review the above request? Trying to fix a problem that is plaguing a large number of settlement pages. '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 05:40, 31 December 2025 (UTC) :: I don't like the idea of this. It seems like if you specify "display=title" explicitly then you want the coordinates not to display inline and that wish should be respected. But if another admin feels differently they are welcome to deploy. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 16:25, 1 January 2026 (UTC) {{Infobox settlement | coordinates = {{coord|1|N|2|W|display=t}} }} :::{{ping|Pppery}} That is totally valid. To be clear, this is to be used in a VERY specific use case in an Infobox which is demonstrated at right. Note how the coordinates field is blank just showing {{code|Coordinates:}}. That is the problem I am trying to address. If you have a different/better solution, I genuinely would love it. This is just the best way I could think of to solve the issue... --'''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 21:58, 1 January 2026 (UTC) :[[User:Xaosflux]] as the protecting admin, could you please review this request? '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 00:23, 8 January 2026 (UTC) ::{{ping|Zackmann08}} Couldn't this be done by adding <code><nowiki>{{#if:{{{coordinates|}}}|other stuff}}</nowiki></code> to data29 of {{tl|Infobox settlement}}? IIUC, the coord template expands before it gets parsed there, and so it should empty by the time it reaches this if statement. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 20:56, 11 January 2026 (UTC) :::{{Ping|Hike395}} I'm not sure I follow. The coordinates param is not empty in the usecase I'm addressing. It is just setting the coords to be in the title, not to display inline so I don't see how that would work, but maybe I'm not following... '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 22:58, 11 January 2026 (UTC) ::::Oops, nm, I just tested it and it doesn't work. Instead, you could detect an inline coordinate template invocation like this: :::::<code><nowiki>{{#if:{{#invoke:string|match|s={{{coordinates|}}}|pattern="geo-inline"|ignore_errors=true|plain=true}}|some stuff}}</nowiki></code> ::::This will only show "some stuff" if {{para|coordinates}} has inline coordinates. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 23:25, 11 January 2026 (UTC) :::::So that is an interesting solution and I'm not opposed to it. But I wonder if it is a bandaid on the larger problem? Is that a temporary fix or the actual solution here. I'm not sure... '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 23:28, 11 January 2026 (UTC) :::::Side note, {{u|hike395}} I want to test this out, but you've got another thing going in the {{tl|Infobox settlement/sandbox}} at the moment with the image upright stuff... Let me know when that process is concluded and I'll experiment with this? Don't want to mess you up! '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 23:31, 11 January 2026 (UTC) ::::::I agree with Pppery that forcing inline is not the correct solution, because it overrides what editors are expressing. We can make a general template <code><nowiki>{{If inline coordinates|coordinates|if true|if false}}</nowiki></code> and that would be a general solution for use in infoboxes. 03:31, 12 January 2026 (UTC) :::::::{{withdrawn}} '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 04:03, 12 January 2026 (UTC) == Edit request 11 January 2026 == {{FPER|answered=yes}} Please copy [[Module:Coordinates/sandbox]] to [[Module:Coordinates]]. See {{Compare pages|Module:Coordinates|Module:Coordinates/sandbox|label=diff}} for the code changes. The function coord2text is not protected against garbage inputs. See, for example, the third-to-the-last [[Module talk:Coordinates/testcases#test_coord2text|test case for coord2text]]. The "expected" box is a Lua error, which happens when {{para|type|long}} is applied to a junk string. I added checks in coordinates._coord2text() to return nil if something went wrong, then checked for nil in coordinates.coord2text() and returned a blank string on failures. The tests pass for the sandbox (except where it fixes the Lua error, above). Thanks for your attention! β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 21:04, 11 January 2026 (UTC) : Why is this necessary? Why isn't producing an error the correct behavior when given garbage input? [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 19:31, 13 January 2026 (UTC) ::{{ping|Pppery}} The current module does not produce an error for any non-longitude call to coord2text() with junk arguments. It produces an obscure Lua error if junk is passed into longitude. This is not consistent. Following the [[principle of least astonishment]], I thought it would be better if longitude were consistent with the other parameters. If you want, we can raise a preview warning in coordinates.coord2text(), but I have been previously shouted at about putting technical preview warnings into articles themselves. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 21:21, 24 January 2026 (UTC) ::Later --- [https://en.wikipedia.org/w/index.php?limit=100&fulltext=1&ns10=1&profile=advanced&search=insource%3A%22coord2text%22&title=Special%3ASearch usage] of coord2text() from templates shows that coord2text isn't generally being used to create reader-visible text, but for logic within infoboxes. We could throw hard errors in all of these cases, but it might break infoboxes and be disruptive. I think silently failing at this point is a better option. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 21:30, 24 January 2026 (UTC) ::In the proposed change, callers from modules will receive nil upon error, which is the standard method --- module callers can decide how to handle the nil case, or if they haven't thought about it, will generate an error in the calling module. The proposed edit thus improves error handling in this case. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 21:30, 24 January 2026 (UTC) ::: {{Done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 20:36, 25 January 2026 (UTC) == Thoughts on implementing text2coord to allow coordinates entered as a single parameter? == Any thoughts on my edits to the [[Module:Coordinates/sandbox|sandbox]] that allows the module to interpret the coordinates entered single argument such as {{mlx|Coordinates/sandbox|coord|-27.493568, 153.041787}} -> {{#invoke:Coordinates/sandbox|coord|-27.493568, 153.041787}} or {{mlx|Coordinates/sandbox|coord|40Β°26β²57β³N 3Β°43β²41β³W}} -> {{#invoke:Coordinates/sandbox|coord|40Β°26β²57β³N 3Β°43β²41β³W}} instead of just spitting out an error? It would make copying and pasting coordinates from sources a lot easier and less error prone. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 19:47, 24 June 2026 (UTC) :{{done}}. Feel free to revert if this causes unintended consequences. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 16:41, 1 July 2026 (UTC)
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
User:MiszaBot/config
(
edit
)
Template:Code
(
edit
)
Template:Collapse bottom
(
edit
)
Template:Collapse top
(
edit
)
Template:Collapse top/styles.css
(
edit
)
Template:Compare pages
(
edit
)
Template:Coord
(
edit
)
Template:Coord/sandbox
(
edit
)
Template:Done
(
edit
)
Template:Edit fully-protected
(
edit
)
Template:FPER
(
edit
)
Template:Ifsubst
(
edit
)
Template:Infobox settlement
(
edit
)
Template:Lua sidebar
(
edit
)
Template:Main other
(
edit
)
Template:Mlx
(
edit
)
Template:Module link expanded
(
edit
)
Template:Moved from
(
edit
)
Template:Para
(
edit
)
Template:Param
(
edit
)
Template:Parameter
(
edit
)
Template:Permanently protected
(
edit
)
Template:Ping
(
edit
)
Template:Smiley
(
edit
)
Template:Source parameter
(
edit
)
Template:Sudo
(
edit
)
Template:Talk page header
(
edit
)
Template:Template link
(
edit
)
Template:Template link code
(
edit
)
Template:Template link expanded
(
edit
)
Template:Tl
(
edit
)
Template:Tlc
(
edit
)
Template:Tlx
(
edit
)
Template:U
(
edit
)
Template:Withdrawn
(
edit
)
Template:Yesno
(
edit
)
Module:Arguments
(
edit
)
Module:Coordinates
(
edit
)
Module:Coordinates/sandbox
(
edit
)
Module:Coordinates/styles.css
(
edit
)
Module:Math
(
edit
)
Module:Separated entries
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Search
Search
Editing
Module talk
:
Coordinates
Add topic