Difference between revisions of "Template:VendorSaleTable"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 20: | Line 20: | ||
|parameter1name = Items | |parameter1name = Items | ||
|parameter1description = This is a list of [[Template:VendorSale]] that you want as a table | |parameter1description = This is a list of [[Template:VendorSale]] that you want as a table | ||
|parameter2name = Item Column Table | |||
|parameter2description = This the title of the item column, if you don't want it to say "Item" | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
Line 26: | Line 28: | ||
<table class=" table table-striped table-condensed sortable"> | <table class=" table table-striped table-condensed sortable"> | ||
<tr> | <tr> | ||
<th scope="col" data-th="Item">Item</th> | <th scope="col" data-th="Item">{{#if: {{{2|}}}|{{{2}}}|Item}}</th> | ||
<th scope="col" data-th="Quantity">Qty</th> | <th scope="col" data-th="Quantity">Qty</th> | ||
<th scope="col" data-th="Price">Price</th> | <th scope="col" data-th="Price">Price</th> | ||
</tr>{{#dplvar:set|vendorformat|table}}{{#dplreplace:{{{1}}}|\*|}}</table></div></onlyinclude> | </tr>{{#dplvar:set|vendorformat|table}}{{#dplreplace:{{{1}}}|\*|}}</table></div></onlyinclude> |
Revision as of 01:47, 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)|(Item Column Table)}}
Parameter Documentation | |
Items | This is a list of Template:VendorSale that you want as a table |
Item Column Table | This the title of the item column, if you don't want it to say "Item" |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}}
Item | Qty | Price |
---|