Difference between revisions of "Template:NPC"

From DDO Compendium
 
(92 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<pre>
<pre>
{{Template:NPC
{{Template:NPC
|name =  
|name =
|race =  
|race =
|gender=
|gender=
|location1 =  
|location1 =
|location2 =  
|location2 =
|location3 =  
|location3 =
|location4 =  
|location4 =
|location5 =
|location6=
|purpose=
|purpose=
|data=
|purposesection=
|flavortext =
|flavortext =
|description =  
|description =
|notes =  
|notes =
|patchhistory =  
|patchhistory =
|update=  
|update=
|wilderness=
|wilderness=
|rareinfo=
|rareinfo=
|locations=
}}
}}
</pre>
</pre>
Line 27: Line 30:
|parameter1name = name
|parameter1name = name
|parameter1description = The name of the NPC.
|parameter1description = The name of the NPC.
|parameter1values =
|parameter2name = race
|parameter2name = race
|parameter2description = The race of the NPC.
|parameter2description = The race of the NPC.
|parameter2values =
|parameter3name = gender
|parameter3name = gender  
|parameter3description = What is the gender of the NPC.
|parameter3description = What is the gender of the NPC.
|parameter3values =
|parameter4name = location1
|parameter4name = location1
|parameter4description = A Public Area that this NPC is in.
|parameter4description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc
|parameter4values =
|parameter5name = location2
|parameter5name = location2
|parameter5description = A Public Area that this NPC is in.
|parameter5description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc
|parameter5values =
|parameter6name = location3
|parameter6name = location3
|parameter6description = A Public Area that this NPC is in.
|parameter6description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc
|parameter6values =
|parameter7name = location4
|parameter7name = location4
|parameter7description = A Public Area that this NPC is in.
|parameter7description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc
|parameter7values =
|parameter8name = location5
|parameter8name = purpose
|parameter8description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc
|parameter8description = What is the purpose of this NPC
|parameter9name = location6
|parameter8values =  
|parameter9description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc
* Quest Giver
|parameter10name = purpose
* General Vendor
|parameter10description = What is the purpose of this NPC, use a bulleted list of [[Template:NPCPurpose]]
* Collector
|parameter11name = purposesection
* Vendor
|parameter11description = What extra sections show per purpose, use multiple (non-bulleted) list of [[Template:NPCPurposeSection]]
* Teleportation
|parameter12name = flavortext
* Saga Giver
|parameter12description = Some specific text the NPC says.
* Patron
|parameter13name = description
* Any other value, more generic
|parameter13description = Specific description of this NPC
|parameter9name = data
|parameter14name = notes
|parameter9description = What data about the purpose
|parameter14description = Any notes about this NPC.
|parameter9values =  
|parameter15name = patchhistory
* For Vendor it is what they sell
|parameter15description = Any patches that have happened
* For Patron it is who they are a patron for
|parameter16name = update
* For Teleportation to where
|parameter16description = Which update this NPC is part of.
* For Collectables, bulleted item and cost
|parameter17name = wilderness
|parameter10name = flavortext
|parameter17description = What wilderness is this enemy in as a rare Use [[Template:PageLink]] if the page name is different than the name of the npc
|parameter10description = Some specific text the NPC says.
|parameter18name = rareinfo
|parameter10values =
|parameter18description = Where this rare NPC appears in the location, any special info about finding it, etc.
|parameter11name = description
|parameter19name = locations
|parameter11description = Specific description of this NPC
|parameter19description = All the locations of this NPC.  This is a NEW field that replaces the individual numbered ones.  You can still use those, but this allows more.  Use [[Template:NPCLocationList]]
|parameter11values =
|parameter12name = notes
|parameter12description = Any notes about this NPC.
|parameter12values =
|parameter13name = patchhistory
|parameter13description = Any patches that have happened
|parameter13values =
|parameter14name = update
|parameter14description = Which update this NPC is part of.
|parameter14values =
|parameter15name = wilderness
|parameter15description = What wilderness is this enemy in as a rare
|parameter16name = rareinfo
|parameter16description = Where this rare NPC appears in the location, any special info about finding it, etc.
}}
}}
</noinclude>
</noinclude>
<table class="item-table background-color">
<includeonly>
<tr>
<div class="row">
<td class="item-info-side">
<div class="col-sm-6">
<table class="background-color full">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>
<td>
<table class="background-color full">
<table class="table">
<tr>
<tr>
<td class="title">
<td class="col-sm-1 center">
'''{{{name}}}'''
<span class="big">{{{name}}}</span>
</td>
</td>
</tr>
</tr>
Line 100: Line 83:
</td>
</td>
</tr>
</tr>
{{#if:{{{flavortext|}}}|<tr><td class="center">''{{{flavortext}}}''</td></tr>}}
<tr>
<tr>
<td>
<td>
{{#if: {{{flavortext|}}}|''{{{flavortext}}}''<br>}}'''Race:'''&nbsp;{{{race}}}<br>{{#if: {{{gender|}}}|'''Gender:''' {{{gender|Unknown}}}<br>}}'''Location(s):''' {{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{wilderness|}}}|
'''Race:'''&nbsp;{{{race}}}<br>[[Category:{{{race}}} NPC's]]
*&nbsp;}}[[{{{location1}}}]]}}{{#if: {{{location2|}}}|
{{#if: {{{gender|}}}|'''Gender:'''&nbsp;{{{gender|Unknown}}}<br>[[Category:{{{gender|}}} NPC's]]}}
*&nbsp;[[{{{location2}}}]]}}{{#if: {{{location3|}}}|
</td></tr><tr><td>
*&nbsp;[[{{{location3}}}]]}}{{#if: {{{location4|}}}|
'''Location(s):'''&nbsp;
*&nbsp;[[{{{location4}}}]]}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}|
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|
*&nbsp;}}[[{{{wilderness}}}]]}}{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}|<br>}}{{#if: {{{rareinfo|}}} | '''Rare Information:''' {{{rareinfo}}}<br>}}
*&nbsp;}}{{RenderLink|{{{location1}}}}}}}{{#if: {{{location2|}}}|
'''Occupation:''' {{#switch: {{lc:{{{purpose}}}}}
*&nbsp;{{RenderLink|{{{location2}}}}}}}{{#if: {{{location3|}}}|
|quest giver = Quest Giver<br>
*&nbsp;{{RenderLink|{{{location3}}}}}}}{{#if: {{{location4|}}}|
| saga giver = Saga Giver<br>
*&nbsp;{{RenderLink|{{{location4}}}}}}}{{#if: {{{location5|}}}|
| general vendor = [[General Vendor]]<br>
*&nbsp;{{RenderLink|{{{location5}}}}}}}{{#if: {{{location6|}}}|
| patron vendor = Patron Vendor{{#if: {{{data|}}} |
*&nbsp;{{RenderLink|{{{location6}}}}}}}{{#if: {{{locations|}}}|
{{{data}}}}}<br>
{{{locations}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location6|}}}{{{locations|}}}|
| vendor = Vendor{{#if: {{{data|}}} |, Sells
*&nbsp;}}{{RenderLink|{{{wilderness}}}}}}}
{{{data}}}}}<br>
</td></tr>{{#if: {{{rareinfo|}}}|<tr><td>'''Rare Information:'''&nbsp;{{{rareinfo}}}</td></tr>}}{{#if: {{{purpose|}}}|<tr><td>'''Occupation:'''&nbsp;{{WrapMultiLine|{{{purpose}}}}}</td></tr>}}{{#if: {{{purposesection|}}}|<tr><td>{{{purposesection}}}</td></tr>}}{{#if: {{{description|}}}|<tr><td>'''Description:''' {{{description}}}</td></tr>}}</table>
| teleportation = Teleportation {{#if: {{{data|}}} | to {{{data}}}}}<br>
</div>
| npc contact = Walkup Quest Rewards<br>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
| patron = Patron {{#if: {{{data|}}} | for [[{{{data}}}]]}}<br>
<hr>
| collector = Collectable/Augment Trader {{#if: {{{data|}}} |
</div>
{{{data}}}}}
<div class="col-sm-6">
<br>
<table class="table table-bordered table-striped table-condensed">
|#default = {{{purpose}}}<br>}}
<tr>
{{#if: {{{description|}}} |'''Description:''' {{{description}}}<br>}}{{#if: {{{notes|}}} |'''Notes:'''&nbsp;
<td>[[File:{{{name}}}.png|center|300px|]]</td>
{{{notes}}}<br>}}{{#if: {{{patchhistory|}}} |'''Patch History:'''
{{{patchhistory}}}<br>}}<br>
{{#switch: {{lc:{{{purpose}}}}}
|quest giver|npc contact='''Quests/Story Arcs'''<br>
{{#DPL:
|linksto={{ARTICLEPAGENAME}}
|uses=Template:Quest{{!}}Template:StoryArc
|noresultsheader=None
}}
|saga giver='''Sagas'''<br>
{{#DPL:
|linksto={{ARTICLEPAGENAME}}
|uses=Template:Saga
|noresultsheader=None
}}
}}<br></td>
</tr>
</table>
</td>
<td class="item-image-side" ">
<table class="item-image-table background-color" >
<tr><td class="item-image-notext">[[File:{{{name}}}.png|300px|]]</td></tr>
</table>
</td>
</tr>
</tr>
</table>
{{#if: {{{notes|}}} |<tr><td>'''Notes:'''&nbsp;{{{notes}}}</td></tr>}}{{#if: {{{patchhistory|}}}|<tr><td>'''Patch History:'''&nbsp;{{{patchhistory}}}</td></tr>}}</table></div></div>{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}{{#if: {{{wilderness|}}}|[[Category: Wilderness Rare]]}}{{#if:{{{location1|}}}|[[Category:{{{location1}}} NPC's]]}}{{#if:{{{location2|}}}|[[Category:{{{location2}}} NPC's]]}}{{#if:{{{location3|}}}|[[Category:{{{location3}}} NPC's]]}}{{#if:{{{location4|}}}|[[Category:{{{location4}}} NPC's]]}}{{#if:{{{location5|}}}|[[Category:{{{location5}}} NPC's]]}}</includeonly>
{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}
{{#switch: {{lc:{{{purpose}}}}}
| quest giver = {{#if: {{{location1|}}} | [[Category:{{{purpose}}} in {{{location1}}}]]}}{{#if: {{{location2|}}} | [[Category:{{{purpose}}} in {{{location2}}}]]}}{{#if: {{{location3|}}} | [[Category:{{{purpose}}} in {{{location3}}}]]}}{{#if: {{{location4|}}} | [[Category:{{{purpose}}} in {{{location4}}}]]}}
| saga giver = {{#if: {{{location1|}}} | [[Category:{{{purpose}}} in {{{location1}}}]]}}{{#if: {{{location2|}}} | [[Category:{{{purpose}}} in {{{location2}}}]]}}{{#if: {{{location3|}}} | [[Category:{{{purpose}}} in {{{location3}}}]]}}{{#if: {{{location4|}}} | [[Category:{{{purpose}}} in {{{location4}}}]]}}
| npc contact = {{#if: {{{location1|}}} | [[Category:{{{purpose}}} in {{{location1}}}]]}}{{#if: {{{location2|}}} | [[Category:{{{purpose}}} in {{{location2}}}]]}}{{#if: {{{location3|}}} | [[Category:{{{purpose}}} in {{{location3}}}]]}}{{#if: {{{location4|}}} | [[Category:{{{purpose}}} in {{{location4}}}]]}}
| general vendor = {{#if: {{{location1|}}} | [[Category:{{{purpose}}} in {{{location1}}}]]}}{{#if: {{{location2|}}} | [[Category:{{{purpose}}} in {{{location2}}}]]}}{{#if: {{{location3|}}} | [[Category:{{{purpose}}} in {{{location3}}}]]}}{{#if: {{{location4|}}} | [[Category:{{{purpose}}} in {{{location4}}}]]}}
| vendor = {{#if: {{{location1|}}} | [[Category:{{{purpose}}} in {{{location1}}}]]}}{{#if: {{{location2|}}} | [[Category:{{{purpose}}} in {{{location2}}}]]}}{{#if: {{{location3|}}} | [[Category:{{{purpose}}} in {{{location3}}}]]}}{{#if: {{{location4|}}} | [[Category:{{{purpose}}} in {{{location4}}}]]}}
|#default = {{#if: {{{location1|}}} | [[Category:NPC in {{{location1}}}]]}}{{#if: {{{location2|}}} | [[Category:NPC in {{{location2}}}]]}}{{#if: {{{location3|}}} | [[Category:NPC in {{{location3}}}]]}}{{#if: {{{location4|}}} | [[Category:NPC in {{{location4}}}]]}}{{#if: {{{wilderness|}}}|[[Category: {{{wilderness}}} Rare]]}}}}

Latest revision as of 20:35, 20 May 2022

{{Template:NPC
|name =
|race =
|gender=
|location1 =
|location2 =
|location3 =
|location4 =
|location5 =
|location6=
|purpose=
|purposesection=
|flavortext =
|description =
|notes =
|patchhistory =
|update=
|wilderness=
|rareinfo=
|locations=
}}

NPC[edit]

This template is used to render information about an NPC: Dax Boon.

Usage[edit]

Parameter Documentation
nameThe name of the NPC.
raceThe race of the NPC.
genderWhat is the gender of the NPC.
location1A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc
location2A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc
location3A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc
location4A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc
location5A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc
location6A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc
purposeWhat is the purpose of this NPC, use a bulleted list of Template:NPCPurpose
purposesectionWhat extra sections show per purpose, use multiple (non-bulleted) list of Template:NPCPurposeSection
flavortextSome specific text the NPC says.
descriptionSpecific description of this NPC
notesAny notes about this NPC.
patchhistoryAny patches that have happened
updateWhich update this NPC is part of.
wildernessWhat wilderness is this enemy in as a rare Use Template:PageLink if the page name is different than the name of the npc
rareinfoWhere this rare NPC appears in the location, any special info about finding it, etc.
locationsAll the locations of this NPC. This is a NEW field that replaces the individual numbered ones. You can still use those, but this allows more. Use Template:NPCLocationList

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.