Module:Coordinates/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Coordinates
This module is intended to replace the functionality of Template:Coord and related templates. It provides several methods, including
- Script error: The function "main" does not exist. : General function formatting and displaying coordinate values.
- Lua error in Module:Coordinates at line 197: attempt to compare number with nil. : Simple function for converting decimal degree values to DMS format.
- Lua error in Module:Math at line 172: bad argument #1 to 'upper' (string expected, got nil). : Simple function for converting DMS format to decimal degree format.
- https://geohack.toolforge.org/geohack.php?pagename=Module:Coordinates/doc¶ms= : Export the link used to reach the tools
This module depends on the following other modules:
- Module:Math (for mathematical operations)
- Module:Arguments (for parsing arguments)
This module uses TemplateStyles:
Tracking templates and uses Wikidata
Note: The code which this module's main function ( `coord` ) outputs is directly parsed and/or manipulated by Module:Location map and other functions of this module itself ( `coord2text` and `coordinsert` ). If the structure of the output changes (for example, by to use the `<mapframe>` and `<maplink>` tags), please update the aforementioned scripts as well
Using the module with coordinsert
Using the module with coordinsert to extract latitude or longitude