Template:RegionMap: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine: region |{{#if:{{{1|{{{region|}}}}}}|<div class="region-map">{{#switch: {{{1|{{{region|}}}}}}
<includeonly>{{#css:MediaWiki:RegionMap.css}}{{#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>
}}
}}
{{#if:{{{2|{{{link|}}}}}}|<div class="region-link">[[File:UI - Link.png|link={{{2|{{{link|}}}}}}]]</div>
}}
}}
{{#if:{{{2|{{{caption|}}}}}}
|<dfn>{{</dfn>
{| cellpadding="0" border-style=none; overflow=visible;
| {{#var:region}}
|-
| style="transform: skew(-10deg); font-size:18px;" class="tone-8" | <div style="width=100%; padding:10px; text-align:center; transform: skew(10deg)">{{{2|{{{caption}}}|}}}</div>
|}<dfn>}}</dfn>
|{{#var:region}}
}}
}}
</div>
}}
<div class="region-map-wrap">
{{#var:region}}
{{#ifeq:{{{3|{{{caption|}}}}}}|true
|<div style="transform: skew(-10deg); font-size:18px;" class="tone-8"><div style="padding:10px; text-align:center; transform: skew(10deg)">'''{{{2|{{{link}}}|}}}'''</div></div>
}}
</div>
</includeonly>
</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.
<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|caption=text}}</nowiki>  
  <nowiki>{{regionmap|region=name|link=text|caption=true}}</nowiki>  


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:
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>
<code><nowiki>{{RegionMap|Special|'''Special Maps'''}}</nowiki></code> will return:
<code><nowiki>{{RegionMap|Special|Special Maps}}</nowiki></code> will return:
{{RegionMap|Special|'''Special Maps'''}}
{{RegionMap|Special|Special Maps}}
<code><nowiki>{{RegionMap|Sander|Sander|true}}</nowiki></code> will return:
{{RegionMap|Sander|Sander|true}}
This template is maintained with the [http://maschek.hu/imagemap/imgmap/ Online Image Map Editor].</noinclude>
This template is maintained with the [http://maschek.hu/imagemap/imgmap/ Online Image Map Editor].</noinclude>

Revision as of 01:01, 5 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|link=text|caption=true}} 

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.


{{RegionMap|Sander|Sander|true}} will return:

Error: Image is invalid or non-existent.

Sander


This template is maintained with the Online Image Map Editor.