Template:Map Point Plus: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
<span style="z-index:0>[[Image:Map 4px Border.png]]</span> | <span style="z-index:0>[[Image:Map 4px Border.png]]</span> | ||
<span style="position:absolute; top:4px; left:4px; z-index:1">[[Image:Point Map 512.jpg|Dereth]]</span> | <span style="position:absolute; top:4px; left:4px; z-index:1">[[Image:Point Map 512.jpg|Dereth]]</span> | ||
<span style= | <span style=position:absolute; top:{{#ifeq: {{uc:{{{ | N | ||
| {{#expr: 256-4-{{{1|0}}}/102.8*256 round 0}} | |||
| {{#expr: 256-4-{{{1|0}}}/102.8*256 round 0}} | |||
| {{#expr: 256-4+{{{1|0}}}/102.8*256 round 0}} }}px; left:{{#ifeq: {{uc:{{{4|0}}}}} | | {{#expr: 256-4+{{{1|0}}}/102.8*256 round 0}} }}px; left:{{#ifeq: {{uc:{{{4|0}}}}} | ||
| E | | E | ||
| {{#expr: 256-4+{{{3|0}}}/102.8*256 round 0}} | | {{#expr: 256-4+{{{3|0}}}/102.8*256 round 0}} | ||
| {{#expr: 256-4-{{{3|0}}}/102.8*256 round 0}} }}px; z-index:2 | | {{#expr: 256-4-{{{3|0}}}/102.8*256 round 0}} }}px; z-index:2>{{#ifeq:{{{4| }}} | {{{3|u}}} | ||
| [[Image:Map Point {{ucfirst:{{{5|Large}}}}}.png|{{{6|Point}}}]] | | [[Image:Map Point {{ucfirst:{{{5|Large}}}}}.png|{{{6|Point}}}]] | ||
| }}</span> | | }}</span> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Related|Template:Map Point | {{Related|Template:Map Point|Points of Interest|Wiki Templates}} | ||
== Syntax == | == Syntax == | ||
<pre style="width:auto; overflow:auto"> | <pre style="width:auto; overflow:auto"> |
Revision as of 20:52, 20 January 2009
Related topics: Template:Map Point, Points of Interest, Wiki Templates
Syntax
{{Map Point Plus | <Coords> | <N or S> | <Coords> | <E or W> | <Marker> | <Caption> | <Coords> | <N or S> | <Coords> | <E or W> | <Marker> | <Caption> | <Coords> | <N or S> | <Coords> | <E or W> | <Marker> | <Caption> }} {{Map Point Plus | | | | | | | | | | | | | | | | | | }}
Usage
Displays multiple locations (up to 30) on a large map of Dereth given specific coordinates. You can use either upper or lower case letters (e, w, n, s or E, W, N, S). If the marker is blank, the Large will be used, if the caption is left blank, no caption will be used. Note that because the coordinates need to be transformed into a point on the map, if a coordinate or direction parameter is missing or malformed the page will not render correctly.
For each point you specify the marker to that will be placed on that point and a caption describing the point. If the mouse cursor hovers over the point the caption will popup. For a smaller map that displays one to four points use Template:Map Point.
You can create new markers if desired, create a 9x9 pixel png image with transparency if it doesn't cover the entire area (center the image if not). Name the file "Map Point <Name>.png" and upload it and simply refer to it as <Name> (for example, Map Point Large.png is referenced as Large).
For example:
{{Map Point Plus | 50.7 | S | 81.8 | W | Large | Tumerok Fort | 25.6 | N | 48.8 | E | Medium | Cragstone | 31.1 | S | 73.7 | E | Small | Toppled Stone Head | 33.6 | N | 56.8 | E | Blue | Life Stone | 46.9 | S | 73 | W | Green | | 44.3 | S | 49.0 | W | Purple | Vesayen Isles Portal | 33.8 | S | 85.3 | W | Red | Altar of Bael'Zharon | 86.9 | N | 70.0 | W | Yellow | Huntsman of Silyun | 64.4 | S | 55.5 | E | Dungeon | Lugian Quarry }}
displays as: