Difference between revisions of "Template:Location pointer"
From The Battle for Wesnoth Wiki
(Created template - needs testing) |
m (Making pointer optional) |
||
Line 2: | Line 2: | ||
| <div style="position:relative; top:0px; left:0px"> | | <div style="position:relative; top:0px; left:0px"> | ||
<span style="position:relative; top:0px; left:0px;">{{{image|}}}</span> | <span style="position:relative; top:0px; left:0px;">{{{image|}}}</span> | ||
− | <span style="position:absolute;left:{{{x|}}}px;top:{{{y|}}}px;z-index:1">https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/core/images/misc/new-journey.png</span> | + | {{#if: {{{x|}}} | <span style="position:absolute;left:{{{x|}}}px;top:{{{y|}}}px;z-index:1">https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/core/images/misc/new-journey.png</span>}} |
</div> | </div> | ||
|}</onlyinclude><noinclude>{{Template}}{{Template:Location pointer/doc}}</noinclude> | |}</onlyinclude><noinclude>{{Template}}{{Template:Location pointer/doc}}</noinclude> |
Latest revision as of 21:01, 5 August 2019
|
This template displays a map with a pointer on it.
Parameters
image denotes the image location of the map.
x denotes the x position of the pointer on the map.
y denotes the y position of the pointer on the map.
Usage
{{Location pointer |image=https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/campaigns/The_Rise_Of_Wesnoth/images/maps/green_isle.png |x=165 |y=188 }}
|
This page was last edited on 5 August 2019, at 21:01.