Jump to content

Module talk:Coordinates: Difference between revisions

Page contents not supported in other languages.
Coordinates: 52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W / 52.48306; -1.89361
From Wikipedia, the free encyclopedia
Content deleted Content added
Ookrainer (talk | contribs)
Jackmcbarn (talk | contribs)
Line 346: Line 346:
direction = mw.ustring.gsub(direction, '^[ ]*(.-)[ ]*$', '%1');
direction = mw.ustring.gsub(direction, '^[ ]*(.-)[ ]*$', '%1');
an addition of " or 0" to the degrees is not always useful, here I can agree with you. --[[User:Ookrainer|Ookrainer]] ([[User talk:Ookrainer|talk]]) 21:58, 9 December 2020 (UTC)
an addition of " or 0" to the degrees is not always useful, here I can agree with you. --[[User:Ookrainer|Ookrainer]] ([[User talk:Ookrainer|talk]]) 21:58, 9 December 2020 (UTC)
:::{{ping|Ookrainer}} You're right about the direction parameter, now that I look at it again. I misread what the gsub was operating on. But anyway, my other question still stands: how are these changes an improvement? [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 03:41, 10 December 2020 (UTC)

Revision as of 03:41, 10 December 2020

Examples

https://geohack.toolforge.org/geohack.php?pagename=Module_talk:Coordinates&params=

57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889 57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889 57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889
44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913
44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913
44°07′01″N 87°54′47″W / 44.117°N 87.913°W / 44.117; -87.913 (Klann Road) 44°07′01″N 87°54′47″W / 44.117°N 87.913°W / 44.117; -87.913 (Klann Road) 44°07′01″N 87°54′47″W / 44.117°N 87.913°W / 44.117; -87.913 (Klann Road)
10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3 10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3 10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3
10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3 10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3 10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3
44°24′N 111°06′W / 44.4°N 111.1°W / 44.4; -111.1 44°24′N 111°06′W / 44.4°N 111.1°W / 44.4; -111.1 44°24′N 111°06′W / 44.4°N 111.1°W / 44.4; -111.1
51°00′44″N 1°34′04″W / 51.01234°N 1.56789°W / 51.01234; -1.56789 51°00′44″N 1°34′04″W / 51.01234°N 1.56789°W / 51.01234; -1.56789 51°00′44″N 1°34′04″W / 51.01234°N 1.56789°W / 51.01234; -1.56789
35°30′S 150°06′E / 35.5°S 150.1°E / -35.5; 150.1 35°30′S 150°06′E / 35.5°S 150.1°E / -35.5; 150.1 35°30′S 150°06′E / 35.5°S 150.1°E / -35.5; 150.1
12°34′12″N 45°33′45″W / 12.57000°N 45.56250°W / 12.57000; -45.56250 12°34′12″N 45°33′45″W / 12.57000°N 45.56250°W / 12.57000; -45.56250 12°34′12″N 45°33′45″W / 12.57000°N 45.56250°W / 12.57000; -45.56250
43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333
43°39′N 79°23′W / 43.65°N 79.38°W / 43.65; -79.38 43°39′N 79°23′W / 43.65°N 79.38°W / 43.65; -79.38 43°39′N 79°23′W / 43.65°N 79.38°W / 43.65; -79.38
43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W / 43.6500; -79.3800 43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W / 43.6500; -79.3800 43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W / 43.6500; -79.3800
43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333
43°29′N 79°23′W / 43.483°N 79.383°W / 43.483; -79.383 43°29′N 79°23′W / 43.483°N 79.383°W / 43.483; -79.383 43°29′N 79°23′W / 43.483°N 79.383°W / 43.483; -79.383
43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W / 43.48444; -79.38333 43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W / 43.48444; -79.38333 43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W / 43.48444; -79.38333
43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W / 43.484583; -79.383472 43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W / 43.484583; -79.383472 43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W / 43.484583; -79.383472
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556
39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W / 39.098095; -94.587307 39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W / 39.098095; -94.587307 39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W / 39.098095; -94.587307
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 (Moscow) 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 (Moscow) 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 (Moscow)
33°55′S 18°25′E / 33.917°S 18.417°E / -33.917; 18.417 33°55′S 18°25′E / 33.917°S 18.417°E / -33.917; 18.417 33°55′S 18°25′E / 33.917°S 18.417°E / -33.917; 18.417
35°00′N 105°00′E / 35.000°N 105.000°E / 35.000; 105.000 35°00′N 105°00′E / 35.000°N 105.000°E / 35.000; 105.000 35°00′N 105°00′E / 35.000°N 105.000°E / 35.000; 105.000
22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W / -22.90833; -43.24361 22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W / -22.90833; -43.24361 22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W / -22.90833; -43.24361
22°S 43°W / 22°S 43°W / -22; -43 22°S 43°W / 22°S 43°W / -22; -43 22°S 43°W / 22°S 43°W / -22; -43
52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W / 52.48306; -1.89361 52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W / 52.48306; -1.89361 52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W / 52.48306; -1.89361
46°43′N 7°58′E / 46.717°N 7.967°E / 46.717; 7.967 46°43′N 7°58′E / 46.717°N 7.967°E / 46.717; 7.967 46°43′N 7°58′E / 46.717°N 7.967°E / 46.717; 7.967
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
0°N 90°W / 0°N 90°W / 0; -90 0°N 90°W / 0°N 90°W / 0; -90 0°N 90°W / 0°N 90°W / 0; -90
40°30′N 82°30′W / 40.5°N 82.5°W / 40.5; -82.5 40°30′N 82°30′W / 40.5°N 82.5°W / 40.5; -82.5 40°30′N 82°30′W / 40.5°N 82.5°W / 40.5; -82.5
51°01′59″N 13°43′48″E / 51.033°N 13.73°E / 51.033; 13.73 51°01′59″N 13°43′48″E / 51.033°N 13.73°E / 51.033; 13.73 51°01′59″N 13°43′48″E / 51.033°N 13.73°E / 51.033; 13.73
40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W / 40.6892; -74.0445 40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W / 40.6892; -74.0445 40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W / 40.6892; -74.0445
45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W / 45.516194; -122.673226 45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W / 45.516194; -122.673226 45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W / 45.516194; -122.673226
46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E / 46.9524; 7.4396 46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E / 46.9524; 7.4396 46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E / 46.9524; 7.4396
52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E / 52.5164; 13.3775 52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E / 52.5164; 13.3775 52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E / 52.5164; 13.3775
0°40′26.69″N 23°28′22.69″E / 0.6740806°N 23.4729694°E / 0.6740806; 23.4729694 0°40′26.69″N 23°28′22.69″E / 0.6740806°N 23.4729694°E / 0.6740806; 23.4729694 0°40′26.69″N 23°28′22.69″E / 0.6740806°N 23.4729694°E / 0.6740806; 23.4729694
48°16′08″N 225°59′24″W / 48.269°N 225.990°W / 48.269; -225.990 48°16′08″N 225°59′24″W / 48.269°N 225.990°W / 48.269; -225.990 48°16′08″N 225°59′24″W / 48.269°N 225.990°W / 48.269; -225.990
7°30′S 303°00′E / 7.5°S 303°E / -7.5; 303 7°30′S 303°00′E / 7.5°S 303°E / -7.5; 303 7°30′S 303°00′E / 7.5°S 303°E / -7.5; 303
8°00′N 190°30′W / 8°N 190.5°W / 8; -190.5 8°00′N 190°30′W / 8°N 190.5°W / 8; -190.5 8°00′N 190°30′W / 8°N 190.5°W / 8; -190.5
57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889 57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889
44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913
44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913
44°07′01″N 87°54′47″W / 44.117°N 87.913°W / 44.117; -87.913 (Klann Road) 44°07′01″N 87°54′47″W / 44.117°N 87.913°W / 44.117; -87.913 (Klann Road)
10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3 10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3
10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3 10°12′N 20°18′W / 10.2°N 20.3°W / 10.2; -20.3
44°24′N 111°06′W / 44.4°N 111.1°W / 44.4; -111.1 44°24′N 111°06′W / 44.4°N 111.1°W / 44.4; -111.1
51°00′44″N 1°34′04″W / 51.01234°N 1.56789°W / 51.01234; -1.56789 51°00′44″N 1°34′04″W / 51.01234°N 1.56789°W / 51.01234; -1.56789
35°30′S 150°06′E / 35.5°S 150.1°E / -35.5; 150.1 35°30′S 150°06′E / 35.5°S 150.1°E / -35.5; 150.1
12°34′12″N 45°33′45″W / 12.57000°N 45.56250°W / 12.57000; -45.56250 12°34′12″N 45°33′45″W / 12.57000°N 45.56250°W / 12.57000; -45.56250
43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333
43°39′N 79°23′W / 43.65°N 79.38°W / 43.65; -79.38 43°39′N 79°23′W / 43.65°N 79.38°W / 43.65; -79.38
43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W / 43.6500; -79.3800 43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W / 43.6500; -79.3800
43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333 43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W / 43.651234; -79.383333
43°29′N 79°23′W / 43.483°N 79.383°W / 43.483; -79.383 43°29′N 79°23′W / 43.483°N 79.383°W / 43.483; -79.383
43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W / 43.48444; -79.38333 43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W / 43.48444; -79.38333
43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W / 43.484583; -79.383472 43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W / 43.484583; -79.383472
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556
39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W / 39.098095; -94.587307 39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W / 39.098095; -94.587307
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 (Moscow) 55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E / 55.752222; 37.615556 (Moscow)
33°55′S 18°25′E / 33.917°S 18.417°E / -33.917; 18.417 33°55′S 18°25′E / 33.917°S 18.417°E / -33.917; 18.417
35°00′N 105°00′E / 35.000°N 105.000°E / 35.000; 105.000 35°00′N 105°00′E / 35.000°N 105.000°E / 35.000; 105.000
22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W / -22.90833; -43.24361 22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W / -22.90833; -43.24361
22°S 43°W / 22°S 43°W / -22; -43 22°S 43°W / 22°S 43°W / -22; -43
52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W / 52.48306; -1.89361 52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W / 52.48306; -1.89361
46°43′N 7°58′E / 46.717°N 7.967°E / 46.717; 7.967 46°43′N 7°58′E / 46.717°N 7.967°E / 46.717; 7.967
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W / 51.500611; -0.124611
0°N 90°W / 0°N 90°W / 0; -90 0°N 90°W / 0°N 90°W / 0; -90
40°30′N 82°30′W / 40.5°N 82.5°W / 40.5; -82.5 40°30′N 82°30′W / 40.5°N 82.5°W / 40.5; -82.5
51°01′59″N 13°43′48″E / 51.033°N 13.73°E / 51.033; 13.73 51°01′59″N 13°43′48″E / 51.033°N 13.73°E / 51.033; 13.73
40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W / 40.6892; -74.0445 40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W / 40.6892; -74.0445
45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W / 45.516194; -122.673226 45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W / 45.516194; -122.673226
46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E / 46.9524; 7.4396 46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E / 46.9524; 7.4396
52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E / 52.5164; 13.3775 52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E / 52.5164; 13.3775
0°40′26.69″N 23°28′22.69″E / 0.6740806°N 23.4729694°E / 0.6740806; 23.4729694 0°40′26.69″N 23°28′22.69″E / 0.6740806°N 23.4729694°E / 0.6740806; 23.4729694
48°16′08″N 225°59′24″W / 48.269°N 225.990°W / 48.269; -225.990 48°16′08″N 225°59′24″W / 48.269°N 225.990°W / 48.269; -225.990
7°30′S 303°00′E / 7.5°S 303°E / -7.5; 303 7°30′S 303°00′E / 7.5°S 303°E / -7.5; 303
8°00′N 190°30′W / 8°N 190.5°W / 8; -190.5 8°00′N 190°30′W / 8°N 190.5°W / 8; -190.5

Sharing from Open Street Map

I have just been retrospectively trying to find some coords for en: and commons. I can find the building- there is a tab called share- and the side panel tells me that the centre point (my building) is/has geo:51.50161,-0.04668?z=17. Going back to the days of the manframe we were taught to make it simple for the user who is by definition simple- computer power is cheap. So how about letting me paste the text geo:51.50161,-0.04668?z=17 into the first field and let the server translate it into {{coord|51.50161|-0.04668}}. I assume the pseudo code for {{{1}}}} would be on the lines of if {{{1}}}!= text| {{{1}}}}| toreal({{{1:char(5)..char(13)}}}) with a cleanup for the position of the comma. The {{{2}}} field would need to come from {{{1}}} too. This would also allow for the named fields to be added too.ClemRutter (talk) 01:22, 10 January 2018 (UTC)[reply]

The correct venue for this request is WT:Lua.--Snaevar (talk) 20:54, 2 July 2020 (UTC)[reply]

Please update the geohack link like is shown in this diff (ignore the language=is, please). This is due to the change mentioned at https://wikitech.wikimedia.org/wiki/News/Toolforge.org . The link in question is broken currently and the aforementioned diff would fix it.--Snaevar (talk) 23:07, 7 July 2020 (UTC)[reply]

 DoneJonesey95 (talk) 23:19, 7 July 2020 (UTC)[reply]

Duplication of coordinates

Template:Infobox bridge gets the coordinates of the bridge from wikidata but this information is displayed twice on the article. Once in the top-right corner and again inside the infobox (example). This seems a bit excessive - is there something wrong with how this template is coded? — Martin (MSGJ · talk) 09:48, 22 September 2020 (UTC)[reply]

That is normal for many coordinate displays. See the "display" section of the documentation for {{Coord}}. What you are seeing is the "inline,title" option, which is used in many articles where infoboxes display coordinates. I think many editors are used to looking at the top right of the article for coordinates as a consistent location. – Jonesey95 (talk) 14:58, 22 September 2020 (UTC)[reply]
I guess I haven't noticed it before. I think standardisation is important, and I also think it is excessive to display it twice. Have there been any discussions about this? Is it mentioned in the manual of style? — Martin (MSGJ · talk) 08:19, 23 September 2020 (UTC)[reply]
I don't know of any discussions or guidelines. I think it's just something that has always happened. There are some infobox templates that manage to suppress the coordinates, and the "Coordinates" header, in the infobox when "display=title" is used in the coord template. I'd have to dig around for one, though. – Jonesey95 (talk) 15:14, 23 September 2020 (UTC)[reply]
Many, many articles use "inline,title" and show the coordinates at top-right and in the infobox. It looks a bit odd in Jarrow Bridge because the infobox is minimal with coordinates at the top of the text, but it is standard. Check articles for major cities, e.g. Paris. Johnuniq (talk) 01:51, 24 September 2020 (UTC)[reply]

@Jonesey95: please can you advise at Template talk:Infobox bridge#Multiple coordinates? Some articles already have {{coord}} and the infobox is duplicating the coordinates in the top-right corner, which is not good. — Martin (MSGJ · talk) 17:28, 24 September 2020 (UTC)[reply]

Updating Coord2text

@Evad37 and Jackmcbarn: The updates to Coord2text in Module:Coordinates/sandbox seem to work for the most part, however it's not rounding the dms conversion like it used to. See Template:Coord/testcases#Coord2text for examples. Also, instead of parsing the coordinates from the geohack URL, would it be possible to parse them from the spans instead (like was done in Module:Location map)? That should make it more future-proof. Kaldari (talk) 04:58, 8 December 2020 (UTC)[reply]

change needed

this change needs to be done --Ookrainer (talk) 17:51, 9 December 2020 (UTC)[reply]

 Not done: Lots of problems with this change. First of all, it makes convert_dms2dec ignore its direction parameter. If we don't want to use a direction parameter anymore, it should be removed, not just ignored. Also, your addition of " or 0" to the degrees case means that pages with malformed coordinates will end up claiming they're on Null Island rather than giving an error. As for the other changes, what specific problem are they solving? Jackmcbarn (talk) 21:43, 9 December 2020 (UTC)[reply]
Jackmcbarn, why does it make convert_dms2dec ignore its direction parameter? I am just purifing it by
direction = mw.ustring.gsub(direction, '^[ ]*(.-)[ ]*$', '%1');

an addition of " or 0" to the degrees is not always useful, here I can agree with you. --Ookrainer (talk) 21:58, 9 December 2020 (UTC)[reply]

@Ookrainer: You're right about the direction parameter, now that I look at it again. I misread what the gsub was operating on. But anyway, my other question still stands: how are these changes an improvement? Jackmcbarn (talk) 03:41, 10 December 2020 (UTC)[reply]