Difference between revisions of "Template:NPC"
From DDO Compendium
MNDeveloper (talk | contribs) |
(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>< | </noinclude> | ||
< | <includeonly> | ||
<div class="row"> | |||
<table class=" | <div class="col-sm-6"> | ||
<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 76: | Line 77: | ||
</td> | </td> | ||
</tr> | </tr> | ||
{{#if:{{{flavortext|}}}|<tr><td>''{{{flavortext}}}''</td></tr>}} | |||
<tr> | <tr> | ||
<td> | <td> | ||
'''Race:''' {{{race}}}<br> | |||
{{#if: {{{gender|}}}|'''Gender:''' {{{gender|Unknown}}}<br>}} | |||
'''Location(s):''' | |||
{{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}| | {{#if: {{{location1|}}}|{{#if: {{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}| | ||
* }}{{RenderLink|{{{location1}}}}}}}{{#if: {{{location2|}}}| | * }}{{RenderLink|{{{location1}}}}}}}{{#if: {{{location2|}}}| | ||
Line 86: | Line 90: | ||
* {{RenderLink|{{{location5}}}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}| | * {{RenderLink|{{{location5}}}}}}}{{#if: {{{wilderness|}}}|{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}| | ||
* }}{{RenderLink|{{{wilderness}}}}}}} | * }}{{RenderLink|{{{wilderness}}}}}}} | ||
{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{location5|}}}{{{wilderness|}}}|<br>}}{{#if: {{{rareinfo|}}} | | {{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{location5|}}}{{{wilderness|}}}|<br>}} | ||
{{#if: {{{purpose|}}}|'''Occupation:''' {{WrapMultiLine|{{{purpose}}}}}}} | {{#if: {{{rareinfo|}}}|'''Rare Information:''' {{{rareinfo}}}}} | ||
{{#if: {{{description|}}} | | {{#if: {{{purpose|}}}|'''Occupation:''' {{WrapMultiLine|{{{purpose}}}}}}} | ||
{{{patchhistory}}}}}{{#if: {{{purposesection|}}}| | {{#if: {{{description|}}}|'''Description:''' {{{description}}}}} | ||
{{#if: {{{notes|}}} |'''Notes:''' {{{notes}}}}} | |||
{{#if: {{{patchhistory|}}}|'''Patch History:''' {{{patchhistory}}}}} | |||
{{#if: {{{purposesection|}}}|{{#if: {{{description|}}}{{{notes|}}}{{{patchhistory|}}}||<br>}}{{{purposesection}}}}} | |||
</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
</ | </div> | ||
< | <div class="visible-xs-block hidden-sm hidden-md hidden-lg"> | ||
<table class=" | <hr> | ||
<tr><td | </div> | ||
<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 | |
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 |
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. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.