Difference between revisions of "Template:NPC"

From DDO Compendium
Line 10: Line 10:
|location4 =  
|location4 =  
|purpose=
|purpose=
|data=
|purposesection=
|flavortext =
|flavortext =
|description =  
|description =  
Line 47: Line 47:
|parameter7values =  
|parameter7values =  
|parameter8name = purpose
|parameter8name = purpose
|parameter8description = What is the purpose of this NPC
|parameter8description = What is the purpose of this NPC, use a bulleted list of [[Template:NPCPurpose]]
|parameter8values =
|parameter9name = purposesection
* Quest Giver
|parameter9description = What extra sections show per purpose, use multiple (non-bulleted) list of [[Template:NPCPurposeSecttion]]
* General Vendor
* Collector
* Vendor
* Teleportation
* Saga Giver
* Patron
* Pawn Broker
* Any other value, more generic
|parameter9name = data
|parameter9description = What data about the purpose
|parameter9values =
* For Vendor it is what they sell
* For Patron it is who they are a patron for. Use [[Template:PageLink]] if the page name is different than the name of the npc
* For Teleportation to where. Use [[Template:PageLink]] if the page name is different than the name of the npc
* For Collectables, bulleted item and cost
|parameter10name = flavortext
|parameter10name = flavortext
|parameter10description = Some specific text the NPC says.
|parameter10description = Some specific text the NPC says.
Line 110: Line 95:
* }}{{RenderLink|{{{wilderness}}}}}}}
* }}{{RenderLink|{{{wilderness}}}}}}}
{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|<br>}}{{#if: {{{rareinfo|}}} | '''Rare Information:''' {{{rareinfo}}}<br>}}
{{#if: {{{location|}}}{{{location2|}}}{{{location3|}}}{{{location4|}}}{{{location5|}}}{{{wilderness|}}}|<br>}}{{#if: {{{rareinfo|}}} | '''Rare Information:''' {{{rareinfo}}}<br>}}
'''Occupation:''' {{#switch: {{lc:{{{purpose}}}}}
'''Occupation:''' &nbsp;{{WrapMultiLine|{{{purpose}}}}}
|quest giver = Quest Giver<br>
| saga giver = Saga Giver<br>
| general vendor = [[General Vendor]]<br>
| patron vendor = Patron Vendor{{#if: {{{data|}}} |
{{{data}}}}}<br>
| vendor = Vendor{{#if: {{{data|}}} |, Sells
{{{data}}}}}<br>
| teleportation = Teleportation {{#if: {{{data|}}} | to {{{data}}}}}<br>
| npc contact = Walkup Quest Rewards<br>
| patron = Patron {{#if: {{{data|}}} | for {{RenderLink|{{{data}}}}}}}<br>
| pawn broker = Pawn Broker {{#if: {{{data|}}} | - {{{data}}}}}<br>
| collector = Collectable/Augment Trader {{#if: {{{data|}}} |
{{{data}}}}}
<br>
|#default = {{{purpose}}}<br>}}
{{#if: {{{description|}}} |'''Description:''' {{{description}}}<br>}}{{#if: {{{notes|}}} |'''Notes:'''&nbsp;
{{#if: {{{description|}}} |'''Description:''' {{{description}}}<br>}}{{#if: {{{notes|}}} |'''Notes:'''&nbsp;
{{{notes}}}<br>}}{{#if: {{{patchhistory|}}} |'''Patch History:'''  
{{{notes}}}<br>}}{{#if: {{{patchhistory|}}} |'''Patch History:'''  
{{{patchhistory}}}<br>}}<br>
{{{patchhistory}}}<br>}}<br>{{{purposesection}}<br></td>
{{#switch: {{lc:{{{purpose}}}}}
|quest giver|npc contact='''Quests/Story Arcs'''<br>
{{#DPL:
|linksto={{ARTICLEPAGENAME}}
|uses=Template:Quest{{!}}Template:StoryArc
|noresultsheader=None
}}
|saga giver='''Sagas'''<br>
{{#DPL:
|linksto={{ARTICLEPAGENAME}}
|uses=Template:Saga
|noresultsheader=None
}}
}}<br></td>
</tr>
</tr>
</table>
</table>
Line 154: Line 110:
</table>
</table>
{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}
{{#ifeq: {{FULLPAGENAME}} |Template:NPC||{{#if: {{{update|}}}|[[Category:Update {{{update}}} NPC]]}}}}
{{#switch: {{lc:{{{purpose}}}}}
{{#if: {{{wilderness|}}}|[[Category: Wilderness Rare]]}}
| quest giver = [[Category: Quest Givers]]
| saga giver = [[Category: Saga Givers]]
| npc contact = [[Category: NPC Contacts]]
| general vendor = [[Category: General Vendors]]
| vendor = [[Category: Vendors]]
|#default = [[Category: NPCs]]
}}{{#if: {{{wilderness|}}}|[[Category: Wilderness Rare]]}}
</includeonly>
</includeonly>

Revision as of 15:52, 5 November 2019

{{Template:NPC
|name = 
|race = 
|gender=
|location1 = 
|location2 = 
|location3 = 
|location4 = 
|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
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:NPCPurposeSecttion
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.