Difference between revisions of "Template:RavenloftPurchase"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>{{TemplateDocumentation |name = RavenloftPurchase |description = This template is used on equipment to correctly format where that equipment is received from buying an item with ravenloft collectibles. |category = DropLocation Templates |example1 = <nowiki>{{RavenloftPurchase|totem|60}}</nowiki> |example1output = {{RavenloftPurchase|totem|60}} |example2 = <nowiki>{{RavenloftPurchase|talisman|80}}</nowiki> |example2output = {{RavenloftPurchase|talisman|80}} |pa...") |
MNDeveloper (talk | contribs) |
||
Line 7: | Line 7: | ||
|example2 = <nowiki>{{RavenloftPurchase|talisman|80}}</nowiki> | |example2 = <nowiki>{{RavenloftPurchase|talisman|80}}</nowiki> | ||
|example2output = {{RavenloftPurchase|talisman|80}} | |example2output = {{RavenloftPurchase|talisman|80}} | ||
|example3 = <nowiki>{{RavenloftPurchase|Ravenloft}}</nowiki> | |||
|example3output = {{RavenloftPurchase|Ravenloft}} | |||
|example4 = <nowiki>{{RavenloftPurchase|Sentient}}</nowiki> | |||
|example4output = {{RavenloftPurchase|Sentient}} | |||
|parameter1name = Type | |parameter1name = Type | ||
|parameter1description = Which collectible is used: | |parameter1description = Which collectible is used: | ||
|parameter1values= | |parameter1values= | ||
* Totem | * Totem - using Vistani Totems | ||
* Talisman | * Talisman - using Vistani Talismans | ||
* Ravenloft - Free weapon once per life | |||
* Sentient - Free sentient jewel once per life | |||
|parameter2name = Cost | |parameter2name = Cost | ||
|parameter2description = How many collectibles are needed | |parameter2description = How many collectibles are needed, only used for Totem and Talisman | ||
}} | }} | ||
</noinclude><onlyinclude>{{#switch: {{lc: {{{1|}}}}} | </noinclude><onlyinclude>{{#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}}{{#dplvar:set|bound|True}} | ||
|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}}{{#dplvar:set|bound|True}} | ||
|ravenloft={{#dplvar:set|cat|Ravenloft Items}}{{#dplvar:set|vendorname|Tobar the Smith}} | |||
|sentient={{#dplvar:set|cat|Ravenloft Items}}{{#dplvar:set|vendorname|Tobar the Smith}}{{#dplvar:set|bound|True}} | |||
}}{{#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}}]]: Purchase for {{formatnum:{{{2}}}}} [[{{#dplvar:collectname}}|{{#dplvar:collectname}}s]]. | |#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 13: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. |
{{RavenloftPurchase|Sentient}} | Tobar the Smith: Free choice once per life. These versions are Bound to Character. |
Usage[edit]
{{RavenloftPurchase|(Type)|(Cost)}}
Parameter Documentation | |
Type | Which collectible is used: Possible Values:
|
Cost | How many collectibles are needed, only used for Totem and Talisman |
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.