Difference between revisions of "Template:ItemMultipleVersion"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
</pre> | </pre> | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = | |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| | | 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 | <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 120: | Line 119: | ||
|noresultsheader= | |noresultsheader= | ||
|include={Item¦MultipleVerItemCombineDPL} | |include={Item¦MultipleVerItemCombineDPL} | ||
}}}}{{#ifeq: {{#dplvar:dpltype}}| | }}}}{{#ifeq: {{#dplvar:dpltype}}|spellcaster|{{#DPL: | ||
|titlematch={{{itemname}}} (% Version) | |titlematch={{{itemname}}} (% Version) | ||
|uses=Template: | |uses=Template:SpellCaster | ||
|mode=userformat | |mode=userformat | ||
|ordermethod=title | |ordermethod=title | ||
|format=,<tr>,</tr>, | |format=,<tr>,</tr>, | ||
|noresultsheader= | |noresultsheader= | ||
|include={ | |include={SpellCaster¦MultipleVerItemCombineDPL} | ||
}}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL: | }}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL: | ||
|titlematch={{{itemname}}} (% Version) | |titlematch={{{itemname}}} (% Version) | ||
Line 152: | Line 151: | ||
|noresultsheader= | |noresultsheader= | ||
|include={RuneArm¦MultipleVerItemCombineDPL} | |include={RuneArm¦MultipleVerItemCombineDPL} | ||
}}}}</table> | }}}}</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 | |
itemname | This is the name of the item that has multiple versions |
type | This is the type of the item |
binding | This is the binding Possible Values:
|
droplocation | This is the drop location for the item, use Template:DropLocation, Template:ItemIconicReceived, Template:StorePurchase, Template:CollectablePurchase, Template:RaidRunePurchase |
icon | The icon to use if it isn't based on the item name |
image | Image 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.
|
|
Details | Enchantments |
---|