Difference between revisions of "Template:NPCMap2"
(21 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
#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|}}}|{{#if:{{{Sublocation|}}}|{{{float_caption|}}}{{SetGeoVars2|{{{Sublocation|none}}}}}{{#if:{{#var:zone|}}| - {{#var:zone}}|{{{zone|}}}}}{{#if:{{#var:area|}}| - {{#var:area}}}}{{#if:{{#var:landmark|}}| - {{#var:landmark}}}}|{{{float_caption|}}}}}{{#if:{{{float_caption_coordinates|}}}| {{{float_caption_coordinates|}}}|}} |
− | }}[[Image:{{{base}}}|{{{base_width|550px}}}|link={{#ifeq:{{#titleparts: {{PAGENAME}} | -1 | -2 }}|Map|{{ | + | ]]</div> |
+ | }}[[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]]}}{{#arraydefine:mapstarter|{{{Issuer|}}}}}{{#arrayprint:mapstarter||@@@@|[[Category:@@@@ start NPC]]}}{{#arraydefine:events|{{{Event|}}}}}{{#arrayprint:events||@@@@|[[Category:@@@@ NPC]]}}<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 19:35, 28 October 2023
[[Image:{{{base}}}|550px|link={{{float_link}}}/Map/{{{npc_id}}}|alt=|]]