Difference between revisions of "Template:NPCMap"

(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{/Documentation}}</noinclude><onlyinclude><div style="position: relative; width: {{{base_width|550px}}};{{#switch:{{{align|}}}|left=float:left; clear:left;|right=float:right; clear:right;|center=margin-left:auto; margin-right:auto;|#default=}}">{{
+
<div style="position: relative; width: {{{base_width|550px}}};{{#switch:{{{align|}}}|left=float:left; clear:left;|right=float:right; clear:right;|center=margin-left:auto; margin-right:auto;|#default=}}">{{
 
#if: {{{x|}}}  
 
#if: {{{x|}}}  
 
   | <div style="position: absolute; left: {{{x|0}}}px; top: {{{y|0}}}px; padding: 0;"><!--
 
   | <div style="position: absolute; left: {{{x|0}}}px; top: {{{y|0}}}px; padding: 0;"><!--
 
       -->[[Image:{{{float|Player1_Icon.png}}}|{{{float_width|16px}}}{{#ifeq:{{{float_link|}}}|file:||{{!}}link={{{float_link|}}}}}|alt={{{float_alt|}}}|{{{float_caption|}}}]]</div>
 
       -->[[Image:{{{float|Player1_Icon.png}}}|{{{float_width|16px}}}{{#ifeq:{{{float_link|}}}|file:||{{!}}link={{{float_link|}}}}}|alt={{{float_alt|}}}|{{{float_caption|}}}]]</div>
}}[[Image:{{{base}}}|{{{base_width|550px}}}{{#ifeq:{{{base_link|file:}}}|file:||{{!}}link={{{base_link|file:}}}}}|alt={{{base_alt|}}}|{{{base_caption|}}}]]</div></onlyinclude>[[Category:NPC Maps]]<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
}}[[Image:{{{base}}}|{{{base_width|550px}}}|link={{#ifeq:{{#titleparts: {{PAGENAME}} | -1 | -2 }}|Map|{{{zone}}}|{{{float_link}}}/Map/{{{npc_id}}}}}|alt={{{base_alt|}}}|{{{base_caption|}}}]]</div>{{#ifeq:{{SUBPAGENAME}}|Map|[[Category:NPC Maps]]}}{{#ifeq:{{#titleparts: {{PAGENAME}} | -1 | -2 }}|Map|[[Category:NPC Maps]]}}{{#ifexist:{{#titleparts: {{PAGENAME}} | 1 }}||[[Category:Orphaned NPC Map]]}}<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 15:35, 12 September 2019

[[Image:{{{base}}}|550px|link={{{float_link}}}/Map/{{{npc_id}}}|alt=|]]