Rebase warning banner.png
Please read this page if you intend on editing the Wiki post rebase!

Template:Map: Difference between revisions

From HorizonXI Wiki
(Blanked the page)
Tags: Blanking Reverted visualeditor-wikitext
(allowed specifying a map label instead of a filename)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{{image|}}}{{{map|}}}|<div style="position: relative; display:inline-block;">[[File:{{{image|{{#section:{{{area}}}/Maps|{{{map}}}}}}}}|link={{{area|}}}]]{{#if:{{{overlay|}}}|<nowiki/>{{{overlay|}}}}}</div>}}</includeonly></onlyinclude>
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
<pre>
{{Map
| image =
| map =
| area =
| overlay =
}}
</pre>
*'''image''' or '''map''': the former takes a filename for a map image while the latter takes the label of a map, typically the number of the map in the area.
*'''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
| map = Map 1
| area = Southern San d'Oria
}}
</pre>
|
{{Map
| map = Map 1
| 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 = -12
| offset y = 5
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-11
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-13
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
}}
</pre>
|
{{Map
| image = Quicksand-caves_1.png
| area = Quicksand Caves
| overlay =
{{Map Overlay
| pos = F-10
| offset x = -12
| offset y = 5
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-11
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-13
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
}}
|}

Latest revision as of 20:29, 17 March 2026

Usage

{{Map
| image = 
| map = 
| area = 
| overlay = 
}}
  • image or map: the former takes a filename for a map image while the latter takes the label of a map, typically the number of the map in the area.
  • 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
}}
SouthernSandOria.png
{{Map
| map = Map 1
| area = Southern San d'Oria
}}
SouthernSandOria.png
{{Map
| image = Quicksand-caves_1.png
| area = Quicksand Caves
| overlay = 
{{Map Overlay
| pos = F-10
| offset x = -12
| offset y = 5
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-11
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
{{Map Overlay
| pos = J-13
| offset x = 10
| offset y = 4
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]]
}}
}}
Quicksand-caves 1.pngIcon Chest.png

Icon Chest.png

Icon Chest.png