Template:VendorPurchase
From DDO Compendium
Revision as of 18:17, 2 September 2021 by MNDeveloper (talk | contribs)
VendorPurchase[edit]
This template is used on equipment to correctly format where that equipment is received from buying from a vendor using platninum.
|#default=Purchase from Kaelpit Dourstroke, Cost: 15gp}} |#default=Purchase from Jolene Dander} |#default=Purchase from Jolene Dander}Example Usage | ||||
{{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}} | {{#switch: | table= | |||
Kaelpit Dourstroke | Hammer and Chain | 1 | 15gp | |
{{VendorPurchase|Jolene Dander||Eveningstar|10}} | {{#switch: | table= | |||
Jolene Dander | Eveningstar | 10 | ||
{{VendorPurchase|Jolene Dander||Liquid Charm|10|House Kundarak}} | {{#switch: | table= | |||
Jolene Dander | Liquid Charm | 10 | House Kundarak |
Usage[edit]
{{VendorPurchase|(Which Vendor)|(Cost)|(Location)|(Amount)|(Area)}}
Parameter Documentation | |
Which Vendor | This is the name of the NPC that you would purchase from |
Cost | This is the cost, include the currency in it (i.e. gp, pp, cp). Use Template: Price |
Location | This is the location the NPC is found |
Amount | This is the number you get for that price, only use if it is not one |
Area | This is the area that the location is in, optional |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{#switch:
| table=[[{{{1}}}]][[{{{3}}}]]1
|#default=Purchase from [[{{{1}}}]]}