Difference between revisions of "Template:NPC"

From DDO Compendium
m
 
(9 intermediate revisions by 2 users not shown)
Line 20: Line 20:
|wilderness=
|wilderness=
|rareinfo=
|rareinfo=
|locations=
}}
}}
</pre>
</pre>
Line 63: Line 64:
|parameter18name = rareinfo
|parameter18name = rareinfo
|parameter18description = Where this rare NPC appears in the location, any special info about finding it, etc.
|parameter18description = Where this rare NPC appears in the location, any special info about finding it, etc.
|parameter19name = locations
|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]]
}}
}}
</noinclude>
</noinclude>
Line 85: Line 88:
'''Race:'''&nbsp;{{{race}}}<br>[[Category:{{{race}}} NPC's]]
'''Race:'''&nbsp;{{{race}}}<br>[[Category:{{{race}}} NPC's]]
{{#if: {{{gender|}}}|'''Gender:'''&nbsp;{{{gender|Unknown}}}<br>[[Category:{{{gender|}}} NPC's]]}}
{{#if: {{{gender|}}}|'''Gender:'''&nbsp;{{{gender|Unknown}}}<br>[[Category:{{{gender|}}} NPC's]]}}
</td></tr><tr><td>
'''Location(s):'''&nbsp;
'''Location(s):'''&nbsp;
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|
Line 92: Line 96:
*&nbsp;{{RenderLink|{{{location4}}}}}}}{{#if: {{{location5|}}}|
*&nbsp;{{RenderLink|{{{location4}}}}}}}{{#if: {{{location5|}}}|
*&nbsp;{{RenderLink|{{{location5}}}}}}}{{#if: {{{location6|}}}|
*&nbsp;{{RenderLink|{{{location5}}}}}}}{{#if: {{{location6|}}}|
*&nbsp;{{RenderLink|{{{location6}}}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location6|}}}|
*&nbsp;{{RenderLink|{{{location6}}}}}}}{{#if: {{{locations|}}}|
{{{locations}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location6|}}}{{{locations|}}}|
*&nbsp;}}{{RenderLink|{{{wilderness}}}}}}}
*&nbsp;}}{{RenderLink|{{{wilderness}}}}}}}
{{#if: {{{location1|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{location6|}}}{{{wilderness|}}}|<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>
{{#if: {{{rareinfo|}}}|'''Rare Information:'''&nbsp;{{{rareinfo}}}<br>}}{{#if: {{{purpose|}}}|
'''Occupation:'''&nbsp;{{WrapMultiLine|{{{purpose}}}}}}}
 
{{#if: {{{description|}}}|<br>'''Description:''' {{{description}}}}}{{#if: {{{notes|}}} |<br>'''Notes:'''&nbsp;{{{notes}}}}}{{#if: {{{patchhistory|}}}|'''Patch History:'''&nbsp;{{{patchhistory}}}}}{{#if: {{{purposesection|}}}|{{#if: {{{description|}}}{{{notes|}}}{{{patchhistory|}}}|<br>}}<br>{{{purposesection}}}}}</td>
</tr>
</table>
</div>
</div>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
Line 106: Line 105:
</div>
</div>
<div class="col-sm-6">
<div class="col-sm-6">
<table class="table">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>[[File:{{{name}}}.png|center|300px|]]</td>
<td>[[File:{{{name}}}.png|center|300px|]]</td>
</tr>
</tr>
</table></div></div>{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}{{#if: {{{wilderness|}}}|[[Category: Wilderness Rare]]}}{{#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:{{{location5|}}}|[[Category:NPC in {{{location5}}}]]}}</includeonly>
{{#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>

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.