Difference between revisions of "Template:Material"

From DDO Compendium
m
m
Line 105: Line 105:
</tr>
</tr>
<tr>
<tr>
<td>{{#if: {{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}'''Binding:'''&nbsp;{{ItemBinding|{{{binding}}}}}<br>{{#if: {{{bagstacksize|}}}|'''Bag Maximum Stack Size:'''&nbsp;{{formatnum:{{{bagstacksize}}}}}<br>}}{{#if: {{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:'''&nbsp;{{formatnum:{{{inventorystacksize}}}}}<br>}}{{#if: {{{rarity|}}}|'''Rarity:'''&nbsp;{{{rarity}}}<br>}}{{#switch: {{lc:{{{type|}}}}}|augment=|potion='''Enchantments:'''&nbsp;{{{enchantments|}}}}}{{#if: {{{description|}}}|<br>''{{{description}}}''}}
<td>{{#if: {{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}'''Binding:'''&nbsp;{{ItemBinding|{{{binding}}}}}<br>{{#if: {{{bagstacksize|}}}|'''Bag Maximum Stack Size:'''&nbsp;{{formatnum:{{{bagstacksize}}}}}<br>}}{{#if: {{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:'''&nbsp;{{formatnum:{{{inventorystacksize}}}}}<br>}}{{#if: {{{rarity|}}}|'''Rarity:'''&nbsp;{{{rarity}}}<br>}}{{#switch: {{lc:{{{type|}}}}}|augment=|potion='''Enchantments:'''&nbsp;{{{enchantments|}}}}}{{#if:
{{{description|}}}|<br>''{{{description}}}''}}
</td>
</td>
</tr>
</tr>
Line 130: Line 131:
{{#if: {{{purchaselocation|}}}|
{{#if: {{{purchaselocation|}}}|
<tr>
<tr>
<td>
<table class="table table-striped table-condensed">
<table class="table table-striped table-condensed">
<caption>'''Where to Purchase:'''</caption>
<caption>'''Where to Purchase:'''</caption>
Line 139: Line 141:
</tr>
</tr>
{{{purchaselocation}}}
{{{purchaselocation}}}
</table></tr>
</table>
</td>
</tr>
}}
}}
{{#if: {{{droplocation|}}}|
{{#if: {{{droplocation|}}}|
<tr>
<tr>
<td>
<table class="table table-striped table-condensed">
<table class="table table-striped table-condensed">
<caption>'''Where to Loot:'''</caption>
<caption>'''Where to Loot:'''</caption>
Line 150: Line 155:
</tr>
</tr>
{{{droplocation}}}
{{{droplocation}}}
</table></tr>
</table>
</td>
</tr>
}}
}}
{{#if: {{{collectors|}}}|
{{#if: {{{collectors|}}}|
<tr>
<tr>
<td>
<table class="table table-striped table-condensed">
<table class="table table-striped table-condensed">
<tr>
<tr>
<td>'''Collectors:'''&nbsp;{{WrapMultiLine|{{{collectors}}}}}</td>
<td>'''Collectors:'''&nbsp;{{WrapMultiLine|{{{collectors}}}}}</td>
</tr></table></tr>
</tr>
</table>
</td>
</tr>
}}
}}
{{#if: {{{use|}}}|
{{#if: {{{use|}}}|
<tr>
<tr>
<td>
<table class="table table-striped table-condensed">
<table class="table table-striped table-condensed">
<tr>
<tr>
<td>'''Used In:'''&nbsp;{{WrapMultiLine|{{{use}}}}}</td>
<td>'''Used In:'''&nbsp;{{WrapMultiLine|{{{use}}}}}</td>
</tr></table></tr>
</tr>
</table>
</td>
</tr>
}}
}}
{{#if: {{{notes|}}} |
{{#if: {{{notes|}}} |
<tr>
<tr>
<td>
<table class="table table-striped table-condensed">
<table class="table table-striped table-condensed">
<tr>
<tr>
<td>{{{notes}}}</td>
<td>{{{notes}}}</td>
</tr></table></tr>
</tr>
</table>
</td>
</tr>
}}
}}
</table>
</table>

Revision as of 02:31, 24 February 2020

{{Template:Material
|name =
|type =
|minlevel =
|binding=
|bagtype =
|use=
|rarity =
|collectors =
|description =
|droplocation =
|enchantments=
|icon=
|weight=
|basevalue=
|notes=
|bagstacksize=
|inventorystacksize=
}}

Material[edit]

This template is used to render information about an ingredient, collectable, gem or any other material.

Usage[edit]

Parameter Documentation
nameThis is the material name.
typeWhat type of item is it.
Possible Values:
  • Ingredient
  • Collectable
  • Gem
  • Augment
  • Filigree
  • Spell Component
minlevelThe minimum level needed to be to use this item.
bindingHow is this item bound - leave blank it is unbound.
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
bagtypeType of the bag/container that this goes in, leave blank if it doesn't go in anything.
Possible Values:
  • Green
  • Red
  • Blue
  • Cookie Jar
  • Augment
  • Soul
useList what this can be used for - be detailed with links
rarityHow common/uncommon/rare is this to get. If it always drops from some location, don't include this.
collectorsList collectors who take this.
descriptionEnter the description that is on the examine window at the bottom.
droplocationThis specifies information on where this drops. Use one of the drop location templates to specify it. The list of templates can be found here: Category:DropLocation Templates. If there is more than one, put each on its own line starting with an asterisk.
enchantmentsThis specifies the enchantments when the type is augment.
iconThis is an icon to use, instead of the name
weightThis is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
basevalueThis is the base value as shown in the examine window. Use Template:Price.
notesAny notes about this material.
bagstacksizeThis is the maximum number of items that can stack in the bag
inventorystacksizeThis is the maximum number of items that can stack in the inventory

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.