Difference between revisions of "Template:NPC"

From DDO Compendium
(test new layout)
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 =  
|location5 =
|purpose=
|purpose=
|purposesection=
|purposesection=
|flavortext =
|flavortext =
|description =  
|description =
|notes =  
|notes =
|patchhistory =  
|patchhistory =
|update=  
|update=
|wilderness=
|wilderness=
|rareinfo=
|rareinfo=
Line 30: Line 30:
|parameter2name = race
|parameter2name = race
|parameter2description = The race of the NPC.
|parameter2description = The race of the NPC.
|parameter3name = gender  
|parameter3name = gender
|parameter3description = What is the gender of the NPC.
|parameter3description = What is the gender of the NPC.
|parameter4name = location1
|parameter4name = location1
Line 61: Line 61:
|parameter17description = Where this rare NPC appears in the location, any special info about finding it, etc.
|parameter17description = Where this rare NPC appears in the location, any special info about finding it, etc.
}}
}}
</noinclude><includeonly><table class="item-table background-color">
</noinclude>
<tr>
<includeonly>
<td class="item-info-side">
<div class="row">
<table class="background-color full">
<div class="col-sm-6">
<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 76: Line 77:
</td>
</td>
</tr>
</tr>
{{#if:{{{flavortext|}}}|<tr><td>''{{{flavortext}}}''</td></tr>}}
<tr>
<tr>
<td>
<td>
{{#if: {{{flavortext|}}}|''{{{flavortext}}}''<br>}}'''Race:'''&nbsp;{{{race}}}<br>{{#if: {{{gender|}}}|'''Gender:''' {{{gender|Unknown}}}<br>}}'''Location(s):'''  
'''Race:'''&nbsp;{{{race}}}<br>
{{#if: {{{gender|}}}|'''Gender:'''&nbsp;{{{gender|Unknown}}}<br>}}
'''Location(s):'''&nbsp;
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|
*&nbsp;}}{{RenderLink|{{{location1}}}}}}}{{#if: {{{location2|}}}|
*&nbsp;}}{{RenderLink|{{{location1}}}}}}}{{#if: {{{location2|}}}|
Line 86: Line 90:
*&nbsp;{{RenderLink|{{{location5}}}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}|
*&nbsp;{{RenderLink|{{{location5}}}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}|
*&nbsp;}}{{RenderLink|{{{wilderness}}}}}}}
*&nbsp;}}{{RenderLink|{{{wilderness}}}}}}}
{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{location5|}}}{{{wilderness|}}}|<br>}}{{#if: {{{rareinfo|}}} | <br>'''Rare Information:''' {{{rareinfo}}}}}
{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{location5|}}}{{{wilderness|}}}|<br>}}
{{#if: {{{purpose|}}}|'''Occupation:''' &nbsp;{{WrapMultiLine|{{{purpose}}}}}}}
{{#if: {{{rareinfo|}}}|'''Rare Information:'''&nbsp;{{{rareinfo}}}}}
{{#if: {{{description|}}} |<br>'''Description:''' {{{description}}}}}{{#if: {{{notes|}}} |<br>'''Notes:'''&nbsp;{{{notes}}}}}{{#if: {{{patchhistory|}}} |<br>'''Patch History:'''  
{{#if: {{{purpose|}}}|'''Occupation:'''&nbsp;{{WrapMultiLine|{{{purpose}}}}}}}
{{{patchhistory}}}}}{{#if: {{{purposesection|}}}|<br>{{#if: {{{description|}}}{{{notes|}}}{{{patchhistory|}}}||<br>}}{{{purposesection}}}<br>}}</td>
{{#if: {{{description|}}}|'''Description:''' {{{description}}}}}
{{#if: {{{notes|}}} |'''Notes:'''&nbsp;{{{notes}}}}}
{{#if: {{{patchhistory|}}}|'''Patch History:'''&nbsp;{{{patchhistory}}}}}
{{#if: {{{purposesection|}}}|{{#if: {{{description|}}}{{{notes|}}}{{{patchhistory|}}}||<br>}}{{{purposesection}}}}}
</td>
</tr>
</tr>
</table>
</table>
</td>
</div>
<td class="item-image-side" ">
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<table class="item-image-table background-color" >
<hr>
<tr><td class="item-image-notext">[[File:{{{name}}}.png|300px|]]</td></tr>
</div>
</table>
<div class="col-sm-6">
</td>
<table class="table">
<tr>
<td>[[File:{{{name}}}.png|center|300px|]]</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}
{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}
{{#if: {{{wilderness|}}}|[[Category: Wilderness Rare]]}}
{{#if: {{{wilderness|}}}|[[Category: Wilderness Rare]]}}
</includeonly>
</includeonly>

Revision as of 14:11, 18 February 2020

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

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
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.

Template

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