Template:Tooltip Coords
This template displays a pop-up ("tooltip") of a map and inserts a "swirly" icon at the location of the specified coordinates.
Usage
Standard usage
{{Tooltip Coords|<Map>|<North/South>|<East/West>}}
- Example:
- Gates of Imladris {{Tooltip Coords|Trollshaws|32.2S|6.2W}}
- Result:
- Gates of Imladris [32.2S, 6.2W]
Showing a map without coordinates
{{Tooltip Coords|<Map>}}
- Example:
- Dunland {{Tooltip Coords|Dunland}}
- Result:
- Dunland [Dunland]
Showing a "Coordinates Needed" placeholder
{{Tooltip Coords|<Map>|?|?}}
- Example:
- Eastfold {{Tooltip Coords|Dunland|?|?}}
- Result:
- Eastfold [?, ?]
Note: The page will be added to the category Coordinates Needed.
Invalid usages
Using this template incorrectly will cause the page to be added to the category Invalid Coordinates.
Suppressing superscript
{{Tooltip Coords|<Map>|||x}} {{Tooltip Coords|<Map>|?|?|x}} {{Tooltip Coords|<Map>|<North/South>|<East/West>|x}}
An optional fourth argument may be specified to prevent the text from being displayed in superscript. This shouldn't normally be used, except within tables or other templates (e.g. Template:LocationList).
- Example:
- Gates of Imladris {{Tooltip Coords|Trollshaws|32.2S|6.2W|x}}
- Result:
- Gates of Imladris [32.2S, 6.2W]
Suppressing categorization
{{Tooltip Coords|<Map>|nocat=x}} {{Tooltip Coords|<Map>|<North/South>|<East/West>|nocat=x}} {{Tooltip Coords|<Map>|<North/South>|<East/West>|x|nocat=x}}
An optional named argument "nocat" may be specified to prevent the page from being added to any categories (Coordinates Needed or Invalid Coordinates).
Disabling argument checking
If you're working on a page that contains literally hundreds of {{Tooltip Coords}} references, you may see a warning message, and your page may be added to the Pages where template include size is exceeded category. If so, then to reduce memory usage, you need to disable the argument-checking code in the template. To do so, include the following at the top of your page:
{{Tooltip Coords/skip thorough coords checking}}
To disable argument checking on a template level, skip-coords-check=y parameter can be passed to this template:
{{Tooltip Coords|<Map>|skip-coords-check=y}} {{Tooltip Coords|<Map>|<North/South>|<East/West>|skip-coords-check=y}} {{Tooltip Coords|<Map>|<North/South>|<East/West>|x|skip-coords-check=y}}
You can also use this feature in the rare case where you want to display a location that is off the edge of a map (see Quest:A Walk in the Glade).
Maps with coordinates
Maps without coordinates
- {{Tooltip Coords|Middle-earth}} [Middle-earth]
- {{Tooltip Coords|Eriador}} [Eriador]
- {{Tooltip Coords|Rhovanion}} [Rhovanion]
- {{Tooltip Coords|Mordor}} [Mordor]
How to add new maps
Please see How to add new maps to Lotro-Wiki.