Difference between revisions of "Template:VendorSaleMultipleCost"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>{{TemplateDocumentation |name = VendorSaleMultipleCost |description = This template is used on equipment to correctly format what a vendor is selling, when you can buy stuff with different prices |category = Vendor Templates |example1 = <nowiki>{{VendorSaleMultipleCost|+1 Ghost Touch Silver Flame Arrow|100|{{Price|10}}}}</nowiki> |example1output = {{VendorSaleMultipleCost|+1 Ghost Touch Silver Flame Arrow|100|{{Price|10}}}} |example2 = <nowiki>{{VendorSaleMult...") |
MNDeveloper (talk | contribs) |
||
Line 12: | Line 12: | ||
|parameter2description = This is the number you get for that price, only use if it is not one | |parameter2description = This is the number you get for that price, only use if it is not one | ||
|parameter3name = Cost | |parameter3name = Cost | ||
|parameter3description = This is the cost, include the currency in it (i.e. gp, pp, cp). Use [[Template: Price]] | |parameter3description = This is the cost, include the currency in it (i.e. gp, pp, cp). Use [[Template: Price]], this can be repeated 10 times, to get multiple rows with different costs | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}} | <onlyinclude>{{#switch: {{#dplvar:vendorwidth}} | ||
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{3|}}}|{{{3}}}}}</td>{{# | |4={{#dplvar:set|extracols|<td></td>}} | ||
| | |5={{#dplvar:set|extracols|<td></td><td></td>}} | ||
| | |6={{#dplvar:set|extracols|<td></td><td></td><td></td>}} | ||
| | |#default={{#dplvar:set|extracols|}} | ||
}}</tr> | }}{{#switch: {{lc:{{#dplvar:vendorformat}}}} | ||
|#default={{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{#if:{{{3|}}}|{{{3}}}}} | | table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{3|}}}|{{{3}}}}}</td>{{#dplvar:extracols}}</tr>{{#if: {{{4|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{4|}}}|{{{4}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{5|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{5|}}}|{{{5}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{6|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{6|}}}|{{{6}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{7|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{7|}}}|{{{7}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{8|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{8|}}}|{{{8}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{9|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{9|}}}|{{{9}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{10|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{10|}}}|{{{10}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{11|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{11|}}}|{{{11}}}}}</td>{{#dplvar:extracols}}</tr>}}{{#if: {{{12|}}}|<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{2|}}}|{{{2}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{12|}}}|{{{12}}}}}</td>{{#dplvar:extracols}}</tr>}} | ||
|#default=* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{#if:{{{3|}}}|{{{3}}}}}{{#if:{{{4|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{4}}}}}{{#if:{{{5|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{5}}}}}{{#if:{{{6|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{6}}}}}{{#if:{{{7|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{7}}}}}{{#if:{{{8|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{8}}}}}{{#if:{{{9|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{9}}}}}{{#if:{{{10|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{10}}}}}{{#if:{{{11|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{11}}}}}{{#if:{{{12|}}}|* {{#if: {{{2|}}}|{{{2}}}}} {{RenderLink|{{{1}}}}} - {{{12}}}}} | |||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 19:25, 22 May 2022
VendorSaleMultipleCost[edit]
This template is used on equipment to correctly format what a vendor is selling, when you can buy stuff with different prices
Example Usage | |
{{VendorSaleMultipleCost|+1 Ghost Touch Silver Flame Arrow|100|{{Price|10}}}} | * 100 +1 Ghost Touch Silver Flame Arrow - 10 ![]() |
{{VendorSaleMultipleCost|Silver Flame Lesser Healing Potion||{{Price|10}}}} | * Silver Flame Lesser Healing Potion - 10 ![]() |
Usage[edit]
{{VendorSaleMultipleCost|(Item)|(Amount)|(Cost)}}
Parameter Documentation | |
Item | This is the item that is being sold |
Amount | This is the number you get for that price, only use if it is not one |
Cost | This is the cost, include the currency in it (i.e. gp, pp, cp). Use Template: Price, this can be repeated 10 times, to get multiple rows with different costs |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
- [[{{{1}}}]] -