Difference between revisions of "Template:VendorPurchase"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = VendorPurchase |description = This template is used on equipment to correctly format where that equipment is received from buying fr...")
 
 
(51 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|name = VendorPurchase
|name = VendorPurchase
|description = This template is used on equipment to correctly format where that equipment is received from buying from a vendor using platninum.
|description = This template is used on equipment to correctly format where that equipment is received from buying from a vendor using platninum.
|category = Item Templates
|category = DropLocation Templates
|example1 = <nowiki>{{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}}</nowiki>
|example1 = <nowiki>{{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}}</nowiki>
|example1output = {{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}}
|example1output = {{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}}
|example2 = <nowiki>{{VendorPurchase|Jolene Dander||Eveningstar|10}}</nowiki>
|example2output = {{VendorPurchase|Jolene Dander||Eveningstar|10}}
|example3 = <nowiki>{{VendorPurchase|Jolene Dander||Liquid Charm|10|House Kundarak}}</nowiki>
|example3output = {{VendorPurchase|Jolene Dander||Liquid Charm|10|House Kundarak}}
|parameter1name = Which Vendor
|parameter1name = Which Vendor
|parameter1description = This is the name of the NPC that you would purchase from
|parameter1description = This is the name of the NPC that you would purchase from
|parameter2name = Cost
|parameter2name = Cost
|parameter2description = This is the cost, include the currency in it (i.e. gp, pp, cp)
|parameter2description = This is the cost, include the currency in it (i.e. gp, pp, cp). Use [[Template: Price]]
|parameter3name = Shop Name
|parameter3name = Location
|parameter3description = This is the name of the shop the NPC is in
|parameter3description = This is the location the NPC is found
|parameter4name = Amount
|parameter4description = This is the number you get for that price, only use if it is not one
|parameter5name = Area
|parameter5description = This is the area that the location is in, optional
}}
}}
</noinclude>
</noinclude>
<onlyinclude>[[Category:Items Purchable In-Game]]Purchase from [[{{{1}}}]] located in [[{{{3}}} for {{{2}}}. </onlyinclude>
<onlyinclude>{{#dplvar:set|purchasecost|}}{{#dplvar:set|purchaseamt|1}}
{{#if: {{{2|}}}|{{#dplvar:set|purchasecost|{{{2|}}}}}|{{#if:{{#dplvar:vendorsaleprice}}|{{#dplvar:set|purchasecost|{{#dplvar:vendorsaleprice}}}}|{{#if:{{#dplvar:itembasevalue}}|{{#dplvar:set|purchasecost|{{#dplvar:itembasevalue}}}}}}}}}}
{{#if: {{{4|}}}|{{#dplvar:set|purchaseamt|{{{4|}}}}}|{{#if:{{#dplvar:vendorsalecount}}|{{#dplvar:set|purchaseamt|{{#dplvar:vendorsalecount}}}}}}}}{{#ifeq: {{FULLPAGENAME}} |Template:VendorPurchase||[[Category:Items Purchasable In-Game]]{{#if: {{{3|}}}|[[Category:Items Sold in {{{3|}}}]]}}}}{{#switch: {{lc:{{#dplvar:vendorformat}}}}
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{3|}}}|{{RenderLink|{{{3}}}}}}}</td><td>{{#dplvar:purchaseamt}}</td><td style="white-space:nowrap">{{#dplvar:purchasecost}}</td><td>{{#if: {{{5|}}}|{{RenderLink|{{{5}}}}}}}</td></tr>
|#default={{RenderLink|{{{1}}}}}: Purchase in {{RenderLink|{{{3|}}}}}{{#if: {{#dplvar:purchasecost}}|, Cost: {{#dplvar:purchasecost}}}}
}}</onlyinclude>

Latest revision as of 23:46, 4 April 2022

VendorPurchase[edit]

This template is used on equipment to correctly format where that equipment is received from buying from a vendor using platninum.

Example Usage
{{VendorPurchase|Kaelpit Dourstroke|15gp|Hammer and Chain}}Kaelpit Dourstroke: Purchase in Hammer and Chain, Cost: 15gp
{{VendorPurchase|Jolene Dander||Eveningstar|10}}Jolene Dander: Purchase in Eveningstar
{{VendorPurchase|Jolene Dander||Liquid Charm|10|House Kundarak}}Jolene Dander: Purchase in Liquid Charm

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.



[[{{{1}}}]]: Purchase in [[]]