Template:Map Point: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<span style="z-index:0>[[Image:Map 2px Border.png|Map]]</span> | <span style="z-index:0>[[Image:Map 2px Border.png|Map]]</span> | ||
<span style="position:absolute; top:2px; left:2px; z-index:1">{{#ifeq:{{{Base Map|}}}||[[Image:Point Map.jpg|Dereth]]|[[Image:{{{Base Map|}}}]]}}</span> | <span style="position:absolute; top:2px; left:2px; z-index:1">{{#ifeq:{{{Base Map|}}}||[[Image:Point Map.jpg|Dereth]]|[[Image:{{{Base Map|}}}]]}}</span> | ||
<span style="position:absolute; top:{{#ifeq: {{uc:{{{2|0}}}}} | |||
| N | |||
| {{#expr: 122-2-{{{1|0}}}/102.8*128 round 0}} | |||
| {{#expr: 122-2+{{{1|0}}}/102.8*128 round 0}} }}px; left:{{#ifeq: {{uc:{{{4|0}}}}} | |||
| E | |||
| {{#expr: 128-2+{{{3|0}}}/102.8*128 round 0}} | |||
| {{#expr: 128-2-{{{3|0}}}/102.8*128 round 0}} }}px; z-index:2">{{#ifeq:{{{4| }}} | {{{4|u}}} | |||
| [[Image:Map Point {{ucfirst:{{{Marker|Large}}}}}.png|{{{5|Point}}}]] | |||
| }}</span> | |||
<span style="position:absolute; top:{{#ifeq: {{uc:{{{7|0}}}}} | |||
| N | |||
| {{#expr: 122-2-{{{6|0}}}/102.8*128 round 0}} | |||
| {{#expr: 122-2+{{{6|0}}}/102.8*128 round 0}} }}px; left:{{#ifeq: {{uc:{{{9|0}}}}} | |||
| E | |||
| {{#expr: 128-2+{{{8|0}}}/102.8*128 round 0}} | |||
| {{#expr: 128-2-{{{8|0}}}/102.8*128 round 0}} }}px; z-index:2">{{#ifeq:{{{9| }}} | {{{9|u}}} | |||
| [[Image:Map Point {{ucfirst:{{{Marker|Large}}}}}.png|{{{10|Point}}}]] | |||
| }}</span> | |||
<span style="position:absolute; top:{{#ifeq: {{uc:{{{12|0}}}}} | |||
| N | |||
| {{#expr: 122-2-{{{11|0}}}/102.8*128 round 0}} | |||
| {{#expr: 122-2+{{{11|0}}}/102.8*128 round 0}} }}px; left:{{#ifeq: {{uc:{{{14|0}}}}} | |||
| E | |||
| {{#expr: 128-2+{{{13|0}}}/102.8*128 round 0}} | |||
| {{#expr: 128-2-{{{13|0}}}/102.8*128 round 0}} }}px; z-index:2">{{#ifeq:{{{14| }}} | {{{14|u}}} | |||
| [[Image:Map Point {{ucfirst:{{{Marker|Large}}}}}.png|{{{15|Point}}}]] | |||
| }}</span> | |||
<span style="position:absolute; top:{{#ifeq: {{uc:{{{17|0}}}}} | |||
| N | |||
| {{#expr: 122-2-{{{16|0}}}/102.8*128 round 0}} | |||
| {{#expr: 122-2+{{{16|0}}}/102.8*128 round 0}} }}px; left:{{#ifeq: {{uc:{{{19|0}}}}} | |||
| E | |||
| {{#expr: 128-2+{{{18|0}}}/102.8*128 round 0}} | |||
| {{#expr: 128-2-{{{18|0}}}/102.8*128 round 0}} }}px; z-index:2">{{#ifeq:{{{19| }}} | {{{19|u}}} | |||
| [[Image:Map Point {{ucfirst:{{{Marker|Large}}}}}.png|{{{20|Point}}}]] | |||
| }}</span> | |||
{{#ifeq:{{{Show Towns|}}}|| | {{#ifeq:{{{Show Towns|}}}|| | ||
{{MP Loc | 47.1 | N | 90.3 | W | MP Town | Ahurenga }} | {{MP Loc | 47.1 | N | 90.3 | W | MP Town | Ahurenga }} | ||
Line 32: | Line 68: | ||
{{MP Loc | 00.9 | N | 51.1 | E | MP Town | Lytelthorpe }} | {{MP Loc | 00.9 | N | 51.1 | E | MP Town | Lytelthorpe }} | ||
{{MP Loc | 74.2 | S | 92.3 | E | MP Town | MacNiall's Freehold }} | {{MP Loc | 74.2 | S | 92.3 | E | MP Town | MacNiall's Freehold }} | ||
{{MP Loc | 61.6 | S | 81.9 | E | MP Town | Mayoi }} | {{MP Loc | 61.6 | S | 81.9 | E | MP Town | Mayoi }} | ||
{{MP Loc | 79.9 | N | 59.1 | E | MP Town | Merwart Village }} | {{MP Loc | 79.9 | N | 59.1 | E | MP Town | Merwart Village }} | ||
Line 50: | Line 85: | ||
{{MP Loc | 68.8 | N | 21.6 | W | MP Town | Stonehold }} | {{MP Loc | 68.8 | N | 21.6 | W | MP Town | Stonehold }} | ||
{{MP Loc | 44.2 | N | 78.0 | W | MP Town | Timaru }} | {{MP Loc | 44.2 | N | 78.0 | W | MP Town | Timaru }} | ||
{{MP Loc | 14.0 | S | 05.3 | E | MP Town | Tufa }} | {{MP Loc | 14.0 | S | 05.3 | E | MP Town | Tufa }} | ||
{{MP Loc | 25.2 | S | 28.3 | E | MP Town | Uziz }} | {{MP Loc | 25.2 | S | 28.3 | E | MP Town | Uziz }} | ||
Line 61: | Line 95: | ||
| | | | ||
}} | }} | ||
</div> | </div> | ||
</includeonly><noinclude>{{Documentation}}[[Category:Wiki Template]][[Category:Navigation Template]]</noinclude> | </includeonly><noinclude>{{Documentation}}[[Category:Wiki Template]][[Category:Navigation Template]]</noinclude> |
Latest revision as of 20:25, 8 September 2013
Template Documentation: | Point| |_}}/Doc?action=edit Edit Documentation |
---|
Related topics: Wiki Templates, {{Map Point Plus}}, Points of Interest
Syntax Edit
{{Map Point | <Coords> | <N or S> | <Coords> | <E or W>| }} {{Map Point | | | | }} {{Map Point | Base Map = <Name.jpg> | Marker = <Name>| <Coords> | <N or S> | <Coords> | <E or W> | <Popup Caption> }} {{Map Point | | | | | | | | | | | | | | | | | | | | }}
Usage Edit
Displays a particular location on a small map of Dereth given specific coordinates. You can use either upper or lower case letters (e, w, n, s or E, W, N, S). 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.
You can optionally specify the marker for the points by adding a <Marker = Small> parameter. 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 a list of existing markers, see Template:Map Point Plus#Usage.
Whether you specify a caption at the end or leave it blank, if you have more than a single set of coordinates it each coordinate must be followed by another pipe ( | ). If this pipe is missing, the variable count will be off and the page will not render (white page). If you accidentally do this, use your browser back button to get to an edit screen as there will be no edit tab visible. To use a larger map, to display more than 4 points, or to specify a particular marker for each individual point, use Template:Map Point Plus.
The default map is Image:Point Map.jpg however you can optionally specify another 256x256px image to use as the map adding the optional parameter Base Map = Name.jpg.
By default the map will display Town markers, if you do not wish to have them display, add the parameter "Show Towns = False" and then only the point(s) specified will display.
For example: | |
{{Map Point|12.9|S|51.5|E|}} |
{{Map Point|Marker=Dungeon|34.9|N|54.5|E|Abandoned Mine}} |
displays as: | |
For example: | |
{{Map Point |64|S|63.8|W| |65.9|N|12.9|E| |51.5|N|74.6|w| |60.2|s|88.5|e| }} |
{{Map Point |Marker=Medium |Show Towns=False |64|S|63.8|W|Obsidian Plains |65.9|N|12.9|E|Crater Village |51.5|N|74.6|w|Dam Reservoir |60.2|s|88.5|e|Mayoi Point }} |
displays as: | |