Difference between revisions of "Template:RavenloftPurchase"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 9: | Line 9: | ||
|example3 = <nowiki>{{RavenloftPurchase|Ravenloft}}</nowiki> | |example3 = <nowiki>{{RavenloftPurchase|Ravenloft}}</nowiki> | ||
|example3output = {{RavenloftPurchase|Ravenloft}} | |example3output = {{RavenloftPurchase|Ravenloft}} | ||
|example4 = <nowiki>{{RavenloftPurchase| | |example4 = <nowiki>{{RavenloftPurchase|talisman|80|True}}</nowiki> | ||
|example4output = {{RavenloftPurchase| | |example4output = {{RavenloftPurchase|talisman|80|True}} | ||
|parameter1name = Type | |parameter1name = Type | ||
|parameter1description = Which collectible is used: | |parameter1description = Which collectible is used: | ||
Line 20: | Line 20: | ||
|parameter2name = Cost | |parameter2name = Cost | ||
|parameter2description = How many collectibles are needed, only used for Totem and Talisman | |parameter2description = How many collectibles are needed, only used for Totem and Talisman | ||
|parameter3name = BTA | |||
|parameter3description = Is this one BTA instead of BTC | |||
}} | }} | ||
</noinclude><onlyinclude>{{#switch: {{lc: {{{1|}}}}} | </noinclude><onlyinclude>{{#if: {{{3|}}}||{{#dplvar:set|bound|True}}}}{{#switch: {{lc: {{{1|}}}}} | ||
|totem={{#dplvar:set|cat|Vistani Totem Items}}{{#dplvar:set|vendorname|Osah Lukresh}}{{#dplvar:set|collectname|Vistani Totem | |totem={{#dplvar:set|cat|Vistani Totem Items}}{{#dplvar:set|vendorname|Osah Lukresh}}{{#dplvar:set|collectname|Vistani Totem}} | ||
|talisman ={{#dplvar:set|cat|Vistani Talisman Items}}{{#dplvar:set|vendorname|Raam Lukresh}}{{#dplvar:set|collectname|Vistani Talisman}} | |talisman ={{#dplvar:set|cat|Vistani Talisman Items}}{{#dplvar:set|vendorname|Raam Lukresh}}{{#dplvar:set|collectname|Vistani Talisman}} | ||
|ravenloft={{#dplvar:set|cat|Ravenloft Items}}{{#dplvar:set|vendorname|Tobar the Smith}} | |ravenloft={{#dplvar:set|cat|Ravenloft Items}}{{#dplvar:set|vendorname|Tobar the Smith}} | ||
}}{{#switch: {{lc:{{#dplvar:vendorformat}}}} | }}{{#switch: {{lc:{{#dplvar:vendorformat}}}} | ||
|table=<tr><td>[[{{#dplvar:vendorname}}]]</td><td>[[Blue Water Inn]]</td><td>1</td><td>{{VendorIngredientList|{{#dplvar:collectname}}|{{{2}}}}}</td><td>[[The Land of Barovia]]</td></tr> | |table=<tr><td>[[{{#dplvar:vendorname}}]]</td><td>[[Blue Water Inn]]</td><td>1</td><td>{{VendorIngredientList|{{#dplvar:collectname}}|{{{2}}}}}</td><td>[[The Land of Barovia]]</td></tr> | ||
|#default=[[{{#dplvar:vendorname}}]]: {{#if: {{{2|}}}|Purchase for {{formatnum:{{{2}}}}} [[{{#dplvar:collectname}}|{{#dplvar:collectname}}s]].|Free choice once per life.}} {{#if: {{#dplvar:bound}}|These versions are {{ItemBinding|btc}}.}}}}{{#ifeq: {{FULLPAGENAME}} |Template:RavenloftPurchase||[[Category:{{#dplvar:cat}}]]}}{{#dplvar:set|cat|}}{{#dplvar:set|vendorname|}}{{#dplvar:set|collectname|}}{{#dplvar:set|bound|}}</onlyinclude> | |#default=[[{{#dplvar:vendorname}}]]: {{#if: {{{2|}}}|Purchase for {{formatnum:{{{2}}}}} [[{{#dplvar:collectname}}|{{#dplvar:collectname}}s]].|Free choice once per life.}} {{#if: {{#dplvar:bound}}|These versions are {{ItemBinding|btc}}.}}}}{{#ifeq: {{FULLPAGENAME}} |Template:RavenloftPurchase||[[Category:{{#dplvar:cat}}]]}}{{#dplvar:set|cat|}}{{#dplvar:set|vendorname|}}{{#dplvar:set|collectname|}}{{#dplvar:set|bound|}}</onlyinclude> |
Revision as of 14:44, 29 March 2022
RavenloftPurchase[edit]
This template is used on equipment to correctly format where that equipment is received from buying an item with ravenloft collectibles.
Example Usage | |
{{RavenloftPurchase|totem|60}} | Osah Lukresh: Purchase for 60 Vistani Totems. These versions are Bound to Character. |
{{RavenloftPurchase|talisman|80}} | Raam Lukresh: Purchase for 80 Vistani Talismans. These versions are Bound to Character. |
{{RavenloftPurchase|Ravenloft}} | Tobar the Smith: Free choice once per life. These versions are Bound to Character. |
{{RavenloftPurchase|talisman|80|True}} | Raam Lukresh: Purchase for 80 Vistani Talismans. |
Usage[edit]
{{RavenloftPurchase|(Type)|(Cost)|(BTA)}}
Parameter Documentation | |
Type | Which collectible is used: Possible Values:
|
Cost | How many collectibles are needed, only used for Totem and Talisman |
BTA | Is this one BTA instead of BTC |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[]]: Free choice once per life. These versions are Bound to Character.