Difference between revisions of "Template:NPCPurpose"
From DDO Compendium
m (removed categorization nested {{#switch:}} in favor of inline categories (still troubleshooting)) |
MNDeveloper (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
* NPC | * NPC | ||
* Trainer | * Trainer | ||
* Epic Destiny Unlock | |||
* Any other value, more generic | * Any other value, more generic | ||
|parameter2name = data | |parameter2name = data | ||
Line 28: | Line 29: | ||
* For Trainer, the class they are training | * For Trainer, the class they are training | ||
* For NPC, what this NPC is for in a public area | * For NPC, what this NPC is for in a public area | ||
* For Epic Destiny Unlock, what epic destiny they unlock | |||
|parameter3name=Vendor Category1 | |||
|parameter3description = A custom category for vendors (i.e. Weapon Vendor) | |||
|parameter4name=Vendor Category2 | |||
|parameter4description = A custom category for vendors (i.e. Scroll Vendor) | |||
}} | }} | ||
</noinclude><includeonly>{{#switch: {{lc:{{#dplvar:purposestyle}}}} | </noinclude><includeonly>{{#switch: {{lc:{{#dplvar:purposestyle}}}} | ||
|short={{#switch: {{lc:{{{1}}}}} | |short={{#switch: {{lc:{{{1}}}}} | ||
| npc contact = Walkup Quest Rewards | | npc contact = Walkup Quest Rewards | ||
| collector = Collectable/Augment Trader | | collector = Collectable/Augment Trader | ||
| trainer = {{{2|}}} Trainer | | trainer = {{{2|}}} Trainer | ||
| teleportation = Teleportation {{#if: {{{2|}}} | to {{{2}}}}} | | teleportation = Teleportation {{#if: {{{2|}}} | to {{{2}}}}} | ||
| npc = NPC{{#if: {{{2|}}}| - {{{2}}}}}[[ | | npc = NPC{{#if: {{{2|}}}| - {{{2}}}}} | ||
| epic destiny unlock=Unlocks [[{{{2}}}]] Epic Destiny | |||
|#default={{{1}}} | |#default={{{1}}} | ||
}} | }} | ||
|#default={{#switch: {{lc:{{{1}}}}} | |#default={{#switch: {{lc:{{{1}}}}} | ||
| spirit binder = Spirit Binder[[Category: Spirit Binders]] | |||
| quest giver = Quest Giver[[Category: Quest Givers]] | | quest giver = Quest Giver[[Category: Quest Givers]] | ||
| saga giver = Saga Giver[[Category: Saga Givers]] | | saga giver = Saga Giver[[Category: Saga Givers]] | ||
| general vendor = [[General Vendor]][[Category: General Vendors]] | | general vendor = [[General Vendor]][[Category: General Vendors]] | ||
| reaper vendor = Reaper Vendor[[Category: Vendors]] | |||
| patron vendor = Patron Vendor {{#if: {{{2|}}} |For | | patron vendor = Patron Vendor {{#if: {{{2|}}} |For | ||
{{{2}}}}}[[Category:Patron Vendor]] | {{{2}}}}}[[Category:Patron Vendor]] | ||
| vendor = Vendor{{#if: {{{2|}}} |, Sells | | vendor = Vendor{{#if: {{{2|}}} |, Sells {{{2}}}}}[[Category: Vendors]] | ||
{{{2}}}}}[[Category: Vendors]] | |||
| trainer = {{{2|}}} Trainer[[Category:Trainers]] | | trainer = {{{2|}}} Trainer[[Category:Trainers]] | ||
| npc = NPC{{#if: {{{2|}}}| - {{{2}}}}}[[Category: NPCs]] | | npc = NPC{{#if: {{{2|}}}| - {{{2}}}}}[[Category:NPCs]] | ||
| teleportation = Teleportation {{#if: {{{2|}}} | to {{{2}}}}} | | teleportation = Teleportation {{#if: {{{2|}}} | to {{{2}}}}}[[Category:NPCs]] | ||
| npc contact = Walkup Quest Rewards {{#if: {{{2|}}} | for {{RenderLink|{{{2}}}}}}}[[Category: NPC Contacts]] | | npc contact = Walkup Quest Rewards {{#if: {{{2|}}} | for {{RenderLink|{{{2}}}}}}}[[Category:NPC Contacts]] | ||
| patron = Patron {{#if: {{{2|}}} | for {{RenderLink|{{{2}}}}}}}[[Category:Patrons]] | | patron = Patron {{#if: {{{2|}}} | for {{RenderLink|{{{2}}}}}}}[[Category:Patrons]] | ||
| pawn broker = Pawn Broker {{#if: {{{2|}}} | - {{{2}}}}}[[Category:Pawn Brokers]] | | pawn broker = Pawn Broker {{#if: {{{2|}}} | - {{{2}}}}}[[Category:Pawn Brokers]] | ||
| collector = Collectable/Augment Trader {{#if: {{{2|}}} | | | collector = Collectable/Augment Trader {{#if: {{{2|}}} | | ||
{{{2}}}}}[[Category:Collectors]][[Category:Traders]] | {{{2}}}}}[[Category:Collectors]][[Category:Traders]] | ||
|#default = {{{1}}}}}}}</includeonly> | | epic destiny unlock=Unlocks [[{{{2}}}]] Epic Destiny[[Category:Epic Destiny Unlocker]] | ||
|#default = {{{1}}}[[Category:NPCs]]}}}}{{EnchCat|NPCPurpose|{{{3|}}}|{{{4|}}}}}</includeonly> |
Latest revision as of 19:04, 5 December 2023
NPCPurpose[edit]
This template is used to internally render the purpose of an NPC
Usage[edit]
{{NPCPurpose|(purpose)|(data)|(Vendor Category1)|(Vendor Category2)}}
Parameter Documentation | |
purpose | What is the purpose of this NPC Possible Values:
|
data | What data about the purpose. Possible Values:
|
Vendor Category1 | A custom category for vendors (i.e. Weapon Vendor) |
Vendor Category2 | A custom category for vendors (i.e. Scroll Vendor) |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.