Difference between revisions of "Template:VendorIngredientList"

From DDO Compendium
Line 4: Line 4:
|category = Shared Templates
|category = Shared Templates
|usesnamedparameters = no
|usesnamedparameters = no
|example1 = <nowiki>{{VendorIngredientList|{{Ingredient|Silver Flame Trinket}}|{{Ingredient|Dark Scarab Powder|5}}|{{Ingredient|Thread of Fate|250}}}}</nowiki>
|example1 = <nowiki>{{VendorIngredientList|Silver Flame Trinket||Dark Scarab Powder|5|Thread of Fate|250}}</nowiki>
|example1output = {{VendorIngredientList|{{Ingredient|Silver Flame Trinket}}|{{Ingredient|Dark Scarab Powder|5}}|{{Ingredient|Thread of Fate|250}}}}
|example1output = {{VendorIngredientList|Silver Flame Trinket||Dark Scarab Powder|5|Thread of Fate|250}}
|parameter1name = Ingredient
|parameter1name = page name
|parameter1description = Use the ingredient template, repeat up to 20 times
|parameter1description = The Ingredient page, Repeat these 2 fields up to 20 times.
}}</noinclude><onlyinclude>{{{1|}}}{{#if: {{{2|}}}|<br>{{{2}}}}}{{#if: {{{3|}}}|<br>{{{3}}}}}{{#if: {{{4|}}}|<br>{{{4}}}}}{{#if: {{{5|}}}|<br>{{{5}}}}}{{#if: {{{6|}}}|<br>{{{6}}}}}{{#if: {{{7|}}}|<br>{{{7}}}}}{{#if: {{{8|}}}|<br>{{{8}}}}}{{#if: {{{9|}}}|<br>{{{9}}}}}{{#if: {{{10|}}}|<br>{{{10}}}}}{{#if: {{{11|}}}|<br>{{{11}}}}}{{#if: {{{12|}}}|<br>{{{12}}}}}{{#if: {{{13|}}}|<br>{{{13}}}}}{{#if: {{{14|}}}|<br>{{{14}}}}}{{#if: {{{15|}}}|<br>{{{15}}}}}{{#if: {{{16|}}}|<br>{{{16}}}}}{{#if: {{{17|}}}|<br>{{{17}}}}}{{#if: {{{18|}}}|<br>{{{18}}}}}{{#if: {{{19|}}}|<br>{{{19}}}}}{{#if: {{{20|}}}|<br>{{{20}}}}}</onlyinclude>
|parameter2name = Count
|parameter2description = Number of Ingredients required
|parameter2values = Any Integer (Defaults to 1)
}}</noinclude><onlyinclude>{{#dplvar:set|renderstyle|icononly}}{{Ingredient|{{{1|}}}|{{{2|}}}}}{{#if: {{{3|}}}|{{Ingredient|{{{3|}}}|{{{4|}}}}}}}{{#if: {{{5|}}}|{{Ingredient|{{{5|}}}|{{{6|}}}}}}}{{#if: {{{7|}}}|{{Ingredient|{{{7|}}}|{{{8|}}}}}}}{{#if: {{{9|}}}|{{Ingredient|{{{9|}}}|{{{10|}}}}}}}{{#if: {{{11|}}}|{{Ingredient|{{{11|}}}|{{{12|}}}}}}}{{#if: {{{13|}}}|{{Ingredient|{{{13|}}}|{{{14|}}}}}}}{{#if: {{{15|}}}|{{Ingredient|{{{15|}}}|{{{16|}}}}}}}{{#if: {{{17|}}}|{{Ingredient|{{{17|}}}|{{{18|}}}}}}}{{#if: {{{19|}}}|{{Ingredient|{{{19|}}}|{{{20|}}}}}}}{{#if: {{{21|}}}|{{Ingredient|{{{21|}}}|{{{22|}}}}}}}{{#if: {{{23|}}}|{{Ingredient|{{{23|}}}|{{{24|}}}}}}}{{#if: {{{25|}}}|{{Ingredient|{{{25|}}}|{{{26|}}}}}}}{{#if: {{{27|}}}|{{Ingredient|{{{27|}}}|{{{28|}}}}}}}{{#if: {{{29|}}}|{{Ingredient|{{{29|}}}|{{{30|}}}}}}}{{#if: {{{31|}}}|{{Ingredient|{{{31|}}}|{{{32|}}}}}}}{{#if: {{{33|}}}|{{Ingredient|{{{33|}}}|{{{34|}}}}}}}{{#if: {{{35|}}}|{{Ingredient|{{{35|}}}|{{{36|}}}}}}}{{#if: {{{37|}}}|{{Ingredient|{{{37|}}}|{{{38|}}}}}}}{{#if: {{{39|}}}|{{Ingredient|{{{39|}}}|{{{40|}}}}}}}{{#dplvar:set|renderstyle|none}}</onlyinclude>

Revision as of 01:17, 19 October 2021

VendorIngredientList[edit]

Template for a consistent appearance of multiple ingredients for vendor sales and purchase lists.

Example Usage
{{VendorIngredientList|Silver Flame Trinket||Dark Scarab Powder|5|Thread of Fate|250}}
1x Silver Flame Trinket
1
5x Dark Scarab Powder
5
250x Thread of Fate
250

Usage[edit]

Parameter Documentation
page nameThe Ingredient page, Repeat these 2 fields up to 20 times.
CountNumber of Ingredients required
Possible Values: Any Integer (Defaults to 1)

Template

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


1x [[]]