# Module talk:Coordinates/sandbox

## Examples

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"
{{#invoke:Coordinates/sandbox| externalLinksSection | globe = Earth| lat=51.48 | lon=0 | lang=en | namespace=File}} displays "OpenStreetMap - Google Earth"
• 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 "  51° 28′ 48″ N, 0° 00′ 00″ E View this and other nearby images on: OpenStreetMap - 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 51° 28′ 48″ N, 0° 00′ 00″ E View this and other nearby images on: OpenStreetMap - 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}} displays
 Camera location 51° 28′ 48″ N, 0° 00′ 00″ E View this and other nearby images on: OpenStreetMap - 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 51° 28′ 48″ N, 0° 00′ 00″ E View this and other nearby images on: OpenStreetMap - 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 51° 28′ 48″ N, 0° 00′ 00″ E View this and other nearby images on: OpenStreetMap - Google Earth

See testcases to see more examples.