Template:RegionMap: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="region-map">{{#switch: {{{1|{{{region|}}}}}}
<includeonly>{{#vardefine: region |{{#if:{{{1|{{{region|}}}}}}|<div class="region-map">{{#switch: {{{1|{{{region|}}}}}}
  | Ruben =
  | Ruben =
<imagemap>File:RubenMap.png|572px|
<imagemap>File:RubenMap.png|572px|
Line 193: Line 193:
poly 464 308 452 265 467 261 469 251 519 253 526 265 533 266 521 309 [[Heart El Puzzle]]
poly 464 308 452 265 467 261 469 251 519 253 526 265 533 266 521 309 [[Heart El Puzzle]]
</imagemap>
</imagemap>
}}</div></includeonly>
}}</div>
<noinclude>The '''RegionMap''' template is meant to be used on a region page. It will show an interactive map where all of the dungeon icons can be clicked on, linking to their respective pages. You can access the original file by clicking on the small '''?''' icon that appears on the bottom right corner of the image.
}}
}}
 
{{#if:{{{2|{{{caption|}}}}}}
|<dfn>{{</dfn>
{| cellpadding="0" border-style=none;
| {{#var:region}}
|-
| style="transform: skew(-10deg); background-color:#DDE0E7; height:40px; font-size:18px;" | <div style="width=100%; text-align:center; transform: skew(10deg)">{{{2|{{{caption}}}}}}</div>
|}<dfn>}}</dfn>
|{{#var:region}}
}}
</includeonly>
<noinclude>The '''RegionMap''' template will show an interactive map where all of the dungeon icons can be clicked on, linking to their respective pages. You can access the original file by clicking on the small '''?''' icon that appears on the bottom right corner of the image.


== Usage ==
== Usage ==
  <nowiki>{{regionmap|region=name}}</nowiki>  
  <nowiki>{{regionmap|region=name|caption=text}}</nowiki>  


This is a very simple template. The only parameter is '''region''', which can be replaced by any of the [[Elsword World]]'s regions' names. For example, <code><nowiki>{{RegionMap|Ruben}}</nowiki></code> will return:
This is a very simple template. The only parameters are '''region''', which can be replaced by any of the [[Elsword World]]'s regions' names, and '''caption''', which is completely optional and can be customized however you want. For example, <code><nowiki>{{RegionMap|Ruben}}</nowiki></code> will return:


{{RegionMap|Ruben}}<br>
{{RegionMap|Ruben}}<br>
This template is maintained with the [http://maschek.hu/imagemap/imgmap/ Online Image Map Editor].
 
<code><nowiki>{{RegionMap|Special|'''Special Maps'''}}</nowiki></code> will return:
 
{{RegionMap|Special|'''Special Maps'''}}
 
This template is maintained with the [http://maschek.hu/imagemap/imgmap/ Online Image Map Editor].</noinclude>

Revision as of 06:18, 4 July 2022

The RegionMap template will show an interactive map where all of the dungeon icons can be clicked on, linking to their respective pages. You can access the original file by clicking on the small ? icon that appears on the bottom right corner of the image.

Usage

{{regionmap|region=name|caption=text}} 

This is a very simple template. The only parameters are region, which can be replaced by any of the Elsword World's regions' names, and caption, which is completely optional and can be customized however you want. For example, {{RegionMap|Ruben}} will return:


Tree of ElWhite Mist Swamp


{{RegionMap|Special|'''Special Maps'''}} will return:


{{

Error: Image is invalid or non-existent.

Special Maps

}}


This template is maintained with the Online Image Map Editor.