Template:MPP Loc: Difference between revisions
From Drunkapedia
imported>Tlosk (Created page with '<includeonly><span style="position:absolute; top:{{#ifeq: {{uc:{{{2|0}}}}} | N | {{#expr: 256-{{{1|0}}}/102.8*256 round 0}} | {{#expr: 256+{{{1|0}}}/102.8*256 round 0}} }}px;...') |
imported>Tlosk (minor tweak to positioning) |
||
Line 1: | Line 1: | ||
<includeonly><span style="position:absolute; top:{{#ifeq: {{uc:{{{2|0}}}}} | N | <includeonly><span style="position:absolute; top:{{#ifeq: {{uc:{{{2|0}}}}} | N | ||
| {{#expr: | | {{#expr: 250-{{{1|0}}}/102.8*256 round 0}} | ||
| {{#expr: | | {{#expr: 250+{{{1|0}}}/102.8*256 round 0}} }}px; left:{{#ifeq: {{uc:{{{4|0}}}}} | ||
| E | | E | ||
| {{#expr: 256+{{{3|0}}}/102.8*256 round 0}} | | {{#expr: 256+{{{3|0}}}/102.8*256 round 0}} | ||
| {{#expr: 256-{{{3|0}}}/102.8*256 round 0}} }}px; z-index:2">{{#ifeq:{{{4| }}} | {{{4|u}}} | | {{#expr: 256-{{{3|0}}}/102.8*256 round 0}} }}px; z-index:2">{{#ifeq:{{{4| }}} | {{{4|u}}} | ||
| [[Image:Map Point {{ucfirst:{{strip|{{{5|Large}}}}}}}.png|link={{#ifeq:{{{6|}}}||Point|{{{6}}}}}]] | | [[Image:Map Point {{ucfirst:{{strip|{{{5|Large}}}}}}}.png|link={{#ifeq:{{{6|}}}||Point|{{{6}}}}}]] | ||
| }}</span></includeonly><noinclude> | | }}</span></includeonly><noinclude>{{Documentation}}[[Category:Wiki Template]][[Category:Navigation Template]]</noinclude> | ||
{{ | |||
[[Category:Wiki Template]] | |||
</noinclude> |
Revision as of 08:49, 23 January 2011
Template Documentation: | Loc| |_}}/Doc?action=edit Edit Documentation |
---|
Related topics: Wiki Templates, {{Map Point Plus}}
Syntax
{{MPP Loc | <Coords> | <N or S> | <Coords> | <E or W> | <Marker> | <Caption> }} {{MPP Loc | | | | | | }} The Marker and Caption parameters are optional.
Usage
See {{Map Point Plus}} for usage details and an example. This subtemplate allows an arbitrary number of points to be displayed and improves rendering time.