Template:Map: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Spiffly Created page with "<onlyinclude><includeonly>{{#if:{{{image|}}}|<div style="position: relative; display:inline-block;">[[File:{{{image}}}|link={{{area|}}}]]{{#if:{{{overlay|}}}|<nowiki/>{{{overlay|}}}}}</div>}}</includeonly></onlyinclude> {{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]..." |
imported>Aramachus allowed specifying a map label instead of a filename |
||
| (3 intermediate revisions by 2 users not shown) | |||
| 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> |
<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}}]] |
[[Category:Templates|{{PAGENAMEE}}]] |
||
==Usage== |
==Usage== |
||
| Line 5: | Line 5: | ||
{{Map |
{{Map |
||
| image = |
| image = |
||
| map = |
|||
| area = |
| area = |
||
| overlay = |
| overlay = |
||
}} |
}} |
||
</pre> |
</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. |
|||
*'''image''': The map image to display. |
|||
*'''area''': The area to link to. |
*'''area''': The area to link to. |
||
*'''overlay''': Overlays to add on top of the map. See [[Template:Map Overlay]]. |
*'''overlay''': Overlays to add on top of the map. See [[Template:Map Overlay]]. |
||
| Line 28: | Line 29: | ||
{{Map |
{{Map |
||
| image = SouthernSandOria.png |
| 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 |
| area = Southern San d'Oria |
||
}} |
}} |
||
| Line 39: | Line 53: | ||
{{Map Overlay |
{{Map Overlay |
||
| pos = F-10 |
| pos = F-10 |
||
| offset x = - |
| offset x = -12 |
||
| offset y = 5 |
| offset y = 5 |
||
| contents = [[File:Icon Chest.png| |
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]] |
||
}} |
}} |
||
{{Map Overlay |
{{Map Overlay |
||
| Line 47: | Line 61: | ||
| offset x = 10 |
| offset x = 10 |
||
| offset y = 4 |
| offset y = 4 |
||
| contents = [[File:Icon Chest.png| |
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]] |
||
}} |
}} |
||
{{Map Overlay |
{{Map Overlay |
||
| Line 53: | Line 67: | ||
| offset x = 10 |
| offset x = 10 |
||
| offset y = 4 |
| offset y = 4 |
||
| contents = [[File:Icon Chest.png| |
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]] |
||
}} |
}} |
||
}} |
}} |
||
| Line 64: | Line 78: | ||
{{Map Overlay |
{{Map Overlay |
||
| pos = F-10 |
| pos = F-10 |
||
| offset x = - |
| offset x = -12 |
||
| offset y = 5 |
| offset y = 5 |
||
| contents = [[File:Icon Chest.png| |
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]] |
||
}} |
}} |
||
{{Map Overlay |
{{Map Overlay |
||
| Line 72: | Line 86: | ||
| offset x = 10 |
| offset x = 10 |
||
| offset y = 4 |
| offset y = 4 |
||
| contents = [[File:Icon Chest.png| |
| contents = [[File:Icon Chest.png|25px|link=Treasure Coffer]] |
||
}} |
}} |
||
{{Map Overlay |
{{Map Overlay |
||
| Line 78: | Line 92: | ||
| offset x = 10 |
| offset x = 10 |
||
| offset y = 4 |
| offset y = 4 |
||
| contents = [[File:Icon Chest.png| |
| 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
}}
|
|
{{Map
| map = Map 1
| area = Southern San d'Oria
}}
|
|
{{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]]
}}
}}
|
<span style="position:absolute; left:5px; 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 |

