Difference between revisions of "Template:CommendationPurchase"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = CommendationPurchase |description = This template is used on equipment to correctly format where that equipment is received from buying from a collector using any of the commendations from eveningstar. |category = DropLocation Templates |example1 = <nowiki>{{CommendationPurchase|10000||True}}</nowiki> |example1output = {{CommendationPurchase|10000||True}} |example2 = <nowiki>{{CommendationPurchase|10000|+1 Tome of Magical Resist...")
 
Line 3: Line 3:
|description = This template is used on equipment to correctly format where that equipment is received from buying from a collector using any of the commendations from eveningstar.
|description = This template is used on equipment to correctly format where that equipment is received from buying from a collector using any of the commendations from eveningstar.
|category = DropLocation Templates
|category = DropLocation Templates
|example1 = <nowiki>{{CommendationPurchase|10000||True}}</nowiki>
|example1 = <nowiki>{{CommendationPurchase|Druids|15}}</nowiki>
|example1output = {{CommendationPurchase|10000||True}}
|example1output = {{CommendationPurchase|Druids|15}}
|example2 = <nowiki>{{CommendationPurchase|10000|+1 Tome of Magical Resistance|True}}</nowiki>
|example2 = <nowiki>{{CommendationPurchase|villagers|15}}</nowiki>
|example2output = {{CommendationPurchase|10000|+1 Tome of Magical Resistance|True}}
|example2output = {{CommendationPurchase|villagers|15}}
|parameter1name = Type
|parameter1name = Type
|parameter1description = Which commendation is used:
|parameter1description = Which commendation is used:
Line 19: Line 19:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{switch: {{lc: {{{1|}}}}}
<onlyinclude>{{#switch: {{lc: {{{1|}}}}}
|druids={{#dplvar:set|vendorname|Arcton Greenwort}}{{#dplvar:set|commendationname|Commendation: Druids of the King's Forest}}
|druids={{#dplvar:set|vendorname|Arcton Greenwort}}{{#dplvar:set|commendationname|Commendation: Druids of the King's Forest}}
|clerics={{#dplvar:set|vendorname|Wilkan Drome}}{{#dplvar:set|commendationname|Commendation: Clerics of Amaunator}}
|clerics={{#dplvar:set|vendorname|Wilkan Drome}}{{#dplvar:set|commendationname|Commendation: Clerics of Amaunator}}
Line 28: Line 28:
|table<tr><td>[[{{#dplvar:vendorname}}]]</td><td>[[Eveningstar]]</td><td>1</td><td>{{VendorIngredientList|{{#dplvar:commendationname}}|{{{2}}}}}</td><td></td></tr>
|table<tr><td>[[{{#dplvar:vendorname}}]]</td><td>[[Eveningstar]]</td><td>1</td><td>{{VendorIngredientList|{{#dplvar:commendationname}}|{{{2}}}}}</td><td></td></tr>
|#default=[[{{#dplvar:vendorname}}]]: Purchase for {{formatnum:{{{2}}}}} [[{{#dplvar:commendationname}}]]
|#default=[[{{#dplvar:vendorname}}]]: Purchase for {{formatnum:{{{2}}}}} [[{{#dplvar:commendationname}}]]
}}
}}{{#switch: {{lc: {{{1|}}}}}
{{switch: {{lc: {{{1|}}}}}
|druids={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Commendation: Druids of the King's Forest Items]]}}
|druids={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Commendation: Druids of the King's Forest Items]]}}
|clerics={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Commendation: Clerics of Amaunator Items]]}}
|clerics={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Commendation: Clerics of Amaunator Items]]}}

Revision as of 16:27, 28 March 2022

CommendationPurchase[edit]

This template is used on equipment to correctly format where that equipment is received from buying from a collector using any of the commendations from eveningstar.

Example Usage
{{CommendationPurchase|Druids|15}}Arcton Greenwort: Purchase for 15 Commendation: Druids of the King's Forest
{{CommendationPurchase|villagers|15}}Tellie Scavelman: Purchase for 15 Commendation: Villagers of Eveningstar

Usage[edit]

{{CommendationPurchase|(Type)|(Cost)}}

Parameter Documentation
TypeWhich commendation is used:
Possible Values:
  • Villagers
  • Clerics
  • Druids
  • PDK
  • Wizards
CostHow many commendations are needed

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


[[]]: Purchase for {{{2}}} [[]]