Difference between revisions of "Template:Item"

From DDO Compendium
(updated to be fully responsive)
Line 8: Line 8:
All generic equippable items (non-weapon, non-armor, non-shield) on this wiki should start with a blank page containing the following:
All generic equippable items (non-weapon, non-armor, non-shield) on this wiki should start with a blank page containing the following:


<table class="plainlinks" style="width: 50%; background-color: #000000; border: 1px solid #B0B5B8; padding: 15px;">
<pre>
<tr><td><nowiki>{{Template:Item</nowiki></td></tr>
{{Template:Item
<tr><td>|name         = </td></tr>
|name =
<tr><td>|type         = </td></tr>
|type =
<tr><td>|minlevel     = </td></tr>
|minlevel =
<tr><td>|binding     = </td></tr>
|binding =
<tr><td>|enchantments = </td></tr>
|enchantments =
<tr><td>|description = </td></tr>
|description =
<tr><td>|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)</td></tr>
|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)
<tr><td>|material     = </td></tr>
|material =
<tr><td>|hardness     = </td></tr>
|hardness =
<tr><td>|durability   = </td></tr>
|durability =
<tr><td>|update       = </td></tr>
|update =
<tr><td>|details     = </td></tr>
|details =
<tr><td>|upgradeable = </td></tr>
|upgradeable =
<tr><td>}}</td></tr>
}}
</table>
</pre>


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!
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!
Line 31: Line 31:
== The Template ==
== The Template ==
</noinclude>
</noinclude>
<table class="plainlinks" style="width: 100%; background-color: #000000; border: 1px solid #B0B5B8; padding: 15px">
<div class="row" style="border: 1px solid #B0B5B8; background-color: #000;">
<tr><th style="width: 50%; vertical-align: top; border: 1px solid #B0B5B8; padding: 15px">
<!-- Left Info -->
<table class="plainlinks" style="width: 100%; background-color: #000; padding: 15px;">
<div class="col-xs-12 col-md-6" style="border: 1px solid #B0B5B8; padding: 15px; background-color: #000;">
<tr>
<div class="row">
<th rowspan="2" style="text-align: left; vertical-align: top; padding: 1px;">[[File:{{{name}}}_Icon.png|link=|40px|x40px|]]</th>
<div class="col-xs-2"><!-- Icon Image -->
<th colspan="2" style="font-size: 120%;">{{{name}}}</th></tr>
[[File:{{{name}}}_Icon.png|link=|40px|x40px|]]
<tr><td colspan="2" style="font-weight: normal;">[[:Category:{{{type}}}|{{{type}}}]]</td></tr>
</div>
<tr style="text-align: left; font-weight: normal;"><td colspan="3">'''Minimum Level:''' {{{minlevel}}}</td></tr>
<div class="col-cs-10 text-center"><!-- Item Name & Category -->
<tr style="text-align: left;"><td colspan="3">{{{binding}}}</td></tr>
{{{name}}}
<tr style="text-align: left; font-weight: normal;"><td colspan="3">'''Enchantments:'''
<br>
[[:Category:{{{type}}}|{{{type}}}]]
</div>
</div>
<div class="row">
<div class="col-xs-12">
'''Minimum Level:''' {{{minlevel}}}
</div>
</div>
<div class="row">
<div class="col-xs-12">
{{{binding}}}
</div>
</div>
<div class="row">
<div class="col-xs-12">
'''Enchantments:'''
<br>
{{{enchantments|}}}{{MaterialDR|{{{material}}}}}
{{{enchantments|}}}{{MaterialDR|{{{material}}}}}
</td></tr>
</div>
<tr style="text-align: left; font-weight: normal;"><td colspan="3">{{Material|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td></tr>
</div>
<tr style="text-align: left; font-weight: normal;"><td colspan="3">'''Description:''' ''{{{description}}}''</td></tr>
<div class="row">
</table>
<div class="col-xs-12">
</th>
{{Material|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}
<th style="vertical-align: top; font-weight: normal; border: 1px solid #B0B5B8; padding: 15px; text-align: left;">
</div>
</div>
<div class="row">
<div class="col-xs-12">
'''Description:''' ''{{{description}}}''
</div>
</div>
</div>
<!-- Right Info -->
<div class="col-xs-12 col-md-6" style="border: 1px solid #B0B5B8; padding: 15px; background-color: #000;">
{{#switch: {{{type}}}
{{#switch: {{{type}}}
| Goggles | Helmet = <table class="plainlinks" style="width: 100%; background-color: #000000">
| Goggles | Helmet = <div class="row"><div class="col-xs-12 center">[[File:{{{name}}}.png|300px|]]</div></div><hr>
<tr><th style="padding-top:15px;padding-bottom:15px; margin-bottom:15px; border-bottom: 1px solid #B0B5B8;">[[File:{{{name}}}.png|300px|]]</th></tr></table><br>
|}}
|}}  
<div class="row">
'''Drop Location:'''&nbsp;
<div class="col-xs-12">
{{{droplocation|}}}
'''Drop Location:'''&nbsp;{{{droplocation|}}}
{{#if: {{{details}}} | <br>'''Extra Details:''' {{{details}}}}}
</div>
{{#if: {{{upgradeable|}}} | <br>'''Upgradeable:''' {{{upgradeable}}}}}
</div>
</th></tr>
{{#if: {{{details}}} | <div class="row"><div class="col-xs-12">'''Extra Details:''' {{{details}}}</div></div>}}
</table>
{{#if: {{{upgradeable|}}} | <div class="row"><div class="col-xs-12">'''Upgradeable:''' {{{upgradeable}}}</div></div>}}
</div>
</div>
[[Category:{{{type}}}]]
[[Category:{{{type}}}]]
[[Category:Update {{{update|Unknown}}} Loot]]
[[Category:Update {{{update|Unknown}}} Loot]]
<noinclude>
<noinclude>[[Category:Template]]</noinclude>
[[Category:Template]]
</noinclude>

Revision as of 14:17, 5 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 =
|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}}}

{{{binding}}}

Enchantments:
Template:MaterialDR

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


Description: {{{description}}}

Drop Location: 

Extra Details: {{{details}}}

[[Category:{{{type}}}]]