Difference between revisions of "Template:NPC"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(166 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= | ||
| | |purposesection= | ||
|flavortext = | |flavortext = | ||
|description = | |description = | ||
|notes = | |notes = | ||
|patchhistory = | |patchhistory = | ||
|update= | |update= | ||
|wilderness= | |||
|rareinfo= | |||
|locations= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 21: | Line 26: | ||
|name = NPC | |name = NPC | ||
|description = This template is used to render information about an NPC: [[Dax Boon]]. | |description = This template is used to render information about an NPC: [[Dax Boon]]. | ||
|category=NPC and Monster Templates | |||
|usesnamedparameters = true | |usesnamedparameters = true | ||
|parameter1name = name | |parameter1name = name | ||
|parameter1description = The name of the NPC. | |parameter1description = The name of the NPC. | ||
|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 | ||
|parameter4description = A Public Area that this | |parameter4description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc | ||
|parameter5name = location2 | |parameter5name = location2 | ||
|parameter5description = A Public Area that this | |parameter5description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc | ||
|parameter6name = location3 | |parameter6name = location3 | ||
|parameter6description = A Public Area that this | |parameter6description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc | ||
|parameter7name = location4 | |parameter7name = location4 | ||
|parameter7description = A Public Area that this | |parameter7description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc | ||
|parameter8name = location5 | |||
|parameter8name = | |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 = | |parameter9name = location6 | ||
|parameter9description = A Public Area that this NPC is in. Use [[Template:PageLink]] if the page name is different than the name of the npc | |||
|parameter10name = purpose | |||
|parameter10description = What is the purpose of this NPC, use a bulleted list of [[Template:NPCPurpose]] | |||
|parameter11name = purposesection | |||
|parameter11description = What extra sections show per purpose, use multiple (non-bulleted) list of [[Template:NPCPurposeSection]] | |||
|parameter9name = | |parameter12name = flavortext | ||
|parameter9description = | |parameter12description = Some specific text the NPC says. | ||
| | |parameter13name = description | ||
| | |parameter13description = Specific description of this NPC | ||
| | |parameter14name = notes | ||
| | |parameter14description = Any notes about this NPC. | ||
| | |parameter15name = patchhistory | ||
| | |parameter15description = Any patches that have happened | ||
|parameter16name = update | |||
|parameter16description = Which update this NPC is part of. | |||
| | |parameter17name = wilderness | ||
| | |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 | ||
|parameter18name = rareinfo | |||
| | |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> | ||
< | <includeonly> | ||
< | <div class="row"> | ||
<div class="col-sm-6"> | |||
<table class=" | <table class="table table-bordered table-striped table-condensed"> | ||
<tr> | <tr> | ||
<td> | <td> | ||
<table class=" | <table class="table"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-1 center"> | ||
<span class="big">{{{name}}}</span> | |||
</td> | </td> | ||
</tr> | </tr> | ||
Line 85: | Line 83: | ||
</td> | </td> | ||
</tr> | </tr> | ||
{{#if:{{{flavortext|}}}|<tr><td class="center">''{{{flavortext}}}''</td></tr>}} | |||
<tr> | <tr> | ||
<td> | <td> | ||
''{{{ | '''Race:''' {{{race}}}<br>[[Category:{{{race}}} NPC's]] | ||
{{#if: {{{gender|}}}|'''Gender:''' {{{gender|Unknown}}}<br>[[Category:{{{gender|}}} NPC's]]}} | |||
'''Gender:''' | </td></tr><tr><td> | ||
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}| | '''Location(s):''' | ||
* | {{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}| | ||
{{#if: {{{ | * }}{{RenderLink|{{{location1}}}}}}}{{#if: {{{location2|}}}| | ||
{{{ | * {{RenderLink|{{{location2}}}}}}}{{#if: {{{location3|}}}| | ||
</td> | * {{RenderLink|{{{location3}}}}}}}{{#if: {{{location4|}}}| | ||
* {{RenderLink|{{{location4}}}}}}}{{#if: {{{location5|}}}| | |||
* {{RenderLink|{{{location5}}}}}}}{{#if: {{{location6|}}}| | |||
* {{RenderLink|{{{location6}}}}}}}{{#if: {{{locations|}}}| | |||
{{{locations}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location6|}}}{{{locations|}}}| | |||
* }}{{RenderLink|{{{wilderness}}}}}}} | |||
</td></tr>{{#if: {{{rareinfo|}}}|<tr><td>'''Rare Information:''' {{{rareinfo}}}</td></tr>}}{{#if: {{{purpose|}}}|<tr><td>'''Occupation:''' {{WrapMultiLine|{{{purpose}}}}}</td></tr>}}{{#if: {{{purposesection|}}}|<tr><td>{{{purposesection}}}</td></tr>}}{{#if: {{{description|}}}|<tr><td>'''Description:''' {{{description}}}</td></tr>}}</table> | |||
</div> | |||
<div class="visible-xs-block hidden-sm hidden-md hidden-lg"> | |||
<hr> | |||
</div> | |||
<div class="col-sm-6"> | |||
<table class="table table-bordered table-striped table-condensed"> | |||
<tr> | |||
<td>[[File:{{{name}}}.png|center|300px|]]</td> | |||
</tr> | </tr> | ||
< | {{#if: {{{notes|}}} |<tr><td>'''Notes:''' {{{notes}}}</td></tr>}}{{#if: {{{patchhistory|}}}|<tr><td>'''Patch History:''' {{{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> | ||
< | |||
<td | |||
< | |||
<tr><td | |||
</table> | |||
</ | |||
</ | |||
[[Category:Update {{{update| |
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 | |
name | The name of the NPC. |
race | The race of the NPC. |
gender | What is the gender of the NPC. |
location1 | A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc |
location2 | A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc |
location3 | A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc |
location4 | A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc |
location5 | A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc |
location6 | A Public Area that this NPC is in. Use Template:PageLink if the page name is different than the name of the npc |
purpose | What is the purpose of this NPC, use a bulleted list of Template:NPCPurpose |
purposesection | What extra sections show per purpose, use multiple (non-bulleted) list of Template:NPCPurposeSection |
flavortext | Some specific text the NPC says. |
description | Specific description of this NPC |
notes | Any notes about this NPC. |
patchhistory | Any patches that have happened |
update | Which update this NPC is part of. |
wilderness | What wilderness is this enemy in as a rare Use Template:PageLink if the page name is different than the name of the npc |
rareinfo | Where this rare NPC appears in the location, any special info about finding it, etc. |
locations | 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 |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.