Template:Map: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Spiffly Blanked the page |
imported>Spiffly No edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#if:{{{image|}}}|<div style="position: relative; display:inline-block;">[[File:{{{image}}}|link={{{area|}}}]]{{#if:{{{overlay|}}}|<nowiki/>{{{overlay|}}}}}</div>}}</includeonly></onlyinclude> |
|||
[[Category:Templates|{{PAGENAMEE}}]] |
|||
==Usage== |
|||
<pre> |
|||
{{Map |
|||
| image = |
|||
| area = |
|||
| overlay = |
|||
}} |
|||
</pre> |
|||
*'''image''': The map image to display. |
|||
*'''area''': The area to link to. |
|||
*'''overlay''': Overlays to add on top of the map. See [[Template:Map Overlay]]. |
|||
===Examples=== |
|||
{|border="1" |
|||
|- BGCOLOR="e3e3e3" |
|||
! Code !! Result |
|||
|- |
|||
| |
|||
<pre style="white-space:pre-line"> |
|||
{{Map |
|||
| image = SouthernSandOria.png |
|||
| area = Southern San d'Oria |
|||
}} |
|||
</pre> |
|||
| |
|||
{{Map |
|||
| image = SouthernSandOria.png |
|||
| area = Southern San d'Oria |
|||
}} |
|||
|- |
|||
| |
|||
<pre style="white-space:pre-line"> |
|||
{{Map |
|||
| image = Quicksand-caves_1.png |
|||
| area = Quicksand Caves |
|||
| overlay = |
|||
{{Map Overlay |
|||
| pos = F-10 |
|||
| offset x = -5 |
|||
| offset y = 5 |
|||
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]] |
|||
}} |
|||
{{Map Overlay |
|||
| pos = J-11 |
|||
| offset x = 10 |
|||
| offset y = 4 |
|||
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]] |
|||
}} |
|||
{{Map Overlay |
|||
| pos = J-13 |
|||
| offset x = 10 |
|||
| offset y = 4 |
|||
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]] |
|||
}} |
|||
}} |
|||
</pre> |
|||
| |
|||
{{Map |
|||
| image = Quicksand-caves_1.png |
|||
| area = Quicksand Caves |
|||
| overlay = |
|||
{{Map Overlay |
|||
| pos = F-10 |
|||
| offset x = -5 |
|||
| offset y = 5 |
|||
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]] |
|||
}} |
|||
{{Map Overlay |
|||
| pos = J-11 |
|||
| offset x = 10 |
|||
| offset y = 4 |
|||
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]] |
|||
}} |
|||
{{Map Overlay |
|||
| pos = J-13 |
|||
| offset x = 10 |
|||
| offset y = 4 |
|||
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]] |
|||
}} |
|||
}} |
|||
|} |
|||
Revision as of 23:11, 26 January 2023
Usage
{{Map
| image =
| area =
| overlay =
}}
- image: The map image to display.
- area: The area to link to.
- overlay: Overlays to add on top of the map. See Template:Map Overlay.
Examples
| Code | Result |
|---|---|
{{Map
| image = SouthernSandOria.png
| area = Southern San d'Oria
}}
|
|
{{Map
| image = Quicksand-caves_1.png
| area = Quicksand Caves
| overlay =
{{Map Overlay
| pos = F-10
| offset x = -5
| offset y = 5
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-11
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-13
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|10px|link=Treasure Coffer]]
}}
}}
|
<span style="position:absolute; left:12px; top:Expression error: Unrecognized punctuation character "{".px; z-index:15; ">Error creating thumbnail: File missing
<span style="position:absolute; left:27px; top:Expression error: Unrecognized punctuation character "{".px; z-index:15; ">Error creating thumbnail: File missing <span style="position:absolute; left:27px; top:Expression error: Unrecognized punctuation character "{".px; z-index:15; ">Error creating thumbnail: File missing |

