Difference between revisions of "Template:VendorIngredientList"
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 11: | Line 11: | ||
|parameter2description = Number of Ingredients required | |parameter2description = Number of Ingredients required | ||
|parameter2values = Any Integer (Defaults to 1) | |parameter2values = Any Integer (Defaults to 1) | ||
}}</noinclude><onlyinclude>{{#dplvar:set|renderstyle|icononly}}{{#if: {{{1|}}}|{{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> | }}</noinclude><onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}} | ||
|table={{#dplvar:set|renderstyle|icononly}}{{#if: {{{1|}}}|{{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}} | |||
|#default={{#if: {{{1|}}}** {{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|}}}}} | |||
}}</onlyinclude> |
Revision as of 20:55, 19 May 2022
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}} | {{#switch:
|table=
|#default={{#if: Silver Flame Trinket** 1x Silver Flame Trinket {{#if: Dark Scarab Powder** 5x Dark Scarab Powder {{#if: Thread of Fate** 250x Thread of Fate {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] |
Usage[edit]
Parameter Documentation | |
page name | The Ingredient page, Repeat these 2 fields up to 20 times. |
Count | Number 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.
{{#switch:
|table= |#default={{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]] {{#if: ** 1x [[]]