Difference between revisions of "Template:ItemMultipleML"

From DDO Compendium
 
(69 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{TemplateDocumentation
<noinclude><pre>
{{Template:ItemMultipleML
|itemname =
|type =
|binding =
|droplocation =
|icon=
|image=
}}
</pre>
{{TemplateDocumentation
|name = ItemMultipleML
|name = ItemMultipleML
|description = This template is used to generate a table of items that have the same name, and then would be different ML.
|description = This template is used to generate a table of items that have the same name, and then would be different ML.
|category = Item Templates
|category = Item Templates
|parameter1name = Item Name
|usesnamedparameters=true
|parameter1name = itemname
|parameter1description = This is the name of the item that has multiple versions
|parameter1description = This is the name of the item that has multiple versions
|parameter2name = Drop Location
|parameter2name = type
|parameter2description = This is the drop location for the item, use [[Template:DropLocation]]
|parameter2description = This is the type of the item
|parameter3name = Type
|parameter3name = binding
|parameter3description = This is the type of the item
|parameter3description = This is the binding
|parameter4name = binding
|parameter3values=
|parameter4description = This is the binding
|parameter4values=
* btc for Bound to Character
* btc for Bound to Character
* bta for Bound to Account
* bta for Bound to Account
Line 18: Line 27:
* btaoe for Bound to Account on Equip
* btaoe for Bound to Account on Equip
* btaoa for Bound to Account on Acquire
* btaoa for Bound to Account on Acquire
|parameter4name = droplocation
|parameter4description = This is the drop location for the item, use [[Template:DropLocation]], [[Template:ItemIconicReceived]], [[Template:StorePurchase]], [[Template:CollectablePurchase]], [[Template:RaidRunePurchase]]
|parameter5name = icon
|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>
<onlyinclude>{{#switch: {{lc:{{{type}}}}}
{{{2}}}<br>
| goggles | helmet | cloak = {{#dplvar:set|dpltype|item}}{{#dplvar:set|visible|true}}
<strong>{{{1}}}</strong> - [[{{{3}}}]] - {{ItemBinding|{{{4}}}}}
| necklace | trinket | belt | ring | gloves | boots | bracers = {{#dplvar:set|dpltype|item}}
<table class="compendiumtable compendiumtablenonsortable"><tr class="header"><th style="white-space: nowrap;">Minimum Level</th><th style="white-space: nowrap;">Type</th><th>Enchantments</th></tr>{{#DPL:
| light armor | medium armor | heavy armor | docent | robe | outfit = {{#dplvar:set|dpltype|armor}}{{#dplvar:set|visible|true}}
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
| 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}}
| wand = {{#dplvar:set|dpltype|wand}}{{#dplvar:set|visible|true}}
| quiver = {{#dplvar:set|dpltype|quiver}}
| handwraps = {{#dplvar:set|dpltype|weapon}}
|#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">
<tr>
<td>
<table class="table table-condensed">
<tr>
<td class="col-sm-1">{{IconImage|{{{itemname}}}|{{{icon|}}}}}</td>
<td class="col-sm-11 center"><span class="big">{{{itemname}}}</span>[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]</td>
</tr>
<tr>
<td colspan="2" class="col-sm-12">{{ItemBinding|{{{binding}}}}}</td>
</tr>
</table>
</td>
</tr>
</table>
</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>
<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>
</div>
</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
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Weapon¦MultipleItemCombineDPL}
|include={Weapon¦MultipleItemCombineDPL}
}}{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|armor|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Armor
|uses=Template:Armor
|mode=userformat
|mode=userformat
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Armor¦MultipleItemCombineDPL}
|include={Armor¦MultipleItemCombineDPL}
}}{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|shield|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Shield
|uses=Template:Shield
|mode=userformat
|mode=userformat
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Shield¦MultipleItemCombineDPL}
|include={Shield¦MultipleItemCombineDPL}
}}{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|item|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Item
|uses=Template:Item
|mode=userformat
|mode=userformat
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Item¦MultipleItemCombineDPL}
|include={Item¦MultipleItemCombineDPL}
}}{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|wand|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Wand
|uses=Template:Wand
|mode=userformat
|mode=userformat
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Wand¦MultipleItemCombineDPL}
|include={Wand¦MultipleItemCombineDPL}
}}{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|runearm|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:RuneArm
|uses=Template:RuneArm
|mode=userformat
|mode=userformat
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
|include={RuneArm¦MultipleItemCombineDPL}
}}{{#DPL:
}}}}{{#ifeq: {{#dplvar:dpltype}}|quiver|{{#DPL:
|includematch=/\{{!}}\s*name\s*=\s*{{{1}}}/s
|titlematch={{{itemname}}} (ML _){{!}}{{{itemname}}} (ML __)
|uses=Template:Quiver
|uses=Template:Quiver
|mode=userformat
|mode=userformat
|format=,<tr>,</tr>,
|format=,
<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