Difference between revisions of "Template:VendorSale"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 22: | Line 22: | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}} | <onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}} | ||
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{3|}}}|{{{3}}}|1}}</td><td>{{#if:{{{2|}}}|{{{2}}}}}</td>{{#if: {{{4|}}}|<td>{{{4}}}</td>}}{{#if: {{{5|}}}|<td>{{{5}}}</td>}}{{#if: {{{6|}}}|<td>{{{6}}}</td>}}</tr> | | table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{3|}}}|{{{3}}}|1}}</td><td style="white-space:nowrap">{{#if:{{{2|}}}|{{{2}}}}}</td>{{#if: {{{4|}}}|<td>{{{4}}}</td>}}{{#if: {{{5|}}}|<td>{{{5}}}</td>}}{{#if: {{{6|}}}|<td>{{{6}}}</td>}}</tr> | ||
|#default={{#if: {{{3|}}}|{{{3}}}}} {{RenderLink|{{{1}}}}} - {{#if:{{{2|}}}|{{{2}}}}} | |#default={{#if: {{{3|}}}|{{{3}}}}} {{RenderLink|{{{1}}}}} - {{#if:{{{2|}}}|{{{2}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Latest revision as of 12:25, 30 March 2022
VendorSale[edit]
This template is used on equipment to correctly format what a vendor is selling.
Example Usage | |
{{VendorSale|+1 Ghost Touch Silver Flame Arrow|{{Price|10}}|100}} | 100 +1 Ghost Touch Silver Flame Arrow - 10 |
{{VendorSale|Silver Flame Lesser Healing Potion|{{Price|10}}}} | Silver Flame Lesser Healing Potion - 10 |
Usage[edit]
{{VendorSale|(Item)|(Cost)|(Amount)|(Table Optional 1)|(Table Optional 2)|(Table Optional 3)}}
Parameter Documentation | |
Item | This is the item that is being sold |
Cost | This is the cost, include the currency in it (i.e. gp, pp, cp). Use Template: Price |
Amount | This is the number you get for that price, only use if it is not one |
Table Optional 1 | This is the value to show in the first optional column, when this template is inside Template:VendorSaleTable |
Table Optional 2 | This is the value to show in the second optional column, when this template is inside Template:VendorSaleTable |
Table Optional 3 | This is the value to show in the third optional column, when this template is inside Template:VendorSaleTable |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[{{{1}}}]] -