Difference between revisions of "Template:ItemMultipleML"

From DDO Compendium
 
(44 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|itemname =
|itemname =
|type =
|type =
|binding =  
|binding =
|droplocation =  
|droplocation =
|icon=
|icon=
|image=
}}
}}
</pre>
</pre>
Line 30: Line 31:
|parameter5name = icon
|parameter5name = icon
|parameter5description = The icon to use if it isn't based on the item name
|parameter5description = The icon to use if it isn't based on the item name
|parameter6name = image
|parameter6description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension.
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#dplvar:set|displaystyle|TitleOnly}}{{#switch: {{lc:{{{type}}}}}
<onlyinclude>{{#switch: {{lc:{{{type}}}}}
| goggles | helmet | cloak = {{#dplvar:set|dpltype|item}}{{#dplvar:set|visible|true}}
| goggles | helmet | cloak = {{#dplvar:set|dpltype|item}}{{#dplvar:set|visible|true}}
| necklace | trinket | belt | ring | gloves | boots | bracers = {{#dplvar:set|dpltype|item}}
| necklace | trinket | belt | ring | gloves | boots | bracers = {{#dplvar:set|dpltype|item}}
| light armor | medium armor | heavy armor | docent | robe | cloth = {{#dplvar:set|dpltype|armor}}{{#dplvar:set|visible|true}}
| light armor | medium armor | heavy armor | docent | robe | outfit = {{#dplvar:set|dpltype|armor}}{{#dplvar:set|visible|true}}
| 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}}
| runearm = {{#dplvar:set|dpltype|runearm}}{{#dplvar:set|visible|true}}
| rune arm = {{#dplvar:set|dpltype|rune arm}}{{#dplvar:set|visible|true}}
| wand = {{#dplvar:set|dpltype|wand}}{{#dplvar:set|visible|true}}
| wand = {{#dplvar:set|dpltype|wand}}{{#dplvar:set|visible|true}}
| quiver = {{#dplvar:set|dpltype|quiver}}
| quiver = {{#dplvar:set|dpltype|quiver}}
| handwraps = {{#dplvar:set|dpltype|weapon}}
|#default = {{#dplvar:set|dpltype|weapon}}{{#dplvar:set|visible|true}}
|#default = {{#dplvar:set|dpltype|weapon}}{{#dplvar:set|visible|true}}
}}
}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-striped">
<table class="item-table background-color">
<tr>
<td class="item-info-side">
<table class="background-color fullwidth">
<tr>
<tr>
<td>
<td>
<table class="background-color fullwidth">
<table class="table table-condensed">
<tr>
<tr>
<td class="icon">
<td class="col-sm-1">{{IconImage|{{{itemname}}}|{{{icon|}}}}}</td>
<!-- Icon Image -->
<td class="col-sm-11 center"><span class="big">{{{itemname}}}</span>[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]</td>
{{IconImage|{{{itemname}}}|{{{icon|}}}}}
</td>
<td class="title">
'''{{{itemname}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]
</td>
</tr>
</table>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td colspan="2" class="col-sm-12">{{ItemBinding|{{{binding}}}}}</td>
{{ItemBinding|{{{binding}}}}}<br>
</td>
</tr>
</tr>
</table>
</table>
</td>
<td class="item-image-side" style="vertical-align:top">
<table class="item-image-table background-color fullwidth">
{{#switch: {{#dplvar:visible}}
| true = <tr><td class="item-image">[[File:{{{itemname}}}.png|300px|]]</td></tr>|}}
<tr>
<td class="extra-details">
{{#if: {{{droplocation|}}} | '''Drop Location:'''&nbsp;
{{{droplocation}}}}}
</td>
</td>
</tr>
</tr>
</table>
</table>
</td>
</div>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<hr>
</div>
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
{{#switch: {{#dplvar:visible}}
| true =
<tr style="background: rgb(0,0,0);">
<td class="center">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|center|300px|]]</td>
</tr>
|
|#default={{#if: {{{image|}}}|
<tr style="background: rgb(0,0,0);">
<td class="center">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|center|300px|]]</td>
</tr>
</tr>
}}
}}
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
&nbsp;|{{#ifeq: {{FULLPAGENAME}} |Template:ItemMultipleML||[[Category:Items without a Drop Location]]}}}}
</td></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:
</div>
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
</div>
<hr>
<div class="row">
<div class="col-sm-12">
<table class="table table-striped table-bordered table-condensed">
<tr>
<th>Minimum Level</th>
<th>Enchantments</th>
<th>Augments</th>
<th>Item Sets</th>
</tr>
{{#ifeq: {{#dplvar:dpltype}}|weapon|{{#DPL:
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Weapon
|uses=Template:Weapon
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Weapon¦MultipleItemCombineDPL}
|include={Weapon¦MultipleItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|armor|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|armor|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Armor
|uses=Template:Armor
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Armor¦MultipleItemCombineDPL}
|include={Armor¦MultipleItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|shield|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|shield|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Shield
|uses=Template:Shield
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Shield¦MultipleItemCombineDPL}
|include={Shield¦MultipleItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|item|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|item|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Item
|uses=Template:Item
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Item¦MultipleItemCombineDPL}
|include={Item¦MultipleItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|wand|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|wand|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Wand
|uses=Template:Wand
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Wand¦MultipleItemCombineDPL}
|include={Wand¦MultipleItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:RuneArm
|uses=Template:RuneArm
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
|include={RuneArm¦MultipleItemCombineDPL}
}}}}{{#ifeq: {{#dplvar:dpltype}}|quiver|{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|quiver|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{itemname}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Quiver
|uses=Template:Quiver
|mode=userformat
|mode=userformat
|ordermethod=title
|format=,
|format=,<tr>,</tr>,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Quiver¦MultipleItemCombineDPL}
|include={Quiver¦MultipleItemCombineDPL}
}}}}</table></onlyinclude>
}}}}{{#ifeq: {{#dplvar:dpltype}}|rune arm|{{#DPL:
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:RuneArm
|mode=userformat
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
}}}}
</table></div></div></onlyinclude>

Latest revision as of 12:27, 8 October 2021

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

ItemMultipleML[edit]

This template is used to generate a table of items that have the same name, and then would be different ML.

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|]]

 
Minimum Level Enchantments Augments Item Sets