Difference between revisions of "Template:ARR Infobox NPC2"

(61 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>{{/Documentation}}</noinclude><includeonly>
 
<noinclude>{{/Documentation}}</noinclude><includeonly>
{{XIVboxHeader|Patch={{{Patch|}}}|Title={{#if:{{{Full Name|}}}|{{{Full Name}}}|{{{Name}}}}}|Icon={{{Icon|NPC_Icon.png}}}|Iconsize={{{Iconsize|48px}}}|Type=[[:Category:NPC|NPC]]|Subtitle=<div style="padding:0em 0em 0em .5em; font-size:12px;font-style: italic; font-weight: bold;">&nbsp;&nbsp;{{#if:{{{Race|}}}|[[{{Raceswitch|Race={{{Race}}}}}]]{{#if:{{{Clan|}}}|{{color|white|style=normal|&nbsp;/&nbsp;}}}}}}{{#if:{{{Clan|}}}|[[{{Clanswitch|Clan={{{Clan}}}}}]]{{#if:{{{Gender|}}}|{{color|white|style=normal|&nbsp;/&nbsp;}}}}}}{{#if:{{{Clan|}}}||{{#if:{{{Gender|}}}|{{color|white|style=normal|&nbsp;/&nbsp;}}}}}}{{#if:{{{Gender|}}}|[[{{Genderswitch|Gender={{{Gender}}}}}]]}}</div>|Icons={{NPC Involvement Icons | Name={{PAGENAME}} }}{{#if:{{{Level|}}}|&nbsp;<span style="text-align:center; font-size:12px; width:100px; height:20px; padding: 1px; float:center; background-color:#000000; border:1px solid #000000; -moz-border-radius: 100px; -webkit-border-radius: 100px; -khtml-border-radius: 100px; border-radius: 100px;" ><span style="height: .25ex;"></span>&nbsp;{{color|white|Lv.}}&nbsp;{{color|white|{{{Level|}}}}}</span>}}}}
+
{{XIVboxHeader|Patch={{{Patch|}}}|Title={{Newpatch|Patch={{{Patch}}}}}{{#if:{{{Full Name|}}}|{{{Full Name}}}|{{{Name}}}}}|Icon={{{Icon|NPC_Icon.png}}}|Iconsize={{{Iconsize|48px}}}|Type=[[:Category:NPC|NPC]]|Subtitle=<div style="padding:0em 0em 0em .5em; font-size:12px;font-style: italic; font-weight: bold;">&nbsp;&nbsp;{{#if:{{{Race|}}}|[[{{Raceswitch|Race={{{Race}}}}}]]{{#if:{{{Clan|}}}|{{color|white|style=normal|&nbsp;/&nbsp;}}}}}}{{#if:{{{Clan|}}}|[[{{Clanswitch|Clan={{{Clan}}}}}]]{{#if:{{{Gender|}}}|{{color|white|style=normal|&nbsp;/&nbsp;}}}}}}{{#if:{{{Clan|}}}||{{#if:{{{Gender|}}}|{{color|white|style=normal|&nbsp;/&nbsp;}}}}}}{{#if:{{{Gender|}}}|[[{{Genderswitch|Gender={{{Gender}}}}}]]}}</div>|Icons={{NPC Involvement Icons | Name={{PAGENAME}} }}{{#if:{{{Level|}}}|&nbsp;<span style="text-align:center; font-size:12px; width:100px; height:20px; padding: 1px; float:center; background-color:#000000; border:1px solid #000000; -moz-border-radius: 100px; -webkit-border-radius: 100px; -khtml-border-radius: 100px; border-radius: 100px;" ><span style="height: .25ex;"></span>&nbsp;{{color|white|Lv.}}&nbsp;{{color|white|{{{Level|}}}}}</span>}}}}
 
{{!}}-
 
{{!}}-
 
|height="12px" width="69%" valign="top" colspan="1"|
 
|height="12px" width="69%" valign="top" colspan="1"|
 +
{{#tag:tabber|
 +
Details=
 
{{{!}} style="color:white; width:100%; cellpadding=0; cellspacing=0;" border=0
 
{{{!}} style="color:white; width:100%; cellpadding=0; cellspacing=0;" border=0
 
{{!}}valign="top" colspan="2" style="font-weight:bold; width: 10%;" {{!}}{{color|white|style=normal|Zone(s):}}
 
{{!}}valign="top" colspan="2" style="font-weight:bold; width: 10%;" {{!}}{{color|white|style=normal|Zone(s):}}
 
{{#if:{{{Location 11|}}}|
 
{{#if:{{{Location 11|}}}|
 
{{!}}{{CList2|Title=This NPC is found in many locations, usually depending on advancement of various questlines.  Click to see all locations.|collapse=mw-collapsed|dpl=
 
{{!}}{{CList2|Title=This NPC is found in many locations, usually depending on advancement of various questlines.  Click to see all locations.|collapse=mw-collapsed|dpl=
{{#forargs:Location| ik | iv | {{#if:{{#var:iv|}}|{{#ifeq:{{#var:ik}}|{{#explode:{{#var:ik}}||0}}|<nowiki/>{{SetGeoVars2|{{{Location {{#var:ik}}|nosuch}}}}}{{#if:{{{Location {{#var:ik}} FATE|}}}|[[File:Mob18 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} FATE}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in FATE|#default = {{{Location {{#var:ik}} FATE|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Levequest|}}}|[[File:Mob16 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Levequest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Levequests|#default = {{{Location {{#var:ik}} Levequest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Guildhest|}}}|[[File:Mob17 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Guildhest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Guildhets|#default = {{{Location {{#var:ik}} Guildhest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Event|}}}|[[File:Seasonalachievementicon.png|12px|link={{#switch:{{{Location {{#var:ik}} Event}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Event|#default = {{{Location {{#var:ik}} Event|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Quest|}}}|[[File:Mob14_Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Quest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Quests|#default = {{#arraydefine:questrow|{{{Location {{#var:ik}} Quest|}}}}}{{#ifexpr: {{#arraysize:questrow}} = 1 | {{#arrayprint:questrow}} | {{PAGENAME}}#Involved in Quests }}}}]]|}}{{#if:{{{Location {{#var:ik}} Cutscene|}}}|[[File:Player7_Icon.png|12px|link=Cutscene NPC]]|}}{{ZONELink|{{#var:zone}}}} {{#if:{{#var:duty|}}|- {{#var:duty}}}}}} {{#if:{{#var:area|}}|- {{GEOLink|{{#var:area}}}}}} {{#if:{{#var:landmark|}}|- {{GEOLink|{{#var:landmark}}}}}}{{#if:{{{Location {{#var:ik}} Coordinates|}}}|&nbsp;{{color|white|style=normal|({{{Location {{#var:ik}} Coordinates|}}})}}|}}{{#if:{{{Location {{#var:ik}} Duty|}}}|&nbsp;{{color|white|style=normal|([[{{{Location {{#var:ik}} Duty|}}}]])}}|}}{{#if:{{{Location {{#var:ik}} Level|}}}|&nbsp;{{color|white|style=normal|(Lv. {{{Location {{#var:ik}} Level|}}})}}{{spc}}|{{spc}}}}}}}}}}}}
+
{{#forargs:Location| ik | iv | {{#if:{{#var:iv|}}|{{#ifeq:{{#var:ik}}|{{#explode:{{#var:ik}}||0}}|<nowiki/>{{SetGeoVars2|{{{Location {{#var:ik}}|nosuch}}}}}{{#if:{{{Location {{#var:ik}} FATE|}}}|[[File:Mob18 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} FATE}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in FATE|#default = {{{Location {{#var:ik}} FATE|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Levequest|}}}|[[File:Mob16 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Levequest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Levequests|#default = {{{Location {{#var:ik}} Levequest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Guildhest|}}}|[[File:Mob17 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Guildhest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Guildhets|#default = {{{Location {{#var:ik}} Guildhest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Event|}}}|[[File:Seasonalachievementicon.png|12px|link={{#switch:{{{Location {{#var:ik}} Event}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Event|#default = {{{Location {{#var:ik}} Event|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Quest|}}}|[[File:Mob14_Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Quest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Quests|#default = {{#arraydefine:questrow|{{{Location {{#var:ik}} Quest|}}}}}{{#ifexpr: {{#arraysize:questrow}} = 1 | {{#arrayprint:questrow}} | {{PAGENAME}}#Involved in Quests }}}}]]|}}{{#if:{{{Location {{#var:ik}} Cutscene|}}}|[[File:Player7_Icon.png|12px|link=Cutscene NPC]]|}}{{ZONELink|{{#var:zone}}}} {{#if:{{#var:duty|}}|- {{GEOLink|{{#var:duty}}}}}} {{#if:{{#var:area|}}|- {{GEOLink|{{#var:area}}}}}} {{#if:{{#var:landmark|}}|- {{GEOLink|{{#var:landmark}}}}}}{{#if:{{{Location {{#var:ik}} Coordinates|}}}|&nbsp;{{color|white|style=normal|({{{Location {{#var:ik}} Coordinates|}}})}}|}}{{#if:{{{Location {{#var:ik}} Level|}}}|&nbsp;{{color|white|style=normal|(Lv. {{{Location {{#var:ik}} Level|}}})}}{{spc}}|{{spc}}}}}}}}}}}}
 
|
 
|
{{!}}valign="top" colspan="6" style="width: 90%;"{{!}}{{#forargs:Location| ik | iv | {{#if:{{#var:iv|}}|{{#ifeq:{{#var:ik}}|{{#explode:{{#var:ik}}||0}}|<nowiki/>{{SetGeoVars2|{{{Location {{#var:ik}}|nosuch}}}}}{{#if:{{{Location {{#var:ik}} FATE|}}}|[[File:Mob18 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} FATE}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in FATE|#default = {{{Location {{#var:ik}} FATE|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Levequest|}}}|[[File:Mob16 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Levequest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Levequests|#default = {{{Location {{#var:ik}} Levequest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Guildhest|}}}|[[File:Mob17 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Guildhest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Guildhets|#default = {{{Location {{#var:ik}} Guildhest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Event|}}}|[[File:Seasonalachievementicon.png|12px|link={{#switch:{{{Location {{#var:ik}} Event}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Event|#default = {{{Location {{#var:ik}} Event|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Quest|}}}|[[File:Mob14_Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Quest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Quests|#default = {{#arraydefine:questrow|{{{Location {{#var:ik}} Quest|}}}}}{{#ifexpr: {{#arraysize:questrow}} = 1 | {{#arrayprint:questrow}} | {{PAGENAME}}#Involved in Quests }}}}]]|}}{{#if:{{{Location {{#var:ik}} Cutscene|}}}|[[File:Player7_Icon.png|12px|link=Cutscene NPC]]|}}{{GEOLink|{{#var:zone}}}} {{#if:{{#var:area|}}|- {{GEOLink|{{#var:area}}}}}} {{#if:{{#var:landmark|}}|- {{GEOLink|{{#var:landmark}}}}}}{{#if:{{{Location {{#var:ik}} Coordinates|}}}|&nbsp;{{color|white|style=normal|({{{Location {{#var:ik}} Coordinates|}}})}}|}}{{#if:{{{Location {{#var:ik}} Level|}}}|&nbsp;{{color|white|style=normal|(Lv. {{{Location {{#var:ik}} Level|}}})}}{{spc}}|{{spc}}}}}}}}}}
+
{{!}}valign="top" colspan="6" style="width: 90%;"{{!}}{{#forargs:Location| ik | iv | {{#if:{{#var:iv|}}|{{#ifeq:{{#var:ik}}|{{#explode:{{#var:ik}}||0}}|<nowiki/>{{SetGeoVars2|{{{Location {{#var:ik}}|nosuch}}}}}{{#if:{{{Location {{#var:ik}} FATE|}}}|[[File:Mob18 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} FATE}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in FATE|#default = {{{Location {{#var:ik}} FATE|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Levequest|}}}|[[File:Mob16 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Levequest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Levequests|#default = {{{Location {{#var:ik}} Levequest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Guildhest|}}}|[[File:Mob17 Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Guildhest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Guildhets|#default = {{{Location {{#var:ik}} Guildhest|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Event|}}}|[[File:Seasonalachievementicon.png|12px|link={{#switch:{{{Location {{#var:ik}} Event}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Event|#default = {{{Location {{#var:ik}} Event|}}}}}]]|}}{{#if:{{{Location {{#var:ik}} Quest|}}}|[[File:Mob14_Icon.png|12px|link={{#switch:{{{Location {{#var:ik}} Quest}}}|x|X|yes|Yes= {{PAGENAME}}#Involved in Quests|#default = {{#arraydefine:questrow|{{{Location {{#var:ik}} Quest|}}}}}{{#ifexpr: {{#arraysize:questrow}} = 1 | {{#arrayprint:questrow}} | {{PAGENAME}}#Involved in Quests }}}}]]|}}{{#if:{{{Location {{#var:ik}} Cutscene|}}}|[[File:Player7_Icon.png|12px|link=Cutscene NPC]]|}}{{GEOLink|{{#var:zone}}}} {{#if:{{#var:duty|}}|- {{GEOLink|{{#var:duty}}}}}} {{#if:{{#var:area|}}|- {{GEOLink|{{#var:area}}}}}} {{#if:{{#var:landmark|}}|- {{GEOLink|{{#var:landmark}}}}}}{{#if:{{{Location {{#var:ik}} Coordinates|}}}|&nbsp;{{color|white|style=normal|({{{Location {{#var:ik}} Coordinates|}}})}}|}}{{#if:{{{Location {{#var:ik}} Level|}}}|&nbsp;{{color|white|style=normal|(Lv. {{{Location {{#var:ik}} Level|}}})}}{{spc}}|{{spc}}}}}}}}}}
 
}}
 
}}
 
{{!}}-
 
{{!}}-
Line 39: Line 41:
 
{{{Biography|}}}
 
{{{Biography|}}}
 
}}
 
}}
|-
+
{{!}}-{{!}}
|}
+
Map=
 +
{{#if:{{{Location 2|}}}|This NPC is found in multiple locations.  The map below shows where the NPC is ''first'' encountered.}}
 +
{{#vardefine:map|
 +
{{#dpl:
 +
|  titlematch= {{fixtick|{{#urldecode:{{BASEPAGENAMEE}}}}}}/Map/%
 +
|  distinct = strict
 +
|  format  = ,\n%TITLE%,,
 +
|  mode=userformat
 +
|  count=1
 +
| noresultsheader = [[Category:NPC Map Needed]]
 +
}}}}{{#ifeq:{{:{{#var:map}}}}|{{:}}|{{:{{#var:map}}}}|}}
 +
}}
 
|height="12px" width="1%" valign="top" colspan="1" style="border-right: 2px solid #969696;" |
 
|height="12px" width="1%" valign="top" colspan="1" style="border-right: 2px solid #969696;" |
 
|height="12px" width="30%" valign="top" colspan="1" class="npcimage{{#if:{{{Move Image Up|}}}|up{{{Move Image Up|0}}}}}{{#if:{{{Move Image Left|}}}|left{{{Move Image Left|0}}}}}" |[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{{Name}}}.png}}{{!}}{{{Image Width|220}}}px]]
 
|height="12px" width="30%" valign="top" colspan="1" class="npcimage{{#if:{{{Move Image Up|}}}|up{{{Move Image Up|0}}}}}{{#if:{{{Move Image Left|}}}|left{{{Move Image Left|0}}}}}" |[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{{Name}}}.png}}{{!}}{{{Image Width|220}}}px]]
Line 135: Line 148:
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| allowcachedresults=true
 
| allowcachedresults=true
| dplcache=involvedinleves{{SUBPAGENAME}}1a
+
| dplcache=involvedinleves{{SUBPAGENAME}}-2
 
| suppresserrors=true
 
| suppresserrors=true
}}}}{{CList2|Title=<span id="Involved in Quests">Involved in Quests</span>|CountCat=Quest Involving {{fixtick|{{SUBPAGENAME}}}}|dpl={{#dpl:
+
}}}}{{CList8|Title=<span id="Involved in Quests">Involved in Quests</span>|CountCat=Quest Involving {{fixtick|{{SUBPAGENAME}}}}|dpl={{#dpl:
 
| namespace=
 
| namespace=
 
| category=Quest Involving {{Fixtick|{{SUBPAGENAME}}}}
 
| category=Quest Involving {{Fixtick|{{SUBPAGENAME}}}}
 +
| includesubpages=false
 
| columns={{#ifexpr: {{PAGESINCAT:Quest Involving {{Fixtick|{{SUBPAGENAME}}}}|R}} > 8 | 3 |1}}
 
| columns={{#ifexpr: {{PAGESINCAT:Quest Involving {{Fixtick|{{SUBPAGENAME}}}}|R}} > 8 | 3 |1}}
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| allowcachedresults=true
 
| allowcachedresults=true
| dplcache=involvedinquests{{SUBPAGENAME}}1a
+
| dplcache=involvedinquests{{SUBPAGENAME}}-2
 
| suppresserrors=true
 
| suppresserrors=true
 
}}}}{{CList2|Title=<span id="Involved in FATEs">Involved in FATEs</span>|CountCat={{fixtick|{{SUBPAGENAME}}}} Involved in FATE|dpl={{#dpl:
 
}}}}{{CList2|Title=<span id="Involved in FATEs">Involved in FATEs</span>|CountCat={{fixtick|{{SUBPAGENAME}}}} Involved in FATE|dpl={{#dpl:
Line 150: Line 164:
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| allowcachedresults=true
 
| allowcachedresults=true
| dplcache=involvedinfates{{SUBPAGENAME}}1a
+
| dplcache=involvedinfates{{SUBPAGENAME}}-2
 
| suppresserrors=true
 
| suppresserrors=true
 
}}}}{{CList2|Title=<span id="Involved in Guildhests">Involved in Guildhests</span>|CountCat={{fixtick|{{SUBPAGENAME}}}} Involved in Guildhest|dpl={{#dpl:
 
}}}}{{CList2|Title=<span id="Involved in Guildhests">Involved in Guildhests</span>|CountCat={{fixtick|{{SUBPAGENAME}}}} Involved in Guildhest|dpl={{#dpl:
Line 157: Line 171:
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| allowcachedresults=true
 
| allowcachedresults=true
| dplcache=involvedinguildhests{{SUBPAGENAME}}1a
+
| dplcache=involvedinguildhests{{SUBPAGENAME}}-2
 
| suppresserrors=true
 
| suppresserrors=true
 
}}}}{{CList2|Title=<span id="Involved in Obsolete Quests">Pre-Calamity Involvement</span>|CountCat=Obsolete Quest Involving {{fixtick|{{SUBPAGENAME}}}}|dpl={{#dpl:
 
}}}}{{CList2|Title=<span id="Involved in Obsolete Quests">Pre-Calamity Involvement</span>|CountCat=Obsolete Quest Involving {{fixtick|{{SUBPAGENAME}}}}|dpl={{#dpl:
Line 164: Line 178:
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| allowcachedresults=true
 
| allowcachedresults=true
| dplcache=involvedinobsoletequest{{SUBPAGENAME}}1a
+
| dplcache=involvedinobsoletequest{{SUBPAGENAME}}-2
 
| suppresserrors=true
 
| suppresserrors=true
 
}}}}{{CList2|Title=<span id="Member of Organization">Member of Organization(s)</span>|CountCat={{fixtick|{{SUBPAGENAME}}}} Organization Member|dpl={{#dpl:
 
}}}}{{CList2|Title=<span id="Member of Organization">Member of Organization(s)</span>|CountCat={{fixtick|{{SUBPAGENAME}}}} Organization Member|dpl={{#dpl:
Line 171: Line 185:
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| format  = ,\n* [[%PAGE%{{!}}%TITLE%]],,
 
| allowcachedresults=true
 
| allowcachedresults=true
| dplcache=involvedinorganization{{SUBPAGENAME}}1a
+
| dplcache=involvedinorganization{{SUBPAGENAME}}-2
 
| suppresserrors=true
 
| suppresserrors=true
 
}}}}
 
}}}}

Revision as of 01:08, 6 October 2019

Qmark.gif
This template is in need of documentation, please document the template with relevant details.