Difference between revisions of "Template:NightRevelsPurchase"

From DDO Compendium
 
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
|example1 = <nowiki>{{NightRevelsPurchase|40||10|5}}</nowiki>
|example1 = <nowiki>{{NightRevelsPurchase|40||10|5}}</nowiki>
|example1output = {{NightRevelsPurchase|40||10|5}}
|example1output = {{NightRevelsPurchase|40||10|5}}
|example2 = <nowiki>{{NightRevelsPurchase|60|10|10||5|50|True}}</nowiki>
|example2 = <nowiki>{{NightRevelsPurchase|60|10|10||5||50|True}}</nowiki>
|example2output = {{NightRevelsPurchase|60|10|10||5|50|True}}
|example2output = {{NightRevelsPurchase|60|10|10||5||50|True}}
|parameter1name = Choco Count
|parameter1name = Choco Count
|parameter1description = Number of Darkest Chocolate
|parameter1description = Number of Darkest Chocolate
Line 17: Line 17:
|parameter5name = Apple Count
|parameter5name = Apple Count
|parameter5description = Number of Black Apples
|parameter5description = Number of Black Apples
|parameter7name = Scale Count
|parameter6name = Scale Count
|parameter7description = Number of Spectral Dragon Scales
|parameter6description = Number of Spectral Dragon Scales
|parameter7name = Items
|parameter7name = Items
|parameter7description = The number of items received, it not specified it is 1
|parameter7description = The number of items received, it not specified it is 1
Line 28: Line 28:


{{#switch: {{lc:{{#dplvar:vendorformat}}}}
{{#switch: {{lc:{{#dplvar:vendorformat}}}}
|table=<tr><td>[[{{Joe Candymaker}}]]</td><td>[[Night Revels Crypt]]</td><td>{{#if: {{{7|}}}|{{{7}}}|1}}</td><td>{{VendorIngredientList|{{#if: {{{1|}}}|Darkest Chocolate}}|{{{1|}}}|{{#if: {{{2|}}}|Shadowy Caramel}}|{{{2|}}}|{{#if: {{{3|}}}|Spooky Almond}}|{{{3|}}}|{{#if: {{{4|}}}|Sinister Cinnamon}}|{{{4|}}}|{{#if: {{{5|}}}|Black Apple}}|{{{5|}}}|{{#if: {{{6|}}}|Spectral Dragon Scale}}|{{{6|}}}}}</td><td></td></tr>
|table=<tr><td>[[Joe Candymaker]] ({{#if: {{{8|}}}|Wares|Consumables}})&nbsp;{{PopupNote|Custom||Only available during the Night Revels event.}}</td><td>[[Night Revels Crypt]]</td><td>{{#if: {{{7|}}}|{{{7}}}|1}}</td><td style="White-space: nowrap">{{VendorIngredientList|{{#if: {{{1|}}}|Darkest Chocolate}}|{{{1|}}}|{{#if: {{{2|}}}|Shadowy Caramel}}|{{{2|}}}|{{#if: {{{3|}}}|Spooky Almond}}|{{{3|}}}|{{#if: {{{4|}}}|Sinister Cinnamon}}|{{{4|}}}|{{#if: {{{5|}}}|Black Apple}}|{{{5|}}}|{{#if: {{{6|}}}|Spectral Dragon Scale}}|{{{6|}}}}}</td><td>[[House Jorasco]]</td></tr>


|#default=[[Joe Candymaker]]: Purchase {{#if: {{{7|}}}|{{{7}}}}} using the {{#if: {{{8|}}}|Wares|Consumables}} option during [[Night Revels]].{{#if: {{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}| Cost:}}
|#default=[[Joe Candymaker]]: Purchase {{#if: {{{7|}}}|{{{7}}}}} using the {{#if: {{{8|}}}|Wares|Consumables}} option during [[Night Revels]].{{#if: {{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|&nbsp;Cost:}}
{{WrapMultiLine|{{#if: {{{6|}}}|* {{Ingredient|Spectral Dragon Scale|{{{6}}}}}}}{{#if: {{{1|}}}|* {{Ingredient|Darkest Chocolate|{{{1}}}}}}}{{#if: {{{2|}}}|* {{Ingredient|Shadowy Caramel|{{{2}}}}}}}{{#if: {{{3|}}}|* {{Ingredient|Spooky Almond|{{{3}}}}}}}{{#if: {{{4|}}}|* {{Ingredient|Sinister Cinnamon|{{{4}}}}}}}{{#if: {{{5|}}}|* {{Ingredient|Black Apple|{{{5}}}}}}}}}
{{WrapMultiLine|{{#if: {{{6|}}}|* {{Ingredient|Spectral Dragon Scale|{{{6}}}}}}}{{#if: {{{1|}}}|* {{Ingredient|Darkest Chocolate|{{{1}}}}}}}{{#if: {{{2|}}}|* {{Ingredient|Shadowy Caramel|{{{2}}}}}}}{{#if: {{{3|}}}|* {{Ingredient|Spooky Almond|{{{3}}}}}}}{{#if: {{{4|}}}|* {{Ingredient|Sinister Cinnamon|{{{4}}}}}}}{{#if: {{{5|}}}|* {{Ingredient|Black Apple|{{{5}}}}}}}}}
}}{{#ifeq: {{FULLPAGENAME}} |Template:NightRevelsPurchase||[[Category:Night Revels Items]]}}{{#dplvar:set|cost}}</onlyinclude>
}}{{#ifeq: {{FULLPAGENAME}} |Template:NightRevelsPurchase||[[Category:Night Revels Items]]}}</onlyinclude>

Latest revision as of 23:25, 26 April 2022

NightRevelsPurchase[edit]

This template is used on equipment to correctly format where that equipment is received from buying a Night Revels item

Example Usage
{{NightRevelsPurchase|40||10|5}}Joe Candymaker: Purchase using the Consumables option during Night Revels. Cost:
{{NightRevelsPurchase|60|10|10||5||50|True}}Joe Candymaker: Purchase 50 using the Wares option during Night Revels. Cost:

Usage[edit]

{{NightRevelsPurchase|(Choco Count)|(Caramel Count)|(Almond Count)|(Cinn Count)|(Apple Count)|(Scale Count)|(Items)|(Wares)}}

Parameter Documentation
Choco CountNumber of Darkest Chocolate
Caramel CountNumber of Shadowy Caramel
Almond CountNumber of Spooky Almonds
Cinn CountNumber of Sinister Cinnamon
Apple CountNumber of Black Apples
Scale CountNumber of Spectral Dragon Scales
ItemsThe number of items received, it not specified it is 1
WaresIs this in the Wares section, leave blank for consumables

Template

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



Joe Candymaker: Purchase using the Consumables option during Night Revels.