Difference between revisions of "Widget:Map Nyx"
Jump to navigation
Jump to search
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}-- | + | <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}-->"> </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}-->"> </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}-->"> </div> | ||
</div></includeonly> | </div></includeonly> |
Revision as of 11:31, 8 February 2019
This widget inserts a map of ?? (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'.