Difference between revisions of "Template:Armor"

From DDO Compendium
Line 5: Line 5:
|type =
|type =
|minlevel =
|minlevel =
|absoluteminlevel =  
|absoluteminlevel =
|binding =
|binding =
|proficiency =
|proficiency =
|dexarmorbonus =  
|dexarmorbonus =
|armorbonus =  
|armorbonus =
|maxdex =  
|maxdex =
|armorcheckpenalty =  
|armorcheckpenalty =
|spellfailure =  
|spellfailure =
|enchantments =  
|enchantments =
|description =
|description =
|droplocation =  
|droplocation =
|material =  
|material =
|hardness =
|hardness =
|durability =
|durability =
|update =  
|update =
|details =  
|details =
|upgradeable =  
|upgradeable =
|restriction =  
|restriction =
|icon=
|icon=
|image=
|image=
Line 33: Line 33:
{{TemplateDocumentation
{{TemplateDocumentation
|name = Armor
|name = Armor
|description = This template is used to render information about armor. Examples of the Template in Use: [[Docent of the Tomb]] and [[Robe of Duality]].
|description = This template is used to render information about armor. Examples of the Template in Use: [[Docent of the Tomb]] and [[Robe of Duality]].
|usesnamedparameters = true
|usesnamedparameters = true
|parameter1name = name
|parameter1name = name
|parameter1description = The name of the armor.
|parameter1description = The name of the armor.
|parameter2name = type
|parameter2name = type
|parameter2description = What type of armor is it. Specifying Docent here adds some Docent specific descriptions. This is what it say under the name on the examine window, not what it is made of.
|parameter2description = What type of armor is it. Specifying Docent here adds some Docent specific descriptions. This is what it say under the name on the examine window, not what it is made of.
|parameter2values=
|parameter2values=
* Cloth
* Cloth
Line 47: Line 47:
* Docent
* Docent
* Robe
* Robe
|parameter3name = minlevel  
|parameter3name = minlevel
|parameter3description = Enter the minimum level required for the armor, or leave blank if there is none.
|parameter3description = Enter the minimum level required for the armor, or leave blank if there is none.
|parameter4name = absoluteminlevel  
|parameter4name = absoluteminlevel
|parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none.
|parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none.
|parameter5name = binding
|parameter5name = binding
|parameter5description = How is this armor bound - leave blank it is unbound.
|parameter5description = How is this armor bound - leave blank it is unbound.
|parameter5values =  
|parameter5values =
* btc for Bound to Character
* btc for Bound to Character
* bta for Bound to Account
* bta for Bound to Account
Line 62: Line 62:
|parameter6name = proficiency
|parameter6name = proficiency
|parameter6description = Enter the proficiency needed to wield this weapon
|parameter6description = Enter the proficiency needed to wield this weapon
|parameter6values =  
|parameter6values =
* Light
* Light
* Medium
* Medium
Line 69: Line 69:
|parameter7description = Enter the Armor Bonus w/Dex shown in the examine window. (THIS IS NO LONGER SHOWN)
|parameter7description = Enter the Armor Bonus w/Dex shown in the examine window. (THIS IS NO LONGER SHOWN)
|parameter8name = armorbonus
|parameter8name = armorbonus
|parameter8description = Enter the armor bonus as shown on the examine window. If this is a docent, use [[Template:DocentArmorBonus]] to get the special formatting.
|parameter8description = Enter the armor bonus as shown on the examine window. If this is a docent, use [[Template:DocentArmorBonus]] to get the special formatting.
|parameter9name = maxdex
|parameter9name = maxdex
|parameter9description = Enter the Max Dex Bonus shown on the examine window.
|parameter9description = Enter the Max Dex Bonus shown on the examine window.
|parameter10name = armorcheckpenalty  
|parameter10name = armorcheckpenalty
|parameter10description = Enter the Armor Check Penalty, as shown on the examine window.
|parameter10description = Enter the Armor Check Penalty, as shown on the examine window.
|parameter11name = spellfailure
|parameter11name = spellfailure
|parameter11description = Enter the Spell Failure percent as shown on the examine window.
|parameter11description = Enter the Spell Failure percent as shown on the examine window.
|parameter12name = enchantments
|parameter12name = enchantments
|parameter12description = These are a bulleted list of templates (each on its own line starting with an asterisk) found in [[:Category:Item_Enchantment_Template|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.
|parameter12description = These are a bulleted list of templates (each on its own line starting with an asterisk) found in [[:Category:Item_Enchantment_Template|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.
|parameter13name = description
|parameter13name = description
|parameter13description = Enter the description that is on the examine window at the bottom.
|parameter13description = Enter the description that is on the examine window at the bottom.
|parameter14name = droplocation
|parameter14name = droplocation
|parameter14description = This 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.
|parameter14description = This 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.
|parameter15name = material
|parameter15name = material
|parameter15description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
|parameter15description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
Line 95: Line 95:
|parameter20description = If 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.
|parameter20description = If 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.
|parameter21name = restriction
|parameter21name = restriction
|parameter21description = This 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]].
|parameter21description = This 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]].
|parameter22name = icon
|parameter22name = icon
|parameter22description = The name of the icon file. Use this if it is a duplicate of another piece of armor.
|parameter22description = The name of the icon file. Use this if it is a duplicate of another piece of armor.
|parameter23name = image
|parameter23name = image
|parameter23description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension.
|parameter23description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension.
|parameter24name = bug
|parameter24name = bug
|parameter24description = Contains any information about a bug related to the item. Use [[Template:Bug]]
|parameter24description = Contains any information about a bug related to the item. Use [[Template:Bug]]
|parameter25name = replaced
|parameter25name = replaced
|parameter25description = Contains information about any replacement that SSG did of this weapon. Use [[Template:ItemReplacement]]
|parameter25description = Contains information about any replacement that SSG did of this weapon. Use [[Template:ItemReplacement]]
|parameter26name = weight
|parameter26name = weight
|parameter26description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter26description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter27name = basevalue
|parameter27name = basevalue
|parameter27description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter27description = This is the base value as shown in the examine window. Use [[Template:Price]].
}}
}}
</noinclude><includeonly><table class="item-table background-color">
</noinclude>
<tr>
<includeonly>
<td class="item-info-side">
<div class="row">
<table class="background-color">
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>
<td>
<table class="background-color fullwidth">
<table class="table table-condensed">
<tr>
<tr>
<td class="icon">
<td class="col-sm-1">{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
<!-- Icon Image -->
<td class="col-sm-11 center">'''{{{name}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]</td>
{{IconImage|{{{name}}}|{{{icon|}}}}}
</tr>
</table>
</td>
</td>
<td class="title">
</tr>
'''{{{name}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]
<tr>
<td>
{{#ifeq: {{{type|}}}|Docent|'''Race Required:''' Warforged or Bladeforged<br>'''Pet Race Required:''' Iron Defender|{{#if: {{{proficiency}}} | '''{{{proficiency}}} Armor Proficiency'''[[Category:Armor with {{{proficiency}}} Proficiency]]}}}}
</td>
</td>
</tr>
</tr>
</table>
{{#if: {{{restriction|}}}|
</td>
<tr>
<td>{{{restriction}}}</td>
</tr>
}}
{{#if: {{{restriction|}}}|
<tr>
<td>{{{restriction}}}</td>
</tr>
}}
{{#if: {{{minlevel|}}}|
<tr>
<td>'''Minimum Level:''' {{{minlevel}}}</td>
</tr>
}}
{{#if: {{{absoluteminlevel|}}}|
<tr>
<td>'''Absolute Minimum Level:''' {{{absoluteminlevel}}}</td>
</tr>
}}
<tr>
<td>{{ItemBinding|{{{binding}}}}}</td>
</tr>
{{#if: {{{armorbonus|}}}|
<tr>
<td>'''Armor Bonus:'''<span style="color:lightgreen">{{#iferror:{{#ifexpr: {{{armorbonus}}} < 0 ||+}}|{{{armorbonus}}}|{{#ifexpr: {{{armorbonus}}} < 0 ||+}}{{{armorbonus}}}}}</span></td>
</tr>
}}
{{#if: {{{maxdex|}}}|
<tr>
<td>'''Max Dex Bonus:''' {{{maxdex|}}}</td>
</tr>
}}
{{#if: {{{armorcheckpenalty|}}}|
<tr>
<td>'''Armor Check Penalty:''' <span style="color:yellow">{{{armorcheckpenalty}}}</span></td>
</tr>
}}
{{#if: {{{spellfailure|}}}|
<tr>
<td>'''Spell Failure:''' <span style="color:yellow">{{{spellfailure|}}}</span></td>
</tr>
</tr>
}}
<tr>
<tr>
<td>
<td>
{{#ifeq: {{{type|}}}|Docent|'''Race Required:''' Warforged or Bladeforged<br>'''Pet Race Required:''' Iron Defender|{{#if: {{{proficiency}}} | '''{{{proficiency}}} Armor Proficiency'''[[Category:Armor with {{{proficiency}}} Proficiency]]}}}}<br>
'''Enchantments:'''&nbsp;
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}}{{ItemBinding|{{{binding}}}}}<br>{{#if: {{{armorbonus|}}}|'''Armor Bonus:'''
<span style="color:lightgreen">{{#iferror:{{#ifexpr: {{{armorbonus}}} < 0 ||+}}|
{{{armorbonus}}}|{{#ifexpr: {{{armorbonus}}} < 0 ||+}}{{{armorbonus}}}}}</span><br>}}{{#if: {{{maxdex|}}}|'''Max Dex Bonus:''' {{{maxdex|}}}<br>}}{{#if: {{{armorcheckpenalty|}}}|'''Armor Check Penalty:''' <span style="color:yellow">{{{armorcheckpenalty|}}}</span><br>}}{{#if: {{{spellfailure|}}}|'''Spell Failure:''' <span style="color:yellow">{{{spellfailure|}}}</span><br>}}
<br>'''Enchantments:'''
{{{enchantments|}}}{{ItemMaterialDR|{{{material}}}}}
{{{enchantments|}}}{{ItemMaterialDR|{{{material}}}}}
{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}{{#if: {{{description|}}}|
<br>
<br>
'''Description:''' ''{{{description}}} ''}}
</td>
</td>
</tr>{{#if: {{{weight|}}}{{{basevalue|}}}|<tr><td><table class="item-table"><tr><td class="itembasevalue">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td><td class="itemweight">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td></tr></table></td></tr>}}
</tr>
{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|
<tr>
<td>{{{hardness}}}</td>
</tr>
|}}|{{#if: {{{durability|}}}|
<tr>
<td>{{{durability}}}</td>
</tr>
|}}}}
{{#if: {{{description|}}}|
<tr>
<td>'''Description:''' ''{{{description}}}''</td>
</tr>
}}
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<td>
<table class="item-table">
<tr>
<td class="itembasevalue">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td>
<td class="itemweight">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td>
</tr>
</table>
</table>
</td>
</td>
<td class="item-image-side" style="vertical-align:top">
</tr>
<table class="item-image-table background-color" >
}}
<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|upright|]]</td></tr>
</table>
</div>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<hr>
</div>
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<tr style="background: rgb(0,0,0);background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(17,17,17,1) 1%, rgba(0,0,0,1) 100%);">
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|upright|]]</td>
</tr>
<tr>
<tr>
<td class="extra-details">{{#if: {{{purchaselocation|}}}|
<td>{{#if: {{{purchaselocation|}}}|
<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 169: Line 236:
{{{droplocation}}}
{{{droplocation}}}
</table>
</table>
}}{{#if: {{{details|}}} | '''Extra Details:'''&nbsp;
}}
</td>
</tr>
{{#if: {{{details|}}}|
<tr>
<td>
<table class="table table-striped table-condensed">
<tr>
<td>'''Extra Details:'''&nbsp;
{{{details}}}
{{{details}}}
<br>}}{{#if: {{{upgradeable|}}} | '''Upgradeable:'''&nbsp;
</td>
</tr>
</table>
</td>
</tr>
}}
{{#if: {{{upgradeable|}} |
<tr>
<td>
<table class="table table-striped table-condensed">
<tr>
<td>'''Upgradeable:'''&nbsp;
{{{upgradeable}}}
{{{upgradeable}}}
<br>}}{{#if: {{{bug|}}} | '''Bugs:'''&nbsp;
</td>
{{{bug}}}<br>}}</td></tr>
</tr>
{{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}}
</table>
</td>
</tr>
}}
{{#if: {{{bug|}}}|
<tr>
<td>
<table class="table table-striped table-condensed">
<tr>
<td>'''Bugs:'''&nbsp;
{{{bug}}}
</td>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
}}
{{#if: {{{replaced|}}}|
<tr>
<td>
<table class="table table-striped table-condensed">
<tr>
<td>{{{replaced}}}</td>
</tr>
</table>
</td>
</tr>
}}
</table>
</table>
</div>
</div>
[[Category:{{{type}}}]]
[[Category:{{{type}}}]]
{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}
{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}

Revision as of 03:08, 24 February 2020

{{Template:Armor
|name =
|type =
|minlevel =
|absoluteminlevel =
|binding =
|proficiency =
|dexarmorbonus =
|armorbonus =
|maxdex =
|armorcheckpenalty =
|spellfailure =
|enchantments =
|description =
|droplocation =
|material =
|hardness =
|durability =
|update =
|details =
|upgradeable =
|restriction =
|icon=
|image=
|bug=
|replaced=
|weight=
|basevalue=
}}

Armor[edit]

This template is used to render information about armor. Examples of the Template in Use: Docent of the Tomb and Robe of Duality.

Usage[edit]

Parameter Documentation
nameThe name of the armor.
typeWhat type of armor is it. Specifying Docent here adds some Docent specific descriptions. This is what it say under the name on the examine window, not what it is made of.
Possible Values:
  • Cloth
  • Robe
  • Light Armor
  • Medium Armor
  • Heavy Armor
  • Docent
  • Robe
minlevelEnter the minimum level required for the armor, 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 armor 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
proficiencyEnter the proficiency needed to wield this weapon
Possible Values:
  • Light
  • Medium
  • Heavy
dexarmorbonusEnter the Armor Bonus w/Dex shown in the examine window. (THIS IS NO LONGER SHOWN)
armorbonusEnter the armor bonus as shown on the examine window. If this is a docent, use Template:DocentArmorBonus to get the special formatting.
maxdexEnter the Max Dex Bonus shown on the examine window.
armorcheckpenaltyEnter the Armor Check Penalty, as shown on the examine window.
spellfailureEnter the Spell Failure percent as shown on the examine window.
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 name of the icon file. Use this if it is a duplicate of another piece of armor.
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.

Template

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