Difference between revisions of "Template:ItemUpgrade"

From DDO Compendium
 
(22 intermediate revisions by the same user not shown)
Line 3: Line 3:
|description = This template is used on equipment to correctly format the upgrade information about an item.
|description = This template is used on equipment to correctly format the upgrade information about an item.
|category = Item Templates
|category = Item Templates
|example1 = <nowiki>{{ItemUpgrade|Epic Crafting|Epic Sword of Shadows}}</nowiki>
|example1 = <nowiki>{{ItemUpgrade|Altar of Epic Rituals|Epic Sword of Shadow}}</nowiki>
|example1output = {{ItemUpgrade|Epic Crafting|Epic Sword of Shadows}}
|example1output = {{ItemUpgrade|Altar of Epic Rituals|Epic Sword of Shadow}}
|example2 = <nowiki>{{ItemUpgrade|Epic Crafting|Sword of Shadows|from}}</nowiki>
|example2 = <nowiki>{{ItemUpgrade|Altar of Epic Rituals|Sword of Shadow|from}}</nowiki>
|example2output = {{ItemUpgrade|Epic Crafting|Sword of Shadows|from}}
|example2output = {{ItemUpgrade|Altar of Epic Rituals|Sword of Shadow|from}}
|example3=<nowiki>{{ItemUpgrade|Battle-Scarred|Katra's Razor Wit||
|example3=<nowiki>{{ItemUpgrade|Battle-Scarred|Katra's Razor Wit||
* Katra's Wit
* Katra's Wit
* Mark of Bal Molesh
* Mark of Bal Molesh
* Mark of Sheshka}}</nowiki>
* Mark of Sheshka}}</nowiki>
|example3output={{ItemUpgrade|Battle-Scarred|Katra's Razor Wit||
|example3output={{ItemUpgrade|Cauldron of Sora Katra|Katra's Razor Wit||
* Katra's Wit
* Katra's Wit
* Mark of Bal Molesh
* Mark of Bal Molesh
Line 23: Line 23:
|parameter4name = Ingredients
|parameter4name = Ingredients
|parameter4description = Bulleted list of ingredients needed for crafting
|parameter4description = Bulleted list of ingredients needed for crafting
|parameter5name = Custom Linking
|parameter5description = Custom link to use instead of crafting method for other options.  Use [[Template:PageLink]] if you want a link.
}}
}}
</noinclude>
</noinclude><onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:ItemUpgrade||[[Category:{{{1}}} Loot]]}}[[{{{1}}}]] {{#if: {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|to}} [[{{{2}}}]]}}<br>{{#if: {{{4|}}}|''Ingredients:''
|table=<tr><td>{{RenderLink|{{{1|}}}}}</td><td>{{#ifeq: {{lc:{{{3|}}}}}|from||{{IconImage|RightArrow}}}}</td><td>{{RenderLink|{{{2}}}}}</td><td style="white-space: nowrap;">{{{4|}}}</td></tr>
{{{4}}}}}</onlyinclude>
 
|#default=<table class="table table-striped table-condensed table-bordered">{{#ifeq: {{lc:{{{3|}}}}}|from||<tr><td>{{#if: {{{5|}}}|{{{5}}}|{{RenderLink|{{{1}}}}}}}</td></tr>}}
{{#if: {{{2|}}}|<tr><td>{{#switch: {{lc:{{{3|}}}}}
|from='''Upgraded From'''{{#ifeq: {{FULLPAGENAME}} |Template:ItemUpgrade||{{#if: {{{1|}}}|[[Category:{{{1}}} Loot]]}}[[Category: Upgrade Items with From (Temp)]]}}
|#default='''New Item'''}}<br>{{RenderLink|{{{2}}}}}|{{#switch: {{lc:{{{3}}}}}
|created={{#ifeq: {{FULLPAGENAME}} |Template:ItemUpgrade||[[Category: Upgrade Items with Create (Temp)]]}}<tr><td>'''Created'''</td></tr>
}}}}</td></tr>{{#if: {{{4|}}}|<tr><td>'''Ingredients:'''<br>
{{{4}}}</td></tr>}}</table>
}}</onlyinclude>

Latest revision as of 01:27, 23 September 2022

ItemUpgrade[edit]

This template is used on equipment to correctly format the upgrade information about an item.

Example Usage
{{ItemUpgrade|Altar of Epic Rituals|Epic Sword of Shadow}}
Altar of Epic Rituals
New Item
Epic Sword of Shadow
{{ItemUpgrade|Altar of Epic Rituals|Sword of Shadow|from}}
Upgraded From
Sword of Shadow
{{ItemUpgrade|Battle-Scarred|Katra's Razor Wit|| * Katra's Wit * Mark of Bal Molesh * Mark of Sheshka}}
Cauldron of Sora Katra
New Item
Katra's Razor Wit
Ingredients:
  • Katra's Wit
  • Mark of Bal Molesh
  • Mark of Sheshka

Usage[edit]

{{ItemUpgrade|(Crafting Method)|(Upgraded Item Name)|(Direction)|(Ingredients)|(Custom Linking)}}

Parameter Documentation
Crafting MethodThis is the method used to do the upgrade
Upgraded Item NameThis is the name of the item after it is upgraded
DirectionThis is the direction in the crafting. If this item is in the middle, it should have a from and a to. to is the default if not specified.
IngredientsBulleted list of ingredients needed for crafting
Custom LinkingCustom link to use instead of crafting method for other options. Use Template:PageLink if you want a link.

Template

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


[[{{{1}}}]]