Difference between revisions of "Template:NPC"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 99: | Line 99: | ||
{{{locations}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location6|}}}{{{locations|}}}| | {{{locations}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location6|}}}{{{locations|}}}| | ||
* }}{{RenderLink|{{{wilderness}}}}}}} | * }}{{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>{{#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> | ||
<div class="visible-xs-block hidden-sm hidden-md hidden-lg"> | <div class="visible-xs-block hidden-sm hidden-md hidden-lg"> | ||
Line 109: | Line 109: | ||
<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:{{{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> | {{#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> |
Revision as of 17:35, 21 November 2021
{{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.