Module talk:Coordinates/sandbox
From Wikimedia Commons, the free media repository
Examples[edit]
Functions:
- deg2dms(degree, degree_precision, language)
-
- {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789}} will display "12° 20′ 44.44″"
- {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1}} will display "12°"
- {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-1}} will display "12° 21′"
- {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-3}} will display "12° 20′ 44″"
- {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-4}} will display "12° 20′ 44.4″"
- {{#invoke:Coordinates/sandbox| deg2dms | 12.3456789 |1e-5}} will display "12° 20′ 44.44″"
- lat_lon
-
- {{#invoke:Coordinates/sandbox| lat_lon | lat=51.48 | lon=0}} will display "51° 28′ 48″ N, 0° 00′ 00″ E"
- GeoHack_link
-
- {{#invoke:Coordinates/sandbox| GeoHack_link | lat=51.48123 | lon=0}} will display
- {{#invoke:Coordinates/sandbox| GeoHack_link | lat=51.48123 | lon=0 | lang=en }} will display
- {{#invoke:Coordinates/sandbox| GeoHack_link | lat=51.48123 | lon=0 | lang=ru }} will display
- {{#invoke:Coordinates/sandbox| GeoHack_link | lat= | lon=0 | lang=ru }} (with missing latitude value) will display "latitude, longitude"
- externalLinksSection
- {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "OpenStreetMap - Google Maps - Google Earth"
-
- {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=Category}} displays "OpenStreetMap - Google Maps - Google Earth - Proximityrama"
- {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=ru | namespace=Category}} displays "OpenStreetMap - Картах Google - Google Планете Земля - Proximityrama"
- {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Mars| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "Google Maps"
- {{#invoke:Coordinates/sandbox| externalLinksSection | globe = Moon| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "Google Maps"
- LocationTemplateCore
-
- {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 1| secondary=1}} displays "
View this and other nearby images on: OpenStreetMap - Google Maps - Google Earth - {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 0| secondary=1}} displays "
Camera location View this and other nearby images on: OpenStreetMap - Google Maps - Google Earth
- {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 1| secondary=1}} displays "
-
- {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | bare = 0}} displays
Camera location | View this and other nearby images on: OpenStreetMap - Google Maps - Google Earth | ![]() |
---|
-
- {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | heading_style=north}} displays
Camera location | View this and other nearby images on: OpenStreetMap - Google Maps - Google Earth | ![]() |
---|
-
- {{#invoke:Coordinates/sandbox| LocationTemplateCore | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File| attributes=elevation:10_heading:W | mode=camera | link_style=icons}} displays
Camera location | View this and other nearby images on: OpenStreetMap - Google Maps - Google Earth | ![]() |
---|
See testcases to see more examples.