Difference between revisions of "Template:VendorCraft"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(6 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>{{VendorCraft|Reflection of Wave| | |example1 = <nowiki>{{VendorSaleTable|{{VendorCraft|Reflection of Wave|{{VendorIngredientList|Legendary Echo of Wave||Sentient Jewel of Wave||Schism Shard|5}}}}}}</nowiki> | ||
|example1output = {{VendorSaleTable|{{VendorCraft|Reflection of Wave|{{VendorIngredientList|Legendary Echo of Wave||Sentient Jewel of Wave||Schism Shard|5}}}}}} | |||
|example1output = {{VendorCraft|Reflection of Wave| | |||
|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|}}} | |||
|#default={{#if: {{{3|}}}|{{{3}}}}} {{RenderLink|{{{1}}}}} - {{#if:{{{2|}}}|{{WrapMultiLine|{{{2}}}}}}} | |#default={{#if: {{{3|}}}|{{{3}}}}} {{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}}}}}} |
|
Usage[edit]
{{VendorCraft|(Item)|(Cost)|(Amount)|(Table Optional 1)|(Table Optional 2)|(Table Optional 3)}}
Parameter Documentation | |
Item | This is the item that is being created |
Cost | This is the ingredients in the item |
Amount | This is the number you get for that price, only use if it is not one |
Table Optional 1 | This is the value to show in the first optional column, when this template is inside Template:VendorSaleTable |
Table Optional 2 | This is the value to show in the second optional column, when this template is inside Template:VendorSaleTable |
Table Optional 3 | This 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