Difference between revisions of "Widget:Map Nyx"

From UnderWiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This widget inserts a map of ?? (Nyx).
+
This widget inserts a map of The Vault of Nyx (Nyx).
  
 
=== Parameters ===
 
=== Parameters ===
Line 12: Line 12:
 
[[Category:Widgets]]
 
[[Category:Widgets]]
 
</noinclude><includeonly><div style="width:<!--{$width|escape:'html'|default:'1024'}-->px;height:<!--{$width|escape:'html'|default:'1024'}-->px;position:relative;">
 
</noinclude><includeonly><div style="width:<!--{$width|escape:'html'|default:'1024'}-->px;height:<!--{$width|escape:'html'|default:'1024'}-->px;position:relative;">
<div id="poi1<!--{$seed|escape:'html'|default:'1'}-->" style="position: relative;width:calc((<!--{$width|escape:'html'|default:'1024'}--> / 1024) * 100px);height:calc((<!--{$width|escape:'html'|default:'1024'}--> / 1024) * 100px);left:calc((<!--{$width|escape:'html'|default:'1024'}--> / 1024) * <!--{$poi1x|escape:'html'|default:'0'}-->px);top:calc((<!--{$width|escape:'html'|default:'1024'}--> / 1024) * <!--{$poi1y|escape:'html'|default:'0'}-->px);<!--{if isset($poi1)}-->display:flex;background-size:cover;<!--{else}-->display:none;<!--{/if}-->"><!--{if isset($poi1type)}--><!--{if $poi1type = "npc"}-->background-image: url('http://underwiki.com/images/d/d3/PoI_Aelita.png');<!--{/if}--><!--{if $poi1type = "loot"}-->background-image: url('http://underwiki.com/images/1/11/PoI_Memora.png');<!--{/if}--><!--{if $poi1type = "enemy"}-->background-image: url('http://underwiki.com/images/d/d2/PoI_Animus.png');<!--{/if}--><!--{if $poi1type = "faction"}-->background-image: url('http://underwiki.com/images/9/96/PoI_Faction.png');<!--{/if}--><!--{if $poi1type = "portal"}-->background-image: url('http://underwiki.com/images/c/c8/PoI_Portal.png');<!--{/if}--><!--{if $poi1type = "modus"}-->background-image: url('http://underwiki.com/images/6/66/PoI_Modus.png');<!--{/if}--><!--{if $poi1type = "sapling"}-->background-image: url('http://underwiki.com/images/3/3b/PoI_Trainer.png');<!--{/if}--><!--{if $poi1type = "typhon"}-->background-image: url('http://underwiki.com/images/e/e7/PoI_Nyx.png');<!--{/if}--><!--{if $poi1type = "gates"}-->background-image: url('http://underwiki.com/images/c/c3/PoI_Gates.png');<!--{/if}--><!--{else}-->background-image: url('http://underwiki.com/images/1/1a/PoI_Modus.png');<!--{/if}-->">&nbsp;</div>
+
<div id="base<!--{$seed|escape:'html'|default:'1'}-->" style="width:<!--{$width|escape:'html'|default:'1024'}-->px;height:<!--{$width|escape:'html'|default:'1024'}-->px;position:absolute;top:0;left:0;z-index:1;background-image: url('https://underwiki.com/images/5/5a/Nyx_base.png');<!--{if isset($base)}-->display:none;<!--{else}-->display:flex;background-size:cover;<!--{/if}-->">&nbsp;</div>
<div id="base<!--{$seed|escape:'html'|default:'1'}-->" style="width:<!--{$width|escape:'html'|default:'1024'}-->px;height:<!--{$width|escape:'html'|default:'1024'}-->px;position:absolute;top:0;left:0;z-index:1;background-image: url('http://underwiki.com/images/5/5a/Nyx_base.png');<!--{if isset($base)}-->display:none;<!--{else}-->display:flex;background-size:cover;<!--{/if}-->">&nbsp;</div>
 
 
</div></includeonly>
 
</div></includeonly>

Latest revision as of 08:05, 8 April 2019

This widget inserts a map of The Vault of Nyx (Nyx).

Parameters

width
Width of the map pane, in pixels. Default is 1024 pixels.

Layer Parameters

base
If set, excludes the base map. By default, this is included. (Generally, this should be included.)

Special Parameters

seed
If a map is included more than once on a page, you can override this value so the imagemap and layers are controlled separately in each. The default seed value is '0'.