Difference between revisions of "Template:ARR Infobox NPC"

(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{/Documentation}}</noinclude><includeonly>
 
<noinclude>{{/Documentation}}</noinclude><includeonly>
{{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>}}}}
+
{{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;{{NPC Basics|Gender={{{Gender}}}|Race={{{Race}}}|Clan={{{Clan}}}}}</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"|
Line 41: 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|
 
{{#vardefine:map|
 
{{#dpl:
 
{{#dpl:
Line 52: Line 49:
 
| count=1
 
| count=1
 
|  noresultsheader = [[Category:NPC Map Needed]]
 
|  noresultsheader = [[Category:NPC Map Needed]]
}}}}{{:{{#var:map}}}}
+
}}}}{{#ifeq: {{#titleparts: {{#var:map}}|1|2 }}| Map |
 +
{{!}}-{{!}}
 +
Map=
 +
{{#if:{{{Location 2|}}}|This NPC is found in multiple locations.  The map below shows where the NPC is ''first'' encountered.}}
 +
{{:{{#var:map}}}}}}
 +
{{#ifexist: {{fixtick|{{BASEPAGENAME}}}}/Appearance|
 +
{{!}}-{{!}}
 +
Appearance=
 +
{{:{{fixtick|{{BASEPAGENAME}}}}/Appearance}}}}
 
}}
 
}}
 
|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;" |
Line 213: Line 218:
 
|Images={{{Images|}}}
 
|Images={{{Images|}}}
 
}}
 
}}
[[Category:NPC]]{{#if:{{{Patch|}}}||[[Category:Unknown Patch]]}}
+
[[Category:NPC]]{{#if:{{{Patch|}}}||[[Category:Unknown Patch]]}}{{#if:{{{Location 1|}}}||[[Category:Missing Location]]}}
 
<!-- Spacer -->
 
<!-- Spacer -->
 
{{#forargs:Location| ik | iv | {{#if:{{#var:iv|}}|{{#ifeq:{{#var:ik}}|{{#explode:{{#var:ik}}||0}}|<nowiki/>{{SetGeoVars2|{{{Location {{#var:ik}}|nosuch}}}}}{{#if:{{#var:world}}|[[Category:World:{{#var:world}}]][[Category:{{#var:world}} NPC]]}}{{#if:{{#var:landmass}}|[[Category:Landmass:{{#var:landmass}}]][[Category:{{#var:landmass}} NPC]]}}{{#if:{{#var:region}}|[[Category:Region:{{#var:region}}]][[Category:{{#var:region}} NPC]]}}{{#if:{{#var:subregion}}|[[Category:Subregion:{{#var:subregion}}]][[Category:{{#var:subregion}} NPC]]}}{{#if:{{#var:zone}}|[[Category:Zone:{{#var:zone}}]][[Category:{{#var:zone}} NPC]]}}{{#if:{{#var:area}}|[[Category:Area:{{#var:area}}]][[Category:{{Fixand|{{#var:area}}}} NPC]][[Category:{{#var:area}} NPC]]}}{{#if:{{#var:landmark}}|[[Category:Landmark:{{#var:landmark}}]][[Category:{{#var:landmark}} NPC]][[Category:{{Fixand|{{#var:landmark}}}} NPC]]}}
 
{{#forargs:Location| ik | iv | {{#if:{{#var:iv|}}|{{#ifeq:{{#var:ik}}|{{#explode:{{#var:ik}}||0}}|<nowiki/>{{SetGeoVars2|{{{Location {{#var:ik}}|nosuch}}}}}{{#if:{{#var:world}}|[[Category:World:{{#var:world}}]][[Category:{{#var:world}} NPC]]}}{{#if:{{#var:landmass}}|[[Category:Landmass:{{#var:landmass}}]][[Category:{{#var:landmass}} NPC]]}}{{#if:{{#var:region}}|[[Category:Region:{{#var:region}}]][[Category:{{#var:region}} NPC]]}}{{#if:{{#var:subregion}}|[[Category:Subregion:{{#var:subregion}}]][[Category:{{#var:subregion}} NPC]]}}{{#if:{{#var:zone}}|[[Category:Zone:{{#var:zone}}]][[Category:{{#var:zone}} NPC]]}}{{#if:{{#var:area}}|[[Category:Area:{{#var:area}}]][[Category:{{Fixand|{{#var:area}}}} NPC]][[Category:{{#var:area}} NPC]]}}{{#if:{{#var:landmark}}|[[Category:Landmark:{{#var:landmark}}]][[Category:{{#var:landmark}} NPC]][[Category:{{Fixand|{{#var:landmark}}}} NPC]]}}
Line 230: Line 235:
 
<!-- Spacer -->
 
<!-- Spacer -->
 
}}}}}}
 
}}}}}}
{{!}}}<br clear="all" />[[Category:Demographics:{{Raceswitch|Race={{{Race}}}}} NPC]][[Category:Demographics:{{Genderswitch|Gender={{{Gender}}}}} NPC]][[Category:Demographics:{{Clanswitch|Clan={{{Clan}}}}} NPC]][[Category:Demographics:{{Raceswitch|Race={{{Race}}}}} {{Clanswitch|Clan={{{Clan}}}}} NPC]][[Category:Demographics:{{Raceswitch|Race={{{Race}}}}} {{Genderswitch|Gender={{{Gender}}}}} NPC]][[Category:Demographics:{{Clanswitch|Clan={{{Clan}}}}} {{Genderswitch|Gender={{{Gender}}}}} NPC]][[Category:Demographics:{{Raceswitch|Race={{{Race}}}}} {{Clanswitch|Clan={{{Clan}}}}} {{Genderswitch|Gender={{{Gender}}}}} NPC]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>__NOEDITSECTION__ __NOTOC__
+
{{!}}}<br clear="all" /></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>__NOEDITSECTION__ __NOTOC__
 
<br><references/>
 
<br><references/>

Revision as of 20:17, 14 May 2020

{{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 =
}}