Difference between revisions of "Template:BarterBoxTable"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 45: | Line 45: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude><div class="table-responsive"><table class="compendiumtable compendiumtablenonsortable"> | <onlyinclude>{{#dplvar:set|vendorformat|table}}<div class="table-responsive"><table class="compendiumtable compendiumtablenonsortable"> | ||
<tr><th scope="col" data-th="{{#if: {{{2|}}}|{{{2}}}|Recipe}}" style="width: | <tr><th scope="col" data-th="{{#if: {{{2|}}}|{{{2}}}|Recipe}}" style="width:20%">{{#if: {{{2|}}}|{{{2}}}|Recipe}}</th> | ||
<th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}|Benefit}}" {{#if: {{{4|}}}| style="width:{{{4}}}%"}}>{{#if: {{{3|}}}|{{{3}}}|Benefit}}</th> | <th scope="col" data-th="{{#if: {{{3|}}}|{{{3}}}|Benefit}}" {{#if: {{{4|}}}| style="width:{{{4}}}%"}}>{{#if: {{{3|}}}|{{{3}}}|Benefit}}</th> | ||
<th scope="col" data-th="{{#if: {{{5|}}}|{{{5}}}|Cost}}" {{#if: {{{6|}}}| style="width:{{{6}}}%"| style="width: | <th scope="col" data-th="{{#if: {{{5|}}}|{{{5}}}|Cost}}" {{#if: {{{6|}}}| style="width:{{{6}}}%"| style="width:10%"}}>{{#if: {{{5|}}}|{{{5}}}|Cost}}</th>{{#if: {{{7|}}}|<th scope="col" data-th="{{{7}}}" {{#if: {{{8|}}}| style="width:{{{8}}}%"}}>{{{7}}}</th>}}{{#if: {{{9|}}}|<th scope="col" data-th="{{{9}}}" {{#if: {{{10|}}}| style="width:{{{10}}}%"}}>{{{9}}}</th>}}{{#if: {{{11|}}}|<th scope="col" data-th="{{{11}}}" {{#if: {{{12|}}}| style="width:{{{12}}}%"}}>{{{11}}}</th>}}</tr>{{#dplreplace:{{{1}}}|\*|}}</table>{{#dplvar:set|vendorformat|}}</onlyinclude> |
Latest revision as of 18:32, 21 May 2022
BarterBoxTable[edit]
This template is used to render a barter box style table, used in displaying pages where crafting is involved, where the recipes don't logically fit on the items themselves (i.e. Thunder-Forged, Cannith Crafting, etc.
Example Usage | |
{{BarterBoxTable| {{BarterBoxEntry|Blinding Fear|3|On Hit: Blinds and Shakens foe for 6 seconds, 12 second cool down|{{VendorIngredientList|Thunder-Forged Dwarven Ingot|60|Commendation of Valor|45}}|One-Handed Weapon}} {{BarterBoxEntry|||On Hit: Blinds and Shakens foe for 6 seconds, 12 second cool down.|{{VendorIngredientList|Thunder-Forged Dwarven Ingot|60|Commendation of Valor|45}}|Two-Handed Weapon}} {{BarterBoxEntry|||On Hit: Blinds and Shakens foe for 6 seconds, 12 second cool down.|{{VendorIngredientList|Thunder-Forged Dwarven Ingot|60|Commendation of Valor|45}}|Orb}} ||Type|15|Benefit||Cost|10}} |
Usage[edit]
{{BarterBoxTable|(Recipes)|(First Table Column Title)|(Second Table Column Title)|(Second Table Column Width)|(Third Table Column Title)|(Third Table Column Width)|(Fourth Table Column Title)|(Fourth Table Column Width)|(Fifth Table Column Title)|(Fifth Table Column Width)|(Sixth Table Column Title)|(Sixth Table Column Width)}}
Parameter Documentation | |
Recipes | This is a list of Template:BarterBoxEntry 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 "Recipe" |
Second Table Column Title | This the title of the second column, if you don't want it to say "Benefit" |
Second Table Column Width | This the width of the second column, in percent, without it doesn't specify |
Third Table Column Title | This the title of the Third column, if you don't want it to say "Cost" |
Third Table Column Width | This the width of the Third column, in percent, without it doesn't specify |
Fourth Table Column Title | This the title of the Fourth column |
Fourth Table Column Width | This the width of the Fourth column, in percent, without it doesn't specify |
Fifth Table Column Title | This the title of the Fifth column |
Fifth Table Column Width | This the width of the Fifth column, in percent, without it doesn't specify |
Sixth Table Column Title | This the title of the Sixth column |
Sixth Table Column Width | This the width of the Sixth column, in percent, without it doesn't specify |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}}
Recipe | Benefit | Cost |
---|