Template:Tooltip Coords

From Lotro-Wiki.com
Jump to navigation Jump to search
This is the template documentation for {{Tooltip Coords}}. It is transcluded from Template:Tooltip Coords/doc and may be directly edited there.

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}}

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

Tooltip Coords/doc/maps

Maps without coordinates

How to add new maps

Please see How to add new maps to Lotro-Wiki.