Difference between revisions of "Template:Material"

From DDO Compendium
 
(18 intermediate revisions by the same user not shown)
Line 21: Line 21:
|image=
|image=
|update=
|update=
|link=
|exclusive=
|doubleclickpurchase=
|otherversions=
}}
}}
</pre>
</pre>
Line 89: Line 93:
|parameter20name = bagicon
|parameter20name = bagicon
|parameter20description = The icon to use for the bag if it is custom.
|parameter20description = The icon to use for the bag if it is custom.
|parameter21name = link
|parameter21description = The link to this page, if it isn't the same as the name.
|parameter22name = exclusive
|parameter22description = Use [[Template:Exclusive]]
|parameter231name = doubleclickpurchase
|parameter23description = Use [[Template:VendorSale]] and [[Template:VendorSaleTable]] to list things you can purchase by double-clicking on this item
|parameter24name = otherversions
|parameter24description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc)
}}
}}
</noinclude>
</noinclude><includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|{{#dplvar:set|itembasevalue|{{{basevalue}}}}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">
<includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{IconImage|{{{name}}}|{{{icon|}}}}}|{{#dplvar:set|itembasevalue|{{{basevalue}}}}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>
<td>
<table class="table table-condensed">
<table class="table table-condensed">
<tr>
<tr>
<td class="col-sm-1">{{IconImage|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-10 center"><span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}</td>
<td class="col-sm-1">{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-10 center"><span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}</td>
<td class="col-sm-1">{{#if: {{{bagtype|}}}|{{IconImage|{{{bagtype}}}_Bag|{{{bagicon|}}}}}}}</td>
<td class="col-sm-1">{{#if: {{{bagtype|}}}|{{IconImageWithLink|{{{bagtype}}}_Bag|{{{bagicon|}}}}}}}</td>
</tr>
</tr>
</table>
</table>
Line 103: Line 114:
</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|}}}}}
<td>{{#if: {{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}'''Binding:'''&nbsp;{{ItemBinding|{{{binding}}}}}{{#if: {{{exclusive|}}}|<br>{{{exclusive}}}}}<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;{{WrapMultiLine|{{{enchantments|}}}}}}}
|rune |augment |potion='''Enchantments:'''&nbsp;{{WrapMultiLine|{{{enchantments|}}}}}}}


{{#if:{{{description|}}}|<br>''{{{description}}}''}}
{{#if:{{{description|}}}|<br>''{{{description}}}''}}
Line 125: Line 136:
<hr>
<hr>
</div>
</div>
<div class="col-sm-6">
<div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">{{#if: {{{image|}}}|<tr style="background: rgb(0,0,0)"><td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td></tr>}}{{#if: {{{droplocation|}}} |<tr><td class="extra-details"> '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}|[[Category:Items without a Drop Location]]</td></tr>}}{{#if: {{{collectors|}}}|<tr><td>'''Collectors:'''&nbsp;{{WrapMultiLine|{{{collectors}}}}}</td></tr>}}{{#if: {{{use|}}}|<tr><td>'''Used In:'''&nbsp;{{WrapMultiLine|{{{use}}}}}</td></tr>}}{{#if: {{{notes|}}} |<tr><td>{{{notes}}}</td></tr>}}{{#if: {{{doubleclickpurchase|}}}|<tr><td>'''Double-Click to Purchase:'''&nbsp;{{{doubleclickpurchase}}}</td></tr>}}{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:'''
<table class="table table-bordered table-striped table-condensed">
{{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}</table></div></div>{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}{{#ifeq: {{lc:{{{type|}}}}}|augment|[[Category:Minimum Level {{{minlevel|}}} {{#switch: {{lc:{{#dplvar:augmentcolor}}}}
{{#if: {{{image|}}}|
<tr style="background: rgb(0,0,0)">
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td>
</tr>}}
{{#if: {{{droplocation|}}} |<tr><td class="extra-details"> '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}|[[Category:Items without a Drop Location]]</td></tr>}}
{{#if: {{{collectors|}}}|<tr><td>'''Collectors:'''&nbsp;{{WrapMultiLine|{{{collectors}}}}}</td></tr>}}
{{#if: {{{use|}}}|<tr><td>'''Used In:'''&nbsp;{{WrapMultiLine|{{{use}}}}}</td></tr>}}
{{#if: {{{notes|}}} |<tr><td>{{{notes}}}</td></tr>}}
</table></div></div>{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}{{#ifeq: {{lc:{{{type|}}}}}|augment|[[Category:Minimum Level {{{minlevel|}}} {{#switch: {{lc:{{#dplvar:augmentcolor}}}}
|c=|colorless=Colorless
|c=|colorless=Colorless
|y=|yellow=Yellow
|y=|yellow=Yellow

Latest revision as of 12:51, 30 August 2022

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

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
imageThe image to show, do default is shown for this template
updateUpdate this was released in
bagiconThe icon to use for the bag if it is custom.
linkThe link to this page, if it isn't the same as the name.
exclusiveUse Template:Exclusive
otherversionsOther related version (i.e. heroic vs legendary or epic, feytwisted, etc)

Template

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