Difference between revisions of "Template:VendorSaleTableStart"

From DDO Compendium
Line 22: Line 22:
<table class=" table table-striped table-condensed sortable">
<table class=" table table-striped table-condensed sortable">
<tr>
<tr>
<th scope="col" data-th="{{#if: {{{2|}}}|{{{2}}}|Item}}">{{#if: {{{2|}}}|{{{2}}}|Item}}</th>
<th scope="col" data-th="{{#if: {{{1|}}}|{{{1}}}|Item}}">{{#if: {{{1|}}}|{{{1}}}|Item}}</th>
<th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}|Quantity}}">{{#if: {{{3|}}}|{{{3}}}|Quantity}}</th>
<th scope="col" data-th="{{#if: {{{2|}}}|{{{2}}}|Quantity}}">{{#if: {{{2|}}}|{{{2}}}|Quantity}}</th>
<th scope="col" data-th="{{#if: {{{4|}}}|{{{4}}}|Price}}">{{#if: {{{4|}}}|{{{4}}}|Price}}</th>
<th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}|Price}}">{{#if: {{{3|}}}|{{{3}}}|Price}}</th>
{{#if: {{{4|}}}|<th scope="col" data-th="{{{4}}}">{{{4}}}</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>}}
</tr></onlyinclude>
</tr></onlyinclude>

Revision as of 20:45, 30 July 2021

VendorSaleTable[edit]

This template is used on equipment to correctly format the beginning of a table version of the Vendor Sale templates, for what a vendor sells. Is used in VendorSaleTable, and in cases where DPL is used to format (like NPCPurpose Barkeep)

Usage[edit]

{{VendorSaleTable}} |parameter1name = First Table Column Title |parameter1description = This the title of the first column, if you don't want it to say "Item" |parameter2name = Second Table Column Title |parameter2description = This the title of the second column, if you don't want it to say "Quantity" |parameter3name = Third Table Column Title |parameter3description = This the title of the third column, if you don't want it to say "Price" |parameter4name = Optional Fourth Table Column Title |parameter4description = This the title of the fourth column, if you don't want it to exist |parameter5name = Optional Fifth Table Column Title |parameter5description = This the title of the fifth column, if you don't want it to exist |parameter6name = Optional Sixth Table Column Title |parameter6description = This the title of the sixth column, if you don't want it to exist }}



Item Quantity Price