Difference between revisions of "Template:ItemMultipleML"

From DDO Compendium
(testing)
Line 3: Line 3:
|itemname =
|itemname =
|type =
|type =
|binding =  
|binding =
|droplocation =  
|droplocation =
|icon=
|icon=
|image=
|image=
Line 32: Line 32:
|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
|parameter6name = image
|parameter6description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension.
|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>{{#dplvar:set|displaystyle|TitleOnly}}{{#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 | outfit = {{#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}}
Line 46: Line 46:
|#default = {{#dplvar:set|dpltype|weapon}}{{#dplvar:set|visible|true}}
|#default = {{#dplvar:set|dpltype|weapon}}{{#dplvar:set|visible|true}}
}}
}}
<table class="item-table background-color">
<div class="row">
<div class="col-sm-6">
<table class="table table-bordered table-striped table-striped">
<tr>
<tr>
<td class="item-info-side">
<td>
<table class="background-color fullwidth">
<table class="table">
<tr>
<tr>
<td>
<td class="col-sm-1">{{IconImage|{{{itemname}}}|{{{icon|}}}}}</td>
<table class="background-color fullwidth">
<td class="col-sm-11 center">'''{{{itemname}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]</td>
</tr>
<tr>
<tr>
<td class="icon">
<td class="col-sm-12">{{ItemBinding|{{{binding}}}}}</td>
<!-- Icon Image -->
</tr>
{{IconImage|{{{itemname}}}|{{{icon|}}}}}
</table>
</td>
<td class="title">
'''{{{itemname}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]
</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>
<td class="center">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|300px|]]</td>
</tr>
|
|#default={{#if: {{{image|}}}|
<tr>
<td class="center">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|300px|]]</td>
</tr>
</tr>
}}
}}
<tr>
<tr>
<td>
<td>
{{ItemBinding|{{{binding}}}}}<br>
{{#if: {{{purchaselocation|}}}|
</td>
<table class="table table-striped table-condensed">
<caption>'''Where to Purchase:'''</caption>
<tr>
<th scope="col">Vendor</th>
<th scope="col">Location</th>
<th scope="col">Qty</th>
<th scope="col">Price</th>
</tr>
</tr>
{{{purchaselocation}}}
</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:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|300px|]]</td></tr>|
|#default={{#if: {{{image|}}}|<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{itemname}}}}}.png|300px|]]</td></tr>}}
}}
}}
{{#if: {{{droplocation|}}}|
<table class="table table-striped table-condensed">
<caption>'''Where to Loot:'''</caption>
<tr>
<tr>
<td class="extra-details">
<th scope="col">Location</th>
{{#if: {{{droplocation|}}} | '''Drop Location:'''&nbsp;
<th scope="col">Chest/Reward</th>
{{{droplocation}}}}}
</td>
</tr>
</tr>
{{{droplocation}}}
</table>
</table>
}}
</td>
</td>
</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:
</div>
</div>
<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>
</tr>
{{#ifeq: {{#dplvar:dpltype}}|weapon|{{#DPL:
|titlematch={{{itemname}}} (ML %)
|titlematch={{{itemname}}} (ML %)
|uses=Template:Weapon
|uses=Template:Weapon
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Weapon¦MultipleItemCombineDPL}
|include={Weapon¦MultipleItemCombineDPL}
Line 101: Line 132:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Armor¦MultipleItemCombineDPL}
|include={Armor¦MultipleItemCombineDPL}
Line 109: Line 142:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Shield¦MultipleItemCombineDPL}
|include={Shield¦MultipleItemCombineDPL}
Line 117: Line 152:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Item¦MultipleItemCombineDPL}
|include={Item¦MultipleItemCombineDPL}
Line 125: Line 162:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Wand¦MultipleItemCombineDPL}
|include={Wand¦MultipleItemCombineDPL}
Line 133: Line 172:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
|include={RuneArm¦MultipleItemCombineDPL}
Line 141: Line 182:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={Quiver¦MultipleItemCombineDPL}
|include={Quiver¦MultipleItemCombineDPL}
Line 149: Line 192:
|mode=userformat
|mode=userformat
|ordermethod=title
|ordermethod=title
|format=,<tr>,</tr>,
|format=,
<tr>,</tr>
,
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|include={RuneArm¦MultipleItemCombineDPL}
|include={RuneArm¦MultipleItemCombineDPL}
}}}}</table>{{#ifeq: {{FULLPAGENAME}} |Template:ItemMultipleML||[[Category:Loot]]}}</onlyinclude>
}}}}
</table>
</div>
</div>
{{#ifeq: {{FULLPAGENAME}} |Template:ItemMultipleML||[[Category:Loot]]}}
</onlyinclude>

Revision as of 01:40, 24 February 2020

{{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|300px|]]


 
Minimum Level Enchantments