Difference between revisions of "Template:VendorSaleTable"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 39: | Line 39: | ||
<tr> | <tr> | ||
<th scope="col" data-th="{{#if: {{{2|}}}|{{{2}}}|Item}}">{{#if: {{{2|}}}|{{{2}}}|Item}}</th> | <th scope="col" data-th="{{#if: {{{2|}}}|{{{2}}}|Item}}">{{#if: {{{2|}}}|{{{2}}}|Item}}</th> | ||
<th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}| | <th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}|Quantity}}">{{#if: {{{3|}}}|{{{3}}}|Quantity}}</th> | ||
<th scope="col" data-th="{{#if: {{{4|}}}|{{{4}}}| | <th scope="col" data-th="{{#if: {{{4|}}}|{{{4}}}|Price}}">{{#if: {{{4|}}}|{{{4}}}|Price}}</th> | ||
{{#if: {{{5|}}}|<th scope="col" data-th="{{{5}}}">{{{5}}}</th>}} | {{#if: {{{5|}}}|<th scope="col" data-th="{{{5}}}">{{{5}}}</th>}} | ||
{{#if: {{{6|}}}|<th scope="col" data-th="{{{6}}}">{{{6}}}</th>}} | {{#if: {{{6|}}}|<th scope="col" data-th="{{{6}}}">{{{6}}}</th>}} | ||
{{#if: {{{7|}}}|<th scope="col" data-th="{{{7}}}">{{{7}}}</th>}} | {{#if: {{{7|}}}|<th scope="col" data-th="{{{7}}}">{{{7}}}</th>}} | ||
</tr>{{#dplvar:set|vendorformat|table}}{{#dplreplace:{{{1}}}|\*|}}</table></div></onlyinclude> | </tr>{{#dplvar:set|vendorformat|table}}{{#dplreplace:{{{1}}}|\*|}}</table></div></onlyinclude> |
Revision as of 16:58, 28 July 2021
VendorSaleTable[edit]
This template is used on equipment to correctly format a table version of the Vendor Sale templates, for what a vendor sells.
Example Usage | |||||||||||||||||||
{{VendorSaleTable| {{VendorSale|+1 Ghost Touch Silver Flame Arrow|{{Price|10}}|100}} {{VendorSale|+1 Silver Flame Arrow of Lesser Undead Bane|{{Price|10}}|100}} {{VendorSale|Silver Flame Lesser Healing Potion|{{Price|10}}}} {{VendorSale|Silver Flame Healing Potion|{{Price|10}}}} {{VendorSale|Mark of the Silver Flame|{{Price|10}}}} }} |
|
Usage[edit]
{{VendorSaleTable|(Items)|(First Table Column Title)|(Second Table Column Title)|(Third Table Column Title)|(Optional Fourth Table Column Title)|(Optional Fifth Table Column Title)|(Optional Sixth Table Column Title)}}
Parameter Documentation | |
Items | This is a list of Template:VendorSale that you want as a table |
First Table Column Title | This the title of the first column, if you don't want it to say "Item" |
Second Table Column Title | This the title of the second column, if you don't want it to say "Quantity" |
Third Table Column Title | This the title of the third column, if you don't want it to say "Price" |
Optional Fourth Table Column Title | This the title of the fourth column, if you don't want it to exist |
Optional Fifth Table Column Title | This the title of the fifth column, if you don't want it to exist |
Optional Sixth Table Column Title | This the title of the sixth column, if you don't want it to exist |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Item | Quantity | Price |
---|