Difference between revisions of "Template:ARR Infobox NPC"
(preparation for /map addition) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
{{#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 | + | {{#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 Guildhests|#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|}}}| {{color|white|style=normal|({{{Location {{#var:ik}} Coordinates|}}})}}|}}{{#if:{{{Location {{#var:ik}} Level|}}}| {{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 | + | {{!}}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 Guildhests|#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|}}}| {{color|white|style=normal|({{{Location {{#var:ik}} Coordinates|}}})}}|}}{{#if:{{{Location {{#var:ik}} Level|}}}| {{color|white|style=normal|(Lv. {{{Location {{#var:ik}} Level|}}})}}{{spc}}|{{spc}}}}}}}}}} |
}} | }} | ||
{{!}}- | {{!}}- | ||
Line 41: | Line 41: | ||
{{{Biography|}}} | {{{Biography|}}} | ||
}} | }} | ||
− | |||
{{!}}-{{!}} | {{!}}-{{!}} | ||
Map= | Map= | ||
− | {{#if:{{{Location 2|}}}|This NPC is found in | + | {{#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]] | ||
+ | }}}}{{:{{#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 141: | Line 148: | ||
| format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | | format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | ||
| allowcachedresults=true | | allowcachedresults=true | ||
− | | dplcache=involvedinleves{{SUBPAGENAME}} | + | | dplcache=involvedinleves{{SUBPAGENAME}}-2 |
| suppresserrors=true | | suppresserrors=true | ||
− | }}}}{{ | + | }}}}{{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}} | + | | 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 156: | Line 164: | ||
| format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | | format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | ||
| allowcachedresults=true | | allowcachedresults=true | ||
− | | dplcache=involvedinfates{{SUBPAGENAME}} | + | | 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 163: | Line 171: | ||
| format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | | format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | ||
| allowcachedresults=true | | allowcachedresults=true | ||
− | | dplcache=involvedinguildhests{{SUBPAGENAME}} | + | | 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 170: | Line 178: | ||
| format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | | format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | ||
| allowcachedresults=true | | allowcachedresults=true | ||
− | | dplcache=involvedinobsoletequest{{SUBPAGENAME}} | + | | 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 177: | Line 185: | ||
| format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | | format = ,\n* [[%PAGE%{{!}}%TITLE%]],, | ||
| allowcachedresults=true | | allowcachedresults=true | ||
− | | dplcache=involvedinorganization{{SUBPAGENAME}} | + | | dplcache=involvedinorganization{{SUBPAGENAME}}-2 |
| suppresserrors=true | | suppresserrors=true | ||
}}}} | }}}} |
Revision as of 23:50, 8 October 2019
{{ARR Infobox NPC | Patch = 4.0 | Image = {{subst:PAGENAME}}.png <!-- Forced to 220x400px. --> | Image Width = <!-- Used to override default 220px width. Leave blank if not needed --> | Name = {{subst:SUBPAGENAME}} <!-- MUST be set to the PAGENAME. If their full name is different from their display name, use Full Name --> | Full Name = <!-- If the NPC has a last name which doesn't appear above their head in-game, place their entire first/last name here --> | Level = | Gender = | Race = | Clan = | Affiliation = <!-- Name of city-state affiliation. Creates category of what's entered --> | Occupation = <!-- Comma separated if more than one. Creates category of what's entered --> | Employer = <!-- Comma separated if more than one, encase in brackets if needed --> | Title = <!-- Delete this comment and the one below 'Occupation Link' if you do not want the system to automatically create category links to what is entered in them! | Affiliation Link = No | Occupation Link = No --> | Location 1 = | Location 1 Coordinates = | Location 1 Level = | Location 1 Cutscene = | Location 1 FATE = | Location 1 Event = | Location 1 Quest = | Location 1 Guildhest = | Location 1 Levequest = | Location 2 = | Location 2 Coordinates = | Location 2 Level = | Location 2 Cutscene = | Location 2 FATE = | Location 2 Event = | Location 2 Quest = | Location 2 Guildhest = | Location 2 Levequest = <!-- Add more if needed --> | Dialogue = | Additional Dialogue = | Pre-Calamity Dialogue = | TabbedSells = <!-- If a merchant, remove THIS line with the exclamation point and --'s, and the other line like it just before 'Biography' to enable Merchant code! If not a merchant, delete this entire explanation and code to prevent confusion for future editors. {{Tabsells |General = {{Sells|Woodworking Delineation|Quantity=10|Currency=Blue Crafters' Scrip|250}} |Curious Crop Exchange = {{Trades|Adamantite Nugget|Quantity=1|Item1=Althyk Lavender|Count1=1}} }} --> | Biography = | Images = | Etymology = | Notes = }}