Difference between revisions of "Template:ItemMultipleML"
From DDO Compendium
MNDeveloper (talk | contribs) |
(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. | |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 | | 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=" | <div class="row"> | ||
<div class="col-sm-6"> | |||
<table class="table table-bordered table-striped table-striped"> | |||
<tr> | <tr> | ||
<td | <td> | ||
<table class=" | <table class="table"> | ||
<tr> | <tr> | ||
<td> | <td class="col-sm-1">{{IconImage|{{{itemname}}}|{{{icon|}}}}}</td> | ||
< | <td class="col-sm-11 center">'''{{{itemname}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]</td> | ||
</tr> | |||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-12">{{ItemBinding|{{{binding}}}}}</td> | ||
</tr> | |||
{{ | </table> | ||
</td> | |||
< | |||
</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> | ||
{{ | {{#if: {{{purchaselocation|}}}| | ||
</ | <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> | ||
}} | }} | ||
{{#if: {{{droplocation|}}}| | |||
<table class="table table-striped table-condensed"> | |||
<caption>'''Where to Loot:'''</caption> | |||
<tr> | <tr> | ||
< | <th scope="col">Location</th> | ||
<th scope="col">Chest/Reward</th> | |||
</ | |||
</tr> | </tr> | ||
{{{droplocation}}} | |||
</table> | </table> | ||
}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
< | </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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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= | |noresultsheader= | ||
|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 | |
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.
|
[[File:{{{itemname}}}.png|300px|]] |
|
Minimum Level | Enchantments |
---|