Difference between revisions of "Template:VendorPurchase"

From DDO Compendium
Line 23: Line 23:
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:VendorPurchase||[[Category:Items Purchasable In-Game]][[Category:Items Sold in {{{3|}}}]]}}{{#switch: {{lc:{{#dplvar:vendorformat}}}}
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:VendorPurchase||[[Category:Items Purchasable In-Game]][[Category:Items Sold in {{{3|}}}]]}}{{#switch: {{lc:{{#dplvar:vendorformat}}}}
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{RenderLink|{{{3}}}}}</td><td>{{#if: {{{4|}}}|{{{4}}}}}</td><td>{{#if:{{{2|}}}|{{{2}}}}}</td><td>{{#if: {{{5|}}}|{{RenderLink|{{{5}}}}}}}</td></tr>
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{RenderLink|{{{3}}}}}</td><td>{{#if: {{{4|}}}|{{{4}}}}}</td><td>{{#if:{{{2|}}}|{{{2}}}}}</td><td>{{#if: {{{5|}}}|{{RenderLink|{{{5}}}}}}}</td></tr>
|#default={{#bootstrap_tooltip:Purchase from {{RenderLink|{{{1}}}}}| text= {{#if: {{{4|}}}|Stack Size: {{{4}}},&nbsp;}}Found in: {{{3}}}{{#if: {{{5|}}}|Located in: {{{5}}}}}{{#if:{{{2|}}}|Cost: {{{2}}}}}}} | heading="Details"|placement=bottom}}</onlyinclude>
|#default=Purchase from {{RenderLink|{{{1}}}}}, Cost: {{{2}}}</onlyinclude>

Revision as of 19:38, 21 April 2021

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, Cost: |#default=Purchase from Jolene Dander, Cost:
Example Usage
{{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}}{{#switch: | table=
Kaelpit DourstrokeHammer and Chain15gp
{{VendorPurchase|Jolene Dander||Eveningstar|10}}{{#switch: | table=
Jolene DanderEveningstar10
{{VendorPurchase|Jolene Dander||Liquid Charm|10|House Kundarak}}{{#switch: | table=
Jolene DanderLiquid Charm10House Kundarak

Usage[edit]

{{VendorPurchase|(Which Vendor)|(Cost)|(Location)|(Amount)|(Area)}}

Parameter Documentation
Which VendorThis is the name of the NPC that you would purchase from
CostThis is the cost, include the currency in it (i.e. gp, pp, cp). Use Template: Price
LocationThis is the location the NPC is found
AmountThis is the number you get for that price, only use if it is not one
AreaThis 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}}}]]

|#default=Purchase from [[{{{1}}}]], Cost: {{{2}}}