Template:Zone Tooltip Map: Difference between revisions
From HorizonXI Wiki
No edit summary Tags: Reverted visualeditor-wikitext |
No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{1|}}}|<div style="display:inline-block;">{{Tooltip-Map | <includeonly><onlyinclude>{{#if:{{{1|}}}|<div style="display:inline-block;">{{Tooltip-Map | ||
| text = [[File:{{trim|{{#section:{{{zone|{{PAGENAME}}}}}/Maps|{{{1}}}}}}}| | | text = [[File:{{trim|{{#section:{{{zone|{{PAGENAME}}}}}/Maps|{{{1}}}}}}}|{{{size|20}}}px|link={{{zone|{{PAGENAME}}}}}/Maps#{{{1}}}{{#if:{{{caption|}}}|{{!}}thumb{{!}}{{{caption}}}|}}]] | ||
| map = {{trim|{{#section:{{{zone|{{PAGENAME}}}}}/Maps|{{{1}}}}}}} | | map = {{trim|{{#section:{{{zone|{{PAGENAME}}}}}/Maps|{{{1}}}}}}} | ||
| mapsize = | | mapsize = 501 | ||
| underline = {{{underline|}}} | |||
}}</div>}}</onlyinclude></includeonly> | }}</div>}}</onlyinclude></includeonly> | ||
[[Category:Templates|{{PAGENAMEE}}]] | [[Category:Templates|{{PAGENAMEE}}]] | ||
| Line 9: | Line 10: | ||
{{Zone Tooltip Map|<map name>}} | {{Zone Tooltip Map|<map name>}} | ||
</pre> | </pre> | ||
Used on zone pages to display small maps that link to the maps subpage and display a larger tooltip map on hover. | Used on zone pages to display small maps that link to the maps subpage and display a larger tooltip map on hover. | ||
Optional Arguments: | |||
*'''zone''': The zone the map belongs to. Defaults to the page's name. | *'''zone''': The zone the map belongs to. Defaults to the page's name. | ||
*'''caption''': Allows to put a caption below the displayed map. | |||
*'''size''': Allows to change the size of the displayed map. | |||
*'''underline''': set to ''none'' if you do not want the default underline indicator for tooltip elements. | |||
===Examples=== | ===Examples=== | ||
{|border="1" | {|border="1" | ||
| Line 22: | Line 28: | ||
| {{Zone Tooltip Map|North|zone=Windurst Waters}} | | {{Zone Tooltip Map|North|zone=Windurst Waters}} | ||
|} | |} | ||
<div class="flex-container"> | |||
<div class="flex-container-item-2"> | |||
<pre>{{Zone Tooltip Map|Map 1 | |||
|zone=Pso'Xja | |||
|size=100 | |||
|caption=Pso'Xja Map 1 | |||
|underline=none | |||
}}</pre> | |||
</div><div class="flex-container-item-2"> | |||
{{Zone Tooltip Map|Map 1 | |||
|zone=Pso'Xja | |||
|size=100 | |||
|caption=Pso'Xja Map 1 | |||
|underline=none | |||
}} | |||
</div></div> | |||
Latest revision as of 10:26, 4 July 2025
Usage
{{Zone Tooltip Map|<map name>}}
Used on zone pages to display small maps that link to the maps subpage and display a larger tooltip map on hover.
Optional Arguments:
- zone: The zone the map belongs to. Defaults to the page's name.
- caption: Allows to put a caption below the displayed map.
- size: Allows to change the size of the displayed map.
- underline: set to none if you do not want the default underline indicator for tooltip elements.
Examples
| Code | Result |
|---|---|
{{Zone Tooltip Map|Map 1}}
|
|
{{Zone Tooltip Map|North}}
|
