Difference between revisions of "Template:Item"

From DDO Compendium
Line 31: Line 31:
== The Template ==
== The Template ==
</noinclude>
</noinclude>
<div class="row" style="border: 1px solid #B0B5B8; background-color: #000;">
<table class="item-table background-color">
<!-- Left Info -->
<tr>
<div class="col-xs-12 col-md-6" style="border-right: 1px solid #B0B5B8; padding: 15px; background-color: #000;min-height:100%">
<td class="item-info-side">
<div class="row">
<table class="background-color">
<div class="col-xs-2"><!-- Icon Image -->
<tr>
<td>
<table class="background-color">
<tr>
<td class="icon">
<!-- Icon Image -->
[[File:{{{name}}}_Icon.png|link=|40px|x40px|]]
[[File:{{{name}}}_Icon.png|link=|40px|x40px|]]
</div>
</td>
<div class="col-cs-10 text-center"><!-- Item Name & Category -->
<td class="title">
<span style="font-size: 20px">'''{{{name}}}'''</span><br>[[:Category:{{{type}}}|{{{type}}}]]
'''{{{name}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]
</div>
</td>
</div>
</tr>
<div class="row">
</table>
<div class="col-xs-12">
</td>
</tr>
<tr>
<td>
'''Minimum Level:''' {{{minlevel}}}<br>{{ItemBinding|{{{binding}}}}}<br>
'''Minimum Level:''' {{{minlevel}}}<br>{{ItemBinding|{{{binding}}}}}<br>
'''Enchantments:'''
'''Enchantments:'''
{{{enchantments|}}}{{MaterialDR|{{{material}}}}}
{{{enchantments|}}}{{MaterialDR|{{{material}}}}}
</div>
</div>
<div class="row">
<div class="col-xs-12" style:"border:none">
{{Material|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}
{{Material|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}
</div>
<br>
</div>
<br>
<div class="row">
<div class="col-xs-12">
'''Description:''' ''{{{description}}} ''
'''Description:''' ''{{{description}}} ''
</div>
</td>
</div>
</tr>
</div>
</table>
<!-- Right Info -->
</td>
<div class="col-xs-12 col-md-6" style="border: 1px solid #B0B5B8; padding: 15px; background-color: #000;">
<td class="item-image-side">
<table class="item-image background-color">
{{#switch: {{{type}}}
{{#switch: {{{type}}}
| Goggles | Helmet = <div class="row"><div class="col-xs-12 center" style="border-bottom: solid 1px white; padding-bottom:15px;margin-bottom:10px;">[[File:{{{name}}}.png|300px|]]</div></div>
| Goggles | Helmet = <tr><td style="text-align:center; border-bottom: solid 1px white; padding-bottom:15px;margin-bottom:10px;">[[File:{{{name}}}.png|300px|]]</td></tr>|}}
|}}
<tr>
<div class="row">
<td>
<div class="col-xs-12">
{{#if: {{{details}}} | '''Extra Details:''' {{{details}}}<br>}}
'''Drop Location:'''&nbsp;
{{#if: {{{upgradeable|}}} | '''Upgradeable:''' {{{upgradeable}}}<br>}}
{{{droplocation|}}}
</td>
</div>
</tr>
</div>
</table>
{{#if: {{{details}}} | <div class="row"><div class="col-xs-12">'''Extra Details:''' {{{details}}}</div></div>}}
</td>
{{#if: {{{upgradeable|}}} | <div class="row"><div class="col-xs-12">'''Upgradeable:''' {{{upgradeable}}}</div></div>}}
</tr>
</div>
</table>
</div>
[[Category:{{{type}}}]]
[[Category:{{{type}}}]]
[[Category:Update {{{update|Unknown}}} Loot]]
[[Category:Update {{{update|Unknown}}} Loot]]
[[Category:Minimum Level {{{minlevel}}} Items]]
[[Category:Minimum Level {{{minlevel}}} Items]]

Revision as of 17:02, 9 May 2018

How To Use This Template[edit]

The basic template for items in DDO. See Template:Weapon for weapons and Template:Armor for anything that is equipped to the Armor slot.

Orbs, Shields, and other items that can be wielded but are not weapons are TBD.

All generic equippable items (non-weapon, non-armor, non-shield) on this wiki should start with a blank page containing the following:

{{Template:Item
|name =
|type =
|minlevel =
|binding = (Blank for Unbound or one of: BtC = Bound to Character, BtA = Bound to Account, BtCoE = Bound to Character on Equip, BtCoA = Bound to Character on Aquire, BtAoE = Bound to Account on Equip, BtAoA = Bound to Account on Aquire)
|enchantments =
|description =
|droplocation = (If there is one, put it on this line using template:droplocation, otherwise put on a new line and lead each with and asterisk)
|material =
|hardness =
|durability =
|update =
|details =
|upgradeable =
}}

Fill in the information, using a completed item - such as Pale Lavender Ioun Stone - for an example. When you preview or save the page, it will format itself!


The Template[edit]

[[File:{{{name}}}_Icon.png|link=|40px|x40px|]]

{{{name}}}
[[:Category:{{{type}}}|{{{type}}}]]

Minimum Level: {{{minlevel}}}
Unbound
Enchantments: Template:MaterialDR

[[File:{{{name}}}_Icon.png|link=File:{{{name}}}_Icon.png|36px|x36px|]]{{{name}}}
Binding: Unbound




Description: {{{description}}}

Extra Details: {{{details}}}

[[Category:{{{type}}}]] [[Category:Minimum Level {{{minlevel}}} Items]]