Difference between revisions of "Template:VendorCraft"

From DDO Compendium
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
|description = This template is used on equipment to correctly format what a vendor can craft for you.
|description = This template is used on equipment to correctly format what a vendor can craft for you.
|category = Vendor Templates
|category = Vendor Templates
|example1 = <nowiki>{{VendorSale|Reflection of Wave|
|example1 = <nowiki>{{VendorSaleTable|{{VendorCraft|Reflection of Wave|{{VendorIngredientList|Legendary Echo of Wave||Sentient Jewel of Wave||Schism Shard|5}}}}}}</nowiki>
* {{Ingredient|Legendary Echo of Wave}}
|example1output = {{VendorSaleTable|{{VendorCraft|Reflection of Wave|{{VendorIngredientList|Legendary Echo of Wave||Sentient Jewel of Wave||Schism Shard|5}}}}}}
* {{Ingredient|Sentience of Wave}}
* {{Ingredient|Schism Shard|5}}}}</nowiki>
|example1output = {{VendorSale|Reflection of Wave|
* {{Ingredient|Legendary Echo of Wave|Echo of Wave}}
* {{Ingredient|Sentience of Wave}}
* {{Ingredient|Schism Shard|5}}}}
|parameter1name = Item
|parameter1name = Item
|parameter1description = This is the item that is being created
|parameter1description = This is the item that is being created
Line 24: Line 18:
|parameter6description = This is the value to show in the third optional column, when this template is inside [[Template:VendorSaleTable]]
|parameter6description = This is the value to show in the third optional column, when this template is inside [[Template:VendorSaleTable]]
}}
}}
</noinclude>
</noinclude><onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{3|}}}|{{{3}}}|1}}</td><td>{{#if:{{{2|}}}|{{{2}}}}}</td>{{#if: {{{4|}}}|<td>{{{4}}}</td>}}{{#if: {{{5|}}}|<td>{{{5}}}</td>}}{{#if: {{{6|}}}|<td>{{{6}}}</td>}}</tr>
| table=<tr><td>{{RenderLink|{{{1}}}}}</td><td>{{#if: {{{3|}}}|{{{3}}}|1}}</td><td>{{#if:{{{2|}}}|{{WrapMultiLine|{{{2}}}}}}}</td>{{#if: {{{4|}}}|<td>{{{4}}}</td>}}{{#if: {{{5|}}}|<td>{{{5}}}</td>}}{{#if: {{{6|}}}|<td>{{{6}}}</td>}}</tr>
|#default={{#if: {{{3|}}}|{{{3}}}}}&nbsp;{{RenderLink|{{{1}}}}} - {{#if:{{{2|}}}|{{WrapMultiLine|{{{2}}}}}}}
|#default={{#if: {{{3|}}}|{{{3}}}}}&nbsp;{{RenderLink|{{{1}}}}} - {{#if:{{{2|}}}|{{WrapMultiLine|{{{2}}}}}}}
}}</onlyinclude>
}}</onlyinclude>

Latest revision as of 14:24, 19 October 2021

VendorCraft[edit]

This template is used on equipment to correctly format what a vendor can craft for you.

Example Usage
{{VendorSaleTable|{{VendorCraft|Reflection of Wave|{{VendorIngredientList|Legendary Echo of Wave||Sentient Jewel of Wave||Schism Shard|5}}}}}}
Item Qty Price
Reflection of Wave1
1x Legendary Echo of Wave
1
1x Sentient Jewel of Wave
1
5x Schism Shard
5

Usage[edit]

{{VendorCraft|(Item)|(Cost)|(Amount)|(Table Optional 1)|(Table Optional 2)|(Table Optional 3)}}

Parameter Documentation
ItemThis is the item that is being created
CostThis is the ingredients in the item
AmountThis is the number you get for that price, only use if it is not one
Table Optional 1This is the value to show in the first optional column, when this template is inside Template:VendorSaleTable
Table Optional 2This is the value to show in the second optional column, when this template is inside Template:VendorSaleTable
Table Optional 3This is the value to show in the third optional column, when this template is inside Template:VendorSaleTable

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


[[{{{1}}}]]1