Difference between revisions of "Template:ItemUpgrade"

From DDO Compendium
Line 26: Line 26:
|parameter5description = Custom link to use instead of crafting method for other options.  Use [[Template:PageLink]] if you want a link.
|parameter5description = Custom link to use instead of crafting method for other options.  Use [[Template:PageLink]] if you want a link.
}}
}}
</noinclude><onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:ItemUpgrade||{{#if: {{{1|}}}|[[Category:{{{1}}} Loot]]}}}}
</noinclude><onlyinclude>
<table class="table table-striped table-condensed table-bordered"><tr><td>{{#if: {{{5|}}}|{{{5}}}|{{RenderLink|{{{1}}}}}}}</td></tr>
<table class="table table-striped table-condensed table-bordered"><tr><td>{{#if: {{{5|}}}|{{{5}}}|{{RenderLink|{{{1}}}}}}}</td></tr>
{{#if: {{{2|}}}|<tr><td>{{#switch: {{lc:{{{3|}}}}}
{{#if: {{{2|}}}|<tr><td>{{#switch: {{lc:{{{3|}}}}}
|from='''Upgraded From'''
|from='''Upgraded From'''{{#ifeq: {{FULLPAGENAME}} |Template:ItemUpgrade||{{#if: {{{1|}}}|[[Category:{{{1}}} Loot]]}}}}
|#default='''New Item'''}}<br>{{RenderLink|{{{2}}}}}|{{#switch: {{lc:{{{3}}}}}
|#default='''New Item'''}}<br>{{RenderLink|{{{2}}}}}|{{#switch: {{lc:{{{3}}}}}
|created=<tr><td>'''Created'''</td></tr>
|created=<tr><td>'''Created'''</td></tr>
}}}}</td></tr>{{#if: {{{4|}}}|<tr><td>'''Ingredients:'''<br>
}}}}</td></tr>{{#if: {{{4|}}}|<tr><td>'''Ingredients:'''<br>
{{{4}}}</td></tr>}}</table></onlyinclude>
{{{4}}}</td></tr>}}</table></onlyinclude>

Revision as of 02:33, 21 November 2021

ItemUpgrade[edit]

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

Example Usage
{{ItemUpgrade|Epic Crafting|Epic Sword of Shadows}}
Epic Crafting
New Item
Epic Sword of Shadows
{{ItemUpgrade|Epic Crafting|Sword of Shadows|from}}
Epic Crafting
Upgraded From
Sword of Shadows
{{ItemUpgrade|Battle-Scarred|Katra's Razor Wit|| * Katra's Wit * Mark of Bal Molesh * Mark of Sheshka}}
Battle-Scarred
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}}}]]