Difference between revisions of "Template:Weapon"

From DDO Compendium
(29 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<pre>
<pre>
{{Template:Weapon
{{Template:Weapon
|name =  
|name =
|type =  
|type =
|minlevel =  
|minlevel =
|absoluteminlevel =  
|absoluteminlevel =
|binding =  
|binding =
|proficiency =  
|proficiency =
|basedamagerating =  
|basedamagerating =
|damage =  
|damage =
|damagetype =  
|damagetype =
|critprofile =  
|critprofile =
|attackmod =  
|attackmod =
|damagemod =  
|damagemod =
|enchantments =  
|enchantments =
|description =  
|description =
|droplocation =  
|droplocation =
|material =  
|material =
|hardness =  
|hardness =
|durability =  
|durability =
|update =  
|update =
|details =  
|details =
|upgradeable =
|upgradeable =
|restriction =
|restriction =
Line 35: Line 35:
{{TemplateDocumentation
{{TemplateDocumentation
|name = Weapon
|name = Weapon
|description = This template is used to render information about a weapon. Example of the Template in Use: [[Riftmaker]].
|description = This template is used to render information about a weapon. Example of the Template in Use: [[Riftmaker]].
|category=Item Templates
|category=Item Templates
|usesnamedparameters = true
|usesnamedparameters = true
Line 42: Line 42:
|parameter2name = type
|parameter2name = type
|parameter2description = What type of weapon is it.
|parameter2description = What type of weapon is it.
|parameter3name = minlevel  
|parameter3name = minlevel
|parameter3description = Enter the minimum level required for the item, or leave blank if there is none.
|parameter3description = Enter the minimum level required for the item, 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 item bound - leave blank it is unbound.
|parameter5description = How is this item 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 57: Line 57:
|parameter6name = proficiency
|parameter6name = proficiency
|parameter6description = Enter the proficiency needed to wield this weapon
|parameter6description = Enter the proficiency needed to wield this weapon
|parameter6values =  
|parameter6values =
* Simple
* Simple
* Martial
* Martial
Line 64: Line 64:
|parameter7description = Enter the base damage rating, as shown on the examine pane.
|parameter7description = Enter the base damage rating, as shown on the examine pane.
|parameter8name = damage
|parameter8name = damage
|parameter8description = Enter the damage dice possible. Use [[Template:Dice]] to enter the information.
|parameter8description = Enter the damage dice possible. Use [[Template:Dice]] to enter the information.
|parameter9name = damagetype
|parameter9name = damagetype
|parameter9description =Enter the types of damage this weapons does. Use [[Template:DamageType]] to specify this.
|parameter9description =Enter the types of damage this weapons does. Use [[Template:DamageType]] to specify this.
|parameter10name = critprofile  
|parameter10name = critprofile
|parameter10description = Enter the critical profile, as shown on the examine pane. Use [[Template:ItemCritProfile]] to specify this.
|parameter10description = Enter the critical profile, as shown on the examine pane. Use [[Template:ItemCritProfile]] to specify this.
|parameter11name = attackmod  
|parameter11name = attackmod
|parameter11description = Enter the base ability that modifies the attack roll on the weapon. Use [[Template:WeaponMod]] to specify this.
|parameter11description = Enter the base ability that modifies the attack roll on the weapon. Use [[Template:WeaponMod]] to specify this.
|parameter12name = damagemod  
|parameter12name = damagemod
|parameter12description = Enter the base ability that modifies the damage roll on the weapon. Use [[Template:WeaponMod]] to specify this.
|parameter12description = Enter the base ability that modifies the damage roll on the weapon. Use [[Template:WeaponMod]] to specify this.
|parameter13name = enchantments
|parameter13name = enchantments
|parameter13description = 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.
|parameter13description = 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.
|parameter14name = description
|parameter14name = description
|parameter14description = Enter the description that is on the examine window at the bottom.
|parameter14description = Enter the description that is on the examine window at the bottom.
|parameter15name = droplocation
|parameter15name = droplocation
|parameter15description = 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.
|parameter15description = 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.
|parameter16name = material
|parameter16name = material
|parameter16description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
|parameter16description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
Line 92: Line 92:
|parameter21description = 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.
|parameter21description = 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.
|parameter22name = restriction
|parameter22name = restriction
|parameter22description = 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]].
|parameter22description = 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]].
|parameter23name = sentientexcluded
|parameter23name = sentientexcluded
|parameter23description = This is for items that can't hold a sentient gem. Only needed on the few items that have minlevel > 20 but aren't allowed.
|parameter23description = This is for items that can't hold a sentient gem. Only needed on the few items that have minlevel > 20 but aren't allowed.
|parameter24name = icon
|parameter24name = icon
|parameter24description = The image to use for the icon instead of the one by name
|parameter24description = The image to use for the icon instead of the one by name
|parameter25name = image
|parameter25name = image
|parameter25description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension.
|parameter25description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension.
|parameter26name = bug
|parameter26name = bug
|parameter26description = Contains any information about a bug related to the item. Use [[Template:Bug]]
|parameter26description = Contains any information about a bug related to the item. Use [[Template:Bug]]
|parameter27name = replaced
|parameter27name = replaced
|parameter27description = Contains information about any replacement that SSG did of this weapon. Use [[Template:ItemReplacement]]
|parameter27description = Contains information about any replacement that SSG did of this weapon. Use [[Template:ItemReplacement]]
|parameter28name = weight
|parameter28name = weight
|parameter28description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter28description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter29name = basevalue
|parameter29name = basevalue
|parameter29description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter29description = This is the base value as shown in the examine window. Use [[Template:Price]].
}}
}}
</noinclude><includeonly>
</noinclude>
<table class="item-table background-color">
<includeonly><div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">
<tr>
<td class="item-info-side">
<table class="background-color">
<tr>
<tr>
<td>
<td>
<table class="background-color">
<table class="table">
<tr>
<tr>
<td class="icon">
<td class="col-sm-1">
<!-- Icon Image -->
{{IconImage|{{{name}}}|{{{icon|}}}}}
{{IconImage|{{{name}}}|{{{icon|}}}}}
</td>
</td>
<td class="title">
<td class="col-sm-11 center">
'''{{{name}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]{{#if: {{{minlevel|}}}|{{#ifexpr: {{{minlevel}}} > 19| {{#if: {{{sentientexcluded|}}}||<br><span style="color:yellow" class="subtitle">[[Sentient Weapons|Accepts Sentience]]</span>}}}}}}
<span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}
{{#if: {{{minlevel|}}}|{{#ifexpr:{{{minlevel}}} > 19|{{#if:{{{sentientexcluded|}}}||<br><span style="color:yellow" class="small">[[Sentient Weapons|Accepts Sentience]]</span>}}}}}}
</td>
</td>
</tr>
</tr>
Line 129: Line 126:
</tr>
</tr>
<tr>
<tr>
<td>
<td>'''{{{proficiency}}} Weapon Proficiency'''<br>
'''{{{proficiency}}} Weapon Proficiency'''<br>{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}}{{ItemBinding|{{{binding}}}}}<br>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:'''&nbsp;{{{absoluteminlevel}}}<br>}}
'''Base Damage:''' {{{basedamagerating}}}<br>
{{ItemBinding|{{{binding}}}}}<br>
'''Damage:''' {{{damage}}}<br>
{{#if: {{{basedamagerating|}}}|'''Base Damage:'''&nbsp;{{{basedamagerating}}}<br>}}{{#if: {{{damage|}}}|'''Damage:'''&nbsp;{{{damage}}}<br>}}{{#if: {{{damagetype|}}}|'''Damage Types:'''&nbsp;{{{damagetype}}}}}<br>{{#if: {{{critprofile|}}}|'''Critical Roll:'''&nbsp;{{{critprofile}}}<br>}}{{#if: {{{attackmod|}}}|'''Attack Mod:'''&nbsp;{{{attackmod}}}<br>}}{{#if: {{{damagemod|}}}|'''Damage Mod:'''&nbsp;{{{damagemod}}}}}
'''Damage Types:''' {{{damagetype}}}<br>
</td>
{{#if: {{{critprofile|}}}|'''Critical Profile:''' {{{critprofile}}}<br>}}
</tr>
{{#if: {{{attackmod|}}}|'''Attack:''' {{{attackmod}}}<br>}}
<tr>
{{#if: {{{damagemod|}}}|'''Damage:''' {{{damagemod}}}<br>}}
<td>'''Enchantments:'''&nbsp;
'''Enchantments:'''
{{{enchantments|}}}
{{{enchantments|}}}{{ItemMaterialDR|{{{material}}}|{{{type}}}}}
{{ItemMaterialDR|{{{material}}}|{{{type}}}}}
{{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>
</table>
<tr>
<td>{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}
</td>
</td>
<td class="item-image-side" style="vertical-align:top">
</tr>
<table class="item-image-table background-color" >
<tr>
{{#ifeq: {{lc:{{{type}}}}}|handwraps||<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|300px|]]</td></tr>}}
<td>{{#if: {{{description|}}}|''{{{description}}}''}}</td>
</tr>
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<td>
<table class="table">
<tr>
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;
<td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td>
{{{droplocation}}}
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td>
<br> | [[Category:Items without a Drop Location]]}}{{#if: {{{details|}}} | '''Extra Details:'''&nbsp;
</tr>
{{{details}}}
<br>}}{{#if: {{{upgradeable|}}} | '''Upgradeable:'''&nbsp;
{{{upgradeable}}}
<br>}}{{#if: {{{bug|}}} | '''Bugs:'''&nbsp;
{{{bug}}}<br>}}</td></tr>
{{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}}
</table>
</table>
</td>
</td>
</tr>
</tr>
}}
</table>
</table>
[[Category:{{{type}}}]]
</div>
{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}
<hr>
[[Category:Weapon]]
</div>
</includeonly>
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
{{#switch: {{lc:{{{type}}}}}
|handwraps|pet collar|collar= {{#if: {{{image|}}}|
<tr style="background: rgb(0,0,0);>
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|upright|center]]</td>
</tr>
}}
|#default=
<tr style="background: rgb(0,0,0);>
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|upright|center]]</td>
</tr>
}}
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
&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}}}
}}}}</td>
</tr>
{{#if: {{{replaced|}}}|
<tr>
<td>{{{replaced}}}</td>
</tr>
}}
</table></div></div>[[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:{{{purchaselocation|}}}||{{#if:{{{droplocation|}}}||[[Category:Items without a Drop Location]]}}}}[[Category:Weapon]]</includeonly>

Revision as of 00:47, 24 March 2020

{{Template:Weapon
|name =
|type =
|minlevel =
|absoluteminlevel =
|binding =
|proficiency =
|basedamagerating =
|damage =
|damagetype =
|critprofile =
|attackmod =
|damagemod =
|enchantments =
|description =
|droplocation =
|material =
|hardness =
|durability =
|update =
|details =
|upgradeable =
|restriction =
|sentientexcluded=
|icon=
|image=
|bug=
|replaced=
|weight=
|basevalue=
}}

Weapon[edit]

This template is used to render information about a weapon. Example of the Template in Use: Riftmaker.

Usage[edit]

Parameter Documentation
nameThe name of the weapon.
typeWhat type of weapon is it.
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.
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:
  • Simple
  • Martial
  • Exotic
basedamageratingEnter the base damage rating, as shown on the examine pane.
damageEnter the damage dice possible. Use Template:Dice to enter the information.
damagetypeEnter the types of damage this weapons does. Use Template:DamageType to specify this.
critprofileEnter the critical profile, as shown on the examine pane. Use Template:ItemCritProfile to specify this.
attackmodEnter the base ability that modifies the attack roll on the weapon. Use Template:WeaponMod to specify this.
damagemodEnter the base ability that modifies the damage roll on the weapon. Use Template:WeaponMod to specify this.
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.
sentientexcludedThis is for items that can't hold a sentient gem. Only needed on the few items that have minlevel > 20 but aren't allowed.
iconThe image to use for the icon instead of the one by 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.

Template

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