Difference between revisions of "Template:Item"

From DDO Compendium
m (formatting)
 
(29 intermediate revisions by 2 users not shown)
Line 108: Line 108:
 
<td class="col-sm-1">{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
 
<td class="col-sm-1">{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
 
<td class="col-sm-11 center">
 
<td class="col-sm-11 center">
<span class="big">{{{name}}}</span><br>[[:Category:{{{type}}}|{{{type}}}]]
+
<span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}
 
{{#switch: {{lc:{{{artifacttype}}}}}
 
{{#switch: {{lc:{{{artifacttype}}}}}
 
|minor=<br><span style="color:cyan !important" class="subtitle">[[Artifacts#Minor|Minor Artifact]]</span>
 
|minor=<br><span style="color:cyan !important" class="subtitle">[[Artifacts#Minor|Minor Artifact]]</span>
Line 155: Line 155:
 
<div class="col-sm-6">
 
<div class="col-sm-6">
 
<table class="table table-bordered table-striped table-condensed">
 
<table class="table table-bordered table-striped table-condensed">
{{#switch: {{{type}}}
+
{{#switch: {{lc:{{{type}}}}}
| Goggles | Helmet |Cloak =
+
| goggles | helmet |cloak =
<tr>
+
<tr style="background: rgb(0,0,0)">
 
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td>
 
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td>
 
</tr>
 
</tr>
 
|#default={{#if: {{{image|}}}|
 
|#default={{#if: {{{image|}}}|
<tr>
+
<tr style="background: rgb(0,0,0)">
 
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td>
 
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td>
 
</tr>
 
</tr>
 
}}}}
 
}}}}
 
<tr>
 
<tr>
<td>
+
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
{{#if: {{{droplocation|}}}|'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}|[[Category:Items without a Drop Location]]}}
+
&nbsp;|[[Category:Items without a Drop Location]]}}{{#if: {{{details|}}} | {{#if: {{{droplocation|}}}|<br><br>}}'''Extra Details:'''&nbsp;{{WrapMultiLine|{{{details}}}}}}}{{#if: {{{upgradeable|}}} | {{#if: {{{droplocation|}}}{{{details|}}}|<br><br>}}'''Upgradeable:'''&nbsp;{{WrapMultiLine|{{{upgradeable}}}}}}}{{#if: {{{bug|}}} |{{#if: {{{droplocation|}}}{{{details|}}}{{{upgradeable|}}}|<br><br>}} '''Bugs:'''&nbsp;{{WrapMultiLine|{{{bug}}}
{{#if: {{{details|}}}|<br>'''Extra Details:'''&nbsp;{{{details}}}}}
+
}}}}</td></tr>
{{#if: {{{upgradeable|}}}|<br>'''Upgradeable:'''&nbsp;{{{upgradeable}}}}}
+
{{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}}
{{#if: {{{bug|}}}|<br>'''Bugs:'''&nbsp;{{{bug}}}}}
+
</table>
 
</td>
 
</td>
 
</tr>
 
</tr>
{{#if: {{{replaced|}}} |
 
<tr>
 
<td>{{{replaced}}}</td>
 
</tr>
 
}}
 
 
</table>
 
</table>
 
</div>
 
</div>
 
</div>
 
</div>
[[Category:{{{type}}}]][[Category:Loot]]{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}{{#if: {{{artifacttype|}}}|[[Category:Artifact Items]]}}
+
[[Category:{{{type}}}]]{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}{{#if: {{{artifacttype|}}}|[[Category:Artifact Items]]}}
 
</includeonly>
 
</includeonly>

Latest revision as of 17:17, 4 April 2020

{{Template:Item
|name =
|type =
|minlevel =
|absoluteminlevel =
|binding =
|enchantments =
|description =
|droplocation =
|material =
|hardness =
|durability =
|update =
|details =
|upgradeable =
|restriction =
|icon=
|image=
|bug=
|replaced=
|weight=
|basevalue=
|artifacttype=
}}

Item[edit]

This template is used to render information about an item that is not a weapon, armor, orb, rune arm, shield or quiver. See Template:Weapon for weapons, Template:Armor for armor, Template:Shield for shields and orbs, Template:Quiver for quivers. Example of the Template in Use: Pale Lavender Ioun Stone.

Usage[edit]

Parameter Documentation
nameThe name of the item.
typeWhat type of item is it.
Possible Values:
  • Goggles
  • Helmet
  • Necklace
  • Trinket
  • Cloak
  • Belt
  • Ring
  • Gloves
  • Boots
  • Bracers
  • Activator - Items that can only be activated
minlevelEnter the minimum level required for the item, or leave blank if there is none.
absoluteminlevelEnter the minimum level required for the item if something is removed, or leave blank if there is none.
bindingHow is this item bound - leave blank it is unbound.
  • 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
  • enchantmentsThese are a bulleted list of templates (each on its own line starting with an asterisk) found in Enchantment Templates. If the enchantment is a one just for this item, just enter the information directly. The enchantment that is added because of the material (i.e. Flametouched Iron) is automatically added.
    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.
    materialEnter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
    hardnessEnter the hardness shown in the examine window.
    durabilityEnter the maximum durability value shown in the examine window.
    updateWhich update was this item added to the game in.
    detailsEnter any details that a player may need to know about this (i.e. if not working correctly, etc).
    upgradeableIf this item is upgradeable, use Template:ItemUpgrade. If there is more than one (i.e. it is in the middle of a crafting chain), include multiple templates in a bulleted list.
    restrictionThis is used when there is some kind of restriction. If it is a trait (Lawful, Good, etc), use Template:ItemRequiredTrait. If there is a race restriction, use Template:ItemRestrictedRace.
    iconThe icon to use for this item, overrides the image using the item name
    imageImage file, use if the image doesn't change between heroic and epic types. Do not include extension.
    bugContains any information about a bug related to the item. Use Template:Bug
    replacedContains information about any replacement that SSG did of this weapon. Use Template:ItemReplacement
    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.
    artifacttypeWhich type of artifact this is, leave blank if it is not an artifact
    Possible Values:
    • Blank for not an artifact
    • Minor

    Template

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