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 | |parameter2name = First Table Column Title | ||
| | |parameter2description = This the title of the first column, if you don't want it to say "Item" | ||
|parameter3name = Second Table Column Title | |||
|parameter3description = This the title of the second column, if you don't want it to say "Quantity" | |||
|parameter4name = Third Table Column Title | |||
|parameter4description = This the title of the third column, if you don't want it to say "Price" | |||
|parameter5name = Optional Fourth Table Column Title | |||
|parameter5description = This the title of the fourth column, if you don't want it to exist | |||
|parameter6name = Optional Fifth Table Column Title | |||
|parameter6description = This the title of the fifth column, if you don't want it to exist | |||
|parameter7name = Optional Sixth Table Column Title | |||
|parameter7description = This the title of the sixth column, if you don't want it to exist | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
Line 28: | Line 38: | ||
<table class=" table table-striped table-condensed sortable"> | <table class=" table table-striped table-condensed sortable"> | ||
<tr> | <tr> | ||
<th scope="col" data-th="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=" | <th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}|Item}}">{{#if: {{{3|}}}|{{{3}}}|Item}}</th> | ||
<th scope="col" data-th=" | <th scope="col" data-th="{{#if: {{{4|}}}|{{{4}}}|Item}}">{{#if: {{{4|}}}|{{{4}}}|Item}}</th> | ||
{{#if: {{{5|}}}|<th scope="col" data-th="{{{5}}}">{{{5}}}</th>}} | |||
{{#if: {{{6|}}}|<th scope="col" data-th="{{{6}}}">{{{6}}}</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:55, 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 | Item | Item |
---|