Difference between revisions of "Template:CollectablePurchase"

From DDO Compendium
Line 3: Line 3:
|description = This template is used on equipment to correctly format where that equipment is received from buying from a collector using a collectable.
|description = This template is used on equipment to correctly format where that equipment is received from buying from a collector using a collectable.
|category = DropLocation Templates
|category = DropLocation Templates
|example1 = <nowiki>{{CollectablePurchase|Remnant|10000||True}}</nowiki>
|example1 = <nowiki>{{CollectablePurchase|Scarab||Dark}}</nowiki>
|example1output = {{CollectablePurchase|Remnant|10000||True}}
|example1output = {{CollectablePurchase|Scarab||Dark}}
|example2 = <nowiki>{{CollectablePurchase|Scarab||Dark}}</nowiki>
|example2 = <nowiki>{{CollectablePurchase|Threads|500}}</nowiki>
|example2output = {{CollectablePurchase|Scarab||Dark}}
|example2output = {{CollectablePurchase|Threads|500|* {{Ingredient|Treachery/Twilight's Cloak: Dexterity}}}}
|example3 = <nowiki>{{CollectablePurchase|Threads|500}}</nowiki>
|example3output = {{CollectablePurchase|Threads|500|* {{Ingredient|Treachery/Twilight's Cloak: Dexterity}}}}
|parameter1name = Which Collector
|parameter1name = Which Collector
|parameter1description = This is the store that it is bought from
|parameter1description = This is the store that it is bought from
Line 77: Line 75:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| remnant | remnant upgrade = {{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Uses Old Collectable Purchase Tempate]]}}
}}{{#switch: {{lc:{{#dplvar:vendorformat}}}}
|table={{#switch: {{lc:{{{1}}}}}
|table={{#switch: {{lc:{{{1}}}}}
| remnant={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Mysterious Remnant Items]]}}<tr><td>{{#if: {{{4|}}}|[[Champion Hunter]] Week|[[Monster Hunter]]}}</td><td>[[Hall of Heroes (Eberron)]]</td><td>1</td><td>{{VendorIngredientList|Mysterious Remnant|{{formatnum:{{{2}}}}}}}</td><td></td></tr>
| remnant upgrade={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Mysterious Remnant Items]]}}
<tr><td>{{#if: {{{4|}}}|[[Champion Hunter]] Week|[[Monster Hunter]]}} (Upgrade)</td><td>[[Hall of Heroes (Eberron)]]</td><td>1</td><td>{{VendorIngredientList|Mysterious Remnant|{{formatnum:{{{2}}}}}}}</td><td></td></tr>
| druids ={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Commendation: Druids of the King's Forest Items]]}}<tr><td>[[Arcton Greenwort]]</td><td>[[Eveningstar]]</td><td>1</td><td>{{VendorIngredientList|Commendation: Druids of the King's Forest|{{{2}}}}}</td><td></td></tr>
| druids ={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Commendation: Druids of the King's Forest Items]]}}<tr><td>[[Arcton Greenwort]]</td><td>[[Eveningstar]]</td><td>1</td><td>{{VendorIngredientList|Commendation: Druids of the King's Forest|{{{2}}}}}</td><td></td></tr>
| scarab ={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Necropolis Reward Items]]}}<tr><td>[[Squire Rale]]</td><td>[[The Necropolis]]</td><td>1</td><td>{{VendorIngredientList|{{{3}}} Scarab Powder}}</td><td></td></tr>
| scarab ={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Necropolis Reward Items]]}}<tr><td>[[Squire Rale]]</td><td>[[The Necropolis]]</td><td>1</td><td>{{VendorIngredientList|{{{3}}} Scarab Powder}}</td><td></td></tr>
Line 90: Line 87:
|#default={{#switch: {{lc:{{{1}}}}}
|#default={{#switch: {{lc:{{{1}}}}}
| mimic = {{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Mimic Hunt Items]]}}[[Glynereth]]: Purchase for {{Ingredient|Mimic Token|{{{2}}}}}. This is only available during the [[Mimic Hunt]].
| mimic = {{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Mimic Hunt Items]]}}[[Glynereth]]: Purchase for {{Ingredient|Mimic Token|{{{2}}}}}. This is only available during the [[Mimic Hunt]].
| remnant={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Mysterious Remnant Items]]}}[[Monster Hunter]]: Purchase for {{formatnum:{{{2}}}}} Mysterious Remnants{{#if: {{{4|}}}|. This is only available during [[Champion Hunter Week]].}}
| remnant upgrade={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Mysterious Remnant Items]]}}[[Monster Hunter]]: Upgrade from [[{{{3}}}]] for {{formatnum:{{{2}}}}} Mysterious Remnants{{#if: {{{4|}}}|. This is only available during [[Champion Hunter Week]].}}
| totem={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Vistani Totem Items]]}}[[Osah Lukresh]]: Purchase for {{formatnum:{{{2}}}}} [[Vistani Totem|Vistani Totems]].  These versions are {{ItemBinding|btc}}.
| totem={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Vistani Totem Items]]}}[[Osah Lukresh]]: Purchase for {{formatnum:{{{2}}}}} [[Vistani Totem|Vistani Totems]].  These versions are {{ItemBinding|btc}}.
| talisman={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Vistani Talisman Items]]}}[[Raam Lukresh]]: Purchase for {{formatnum:{{{2}}}}} [[Vistani Talisman|Vistani Talismans]]. These versions are {{ItemBinding|btc}}.
| talisman={{#ifeq: {{FULLPAGENAME}} |Template:CollectablePurchase||[[Category:Vistani Talisman Items]]}}[[Raam Lukresh]]: Purchase for {{formatnum:{{{2}}}}} [[Vistani Talisman|Vistani Talismans]]. These versions are {{ItemBinding|btc}}.

Revision as of 15:54, 28 March 2022

CollectablePurchase[edit]

This template is used on equipment to correctly format where that equipment is received from buying from a collector using a collectable.

Example Usage
{{CollectablePurchase|Scarab||Dark}}Squire Rale: Purchase for Ingredient Scarab Icon.png 1x Dark Scarab Powder
{{CollectablePurchase|Threads|500}}Purchase by double-clicking on the Threads in your inventory. Cost:

Usage[edit]

{{CollectablePurchase|(Which Collector)|(Cost)|(Collector Option)|(Limited Time)}}

Parameter Documentation
Which CollectorThis is the store that it is bought from
Possible Values:
  • Remnant
  • Remnant Upgrade
  • Totem
  • Talisman
  • Villagers
  • Clerics
  • Druids
  • PDK
  • Wizards
  • Scarab - Requires collectable
  • Threads
  • Underdark
  • Adamantine Ore
  • Elven Relics
  • Giant Relics
  • Dragon Relics
  • Anniversary
  • Blue Dragon Scales
  • White Dragon Scales
  • Black Dragon Scales
  • Dragontouched
  • Draconic Runes
  • Outsider
  • Shred of Tapestry
  • Magma Forge
  • Night Revels
  • Ingot - Borderlands
  • Quaal - Borderlands Mounts
  • Crystal Cove Hat Box
  • Crystal Cove Gear
  • Old Crystal Cove
  • Ferrocrystal
  • Legendary Ferrocrystal
  • Cadence
  • Snowpeak
  • Mimic
  • Soulforge
  • Chit
  • Legendary Chit
CostThis is the number of collectables the item costs
Possible Values:
Collector OptionThis is a parameter specific to the collector
Possible Values:
  • For Remnant Upgrade - Item it was upgrade from
  • For Scarab - Which scarab it is
  • For Elven/Giant/Dragon - Ancient or Restored
  • For Magma Forge - Armor or Weapon
  • For Night Revels - Wares or Consumables
  • Ingot - Which Ingot it is (Silver, Arcane, Ethereal, Epic Silver, Epic Arcane, Epic Ethereal)
  • Quaal - Mount or Upgrade
  • Anniversary - Which Anniversary
  • Ravenloft - True if a Sentient Jewel
Limited TimeThis is set if the item is only in the store for a limited time.

Template

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