Difference between revisions of "Template:ItemMultipleVersion"

From DDO Compendium
 
(8 intermediate revisions by the same user not shown)
Line 10: Line 10:
</pre>
</pre>
{{TemplateDocumentation
{{TemplateDocumentation
|name = ItemMultipleML
|name =ItemMultipleVersion
|description = This template is used to generate a table of items that have the same name, but are different based on the character retrieving them
|description = This template is used to generate a table of items that have the same name, but are different based on the character retrieving them
|category = Item Templates
|category = Item Templates
Line 41: Line 41:
| small shield | medium shield | large shield | orb | tower shield | buckler= {{#dplvar:set|dpltype|shield}}{{#dplvar:set|visible|true}}
| small shield | medium shield | large shield | orb | tower shield | buckler= {{#dplvar:set|dpltype|shield}}{{#dplvar:set|visible|true}}
| rune arm = {{#dplvar:set|dpltype|rune arm}}{{#dplvar:set|visible|true}}
| rune arm = {{#dplvar:set|dpltype|rune arm}}{{#dplvar:set|visible|true}}
| wand = {{#dplvar:set|dpltype|wand}}{{#dplvar:set|visible|true}}
| potion | wand = {{#dplvar:set|dpltype|spellcaster}}{{#dplvar:set|visible|true}}
| quiver = {{#dplvar:set|dpltype|quiver}}
| quiver = {{#dplvar:set|dpltype|quiver}}
| handwraps = {{#dplvar:set|dpltype|weapon}}
| handwraps = {{#dplvar:set|dpltype|weapon}}
|#default = {{#dplvar:set|dpltype|weapon}}{{#dplvar:set|visible|true}}
|#default = {{#dplvar:set|dpltype|weapon}}{{#dplvar:set|visible|true}}
}}
}}<table class="item-table background-color">
<table class="item-table background-color">
<tr>
<tr>
<td class="item-info-side">
<td class="item-info-side">
Line 75: Line 74:
<table class="item-image-table background-color fullwidth">
<table class="item-image-table background-color fullwidth">
{{#switch: {{#dplvar:visible}}  
{{#switch: {{#dplvar:visible}}  
| true = <tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|300px|]]</td></tr>|
| true = <tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|center|300px|]]</td></tr>|
|#default={{#if: {{{image|}}}|<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|300px|]]</td></tr>}}
|#default={{#if: {{{image|}}}|<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|center|300px|]]</td></tr>}}
}}
}}
<tr>
<tr>
Line 88: Line 87:
</tr>
</tr>
</table>
</table>
<table class="compendiumtable compendiumtablenonsortable fullwidth"><tr class="header"><th style="white-space: nowrap;">Minimum Level</th><th>Enchantments</th></tr>{{#ifeq: {{#dplvar:dpltype}}|weapon|{{#DPL:
<table class="compendiumtable compendiumtablenonsortable fullwidth"><tr class="header"><th style="white-space: nowrap;">Details</th><th>Enchantments</th></tr>{{#ifeq: {{#dplvar:dpltype}}|weapon|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
|uses=Template:Weapon
|uses=Template:Weapon
Line 95: Line 94:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Weapon¦MultipleItemCombineDPL}
|include={Weapon¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|armor|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|armor|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
Line 103: Line 102:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Armor¦MultipleItemCombineDPL}
|include={Armor¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|shield|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|shield|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
Line 111: Line 110:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Shield¦MultipleItemCombineDPL}
|include={Shield¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|item|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|item|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
Line 119: Line 118:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Item¦MultipleItemCombineDPL}
|include={Item¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|wand|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|spellcaster|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
|uses=Template:Wand
|uses=Template:SpellCaster
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Wand¦MultipleItemCombineDPL}
|include={SpellCaster¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
Line 135: Line 134:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
|include={RuneArm¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|quiver|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|quiver|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
Line 143: Line 142:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Quiver¦MultipleItemCombineDPL}
|include={Quiver¦MultipleVerItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|rune arm|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|rune arm|{{#DPL:
|titlematch={{{itemname}}} (% Version)
|titlematch={{{itemname}}} (% Version)
Line 151: Line 150:
|format=,<tr>,</tr>,
|format=,<tr>,</tr>,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
|include={RuneArm¦MultipleVerItemCombineDPL}
}}}}</table>{{#ifeq: {{FULLPAGENAME}} |Template:ItemMultipleML||[[Category:Loot]]}}</onlyinclude>
}}}}</table></onlyinclude>

Latest revision as of 19:57, 13 October 2020

{{Template:ItemMultipleVersion
|itemname =
|type =
|binding = 
|droplocation = 
|icon=
|image=
}}

ItemMultipleVersion[edit]

This template is used to generate a table of items that have the same name, but are different based on the character retrieving them

Usage[edit]

Parameter Documentation
itemnameThis is the name of the item that has multiple versions
typeThis is the type of the item
bindingThis is the binding
Possible Values:
  • btc for Bound to Character
  • bta for Bound to Account
  • btcoe for Bound to Character on Equip
  • btcoa for Bound to Character on Acquire
  • btaoe for Bound to Account on Equip
  • btaoa for Bound to Account on Acquire
droplocationThis is the drop location for the item, use Template:DropLocation, Template:ItemIconicReceived, Template:StorePurchase, Template:CollectablePurchase, Template:RaidRunePurchase
iconThe icon to use if it isn't based on the item name
imageImage file, use if the image doesn't change between heroic and epic types. Do not include extension.

Template

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


[[File:{{{itemname}}}_Icon.png|link=|36px|x36px|]]

{{{itemname}}}
[[:Category:{{{type}}}|{{{type}}}]]

Unbound

[[File:{{{itemname}}}.png|center|300px|]]
 
DetailsEnchantments