Difference between revisions of "Template:Weapon"

From DDO Compendium
m (formatting)
 
(44 intermediate revisions by 2 users not shown)
Line 23: Line 23:
|details =
|details =
|upgradeable =
|upgradeable =
|upgradedfrom =
|restriction =
|restriction =
|sentientexcluded=
|sentientexcluded=
Line 31: Line 32:
|weight=
|weight=
|basevalue=
|basevalue=
|emptyaugments=
|itemsets=
|otherversions=
|vendorsalecount=
|vendorsaleprice=
|link=
|exclusive=
|returning=
}}
}}
</pre>
</pre>
Line 107: Line 116:
|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]].
|parameter30name = emptyaugments
|parameter30description = Any Empty augments that this item has.  Use [[Template:EmptyAugments]]
|parameter31name = itemsets
|parameter31description = The item sets that this item has. Use [[Template:ItemSetList]]
|parameter32name = otherversions
|parameter32description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc)
|parameter33name = vendorsalecount
|parameter33description= The number of these that are sold by most vendors (i.e. arrows this would be 100), leave blank if it is one, or not sold
|parameter34name = vendorsaleprice
|parameter34description= The cost to buy from the the vendor if the vendorsalecount > 1, if this is not present, it is the base value
|parameter35name = link
|parameter35description = The link to this page, if it isn't the same as the name.
|parameter36name = exclusive
|parameter36description = Use [[Template:Exclusive]]
|parameter37name = returning
|parameter37description = Use [[Template:Returning]]
|parameter38name = upgradedfrom
|parameter38description = A list of items this was upgraded from.
}}
}}
</noinclude>
</noinclude><includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|{{#dplvar:set|itembasevalue|{{{basevalue}}}}}{{#dplvar:set|vendorsalecount|{{{vendorsalecount|}}}}}{{#dplvar:set|vendorsaleprice|{{{vendorsaleprice|}}}}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">
<includeonly>
<div class="row">
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>
<td>
<table class="table">
<table class="table table-condensed">
<tr>
<tr>
<td class="col-sm-1">
<td class="col-sm-1">
{{IconImage|{{{name}}}|{{{icon|}}}}}
{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}
</td>
<td class="com-sm-11 center">
<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>
<td class="col-sm-11 center"><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>
</tr>
</tr>
</table>
</table>
Line 130: Line 150:
<tr>
<tr>
<td>'''{{{proficiency}}} Weapon Proficiency'''<br>
<td>'''{{{proficiency}}} Weapon Proficiency'''<br>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:'''&nbsp;{{{absoluteminlevel}}}<br>}}
{{#if: {{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}
{{ItemBinding|{{{binding}}}}}<br>{{#if: {{{exclusive|}}}|{{{exclusive}}}<br>}}
{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:'''&nbsp;{{{absoluteminlevel}}}<br>}}
{{#if: {{{basedamagerating|}}}|'''Base Damage{{PopupNote|Custom||As of U62, for all updated weapons, this value was determined by looking at the weapon with a character that has no bonuses that would increase this:  Damage Mod +0 and no additional critical range or multiplier.}}:'''&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}}}}}{{#if: {{{returning|}}}|<br>{{{returning}}}}}
{{ItemBinding|{{{binding}}}<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}}}<br>}}
</td>
</td>
</tr>
</tr>{{#if: {{{enchantments|}}}|
<tr>
<tr>
<td>'''Enchantments:'''&nbsp;
<td>'''Enchantments:'''&nbsp;
{{{enchantments|}}}</td>
{{{enchantments|}}}
</tr>
{{ItemMaterialDR|{{{material}}}|{{{type}}}}}
</td>
</tr>}}
{{#if: {{{emptyaugments|}}}|<tr><td>{{{emptyaugments}}}</td></tr>}}
{{#if: {{{itemsets|}}}|<tr><td>
{{{itemsets}}}</td></tr>}}
<tr>
<tr>
<td>{{ItemMaterialDR|{{{material}}}|{{{type}}}}}{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td>
<td>{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}
</tr>
</td>
<tr>
<td>{{#if: {{{description|}}}|<br><br>''{{{description}}}''}}</td>
</tr>
</tr>
{{#if: {{{description|}}}|<tr><td>''{{{description}}}''</td></tr>}}
{{#if: {{{weight|}}}{{{basevalue|}}}|
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<tr>
Line 173: Line 190:
{{#switch: {{lc:{{{type}}}}}
{{#switch: {{lc:{{{type}}}}}
|handwraps|pet collar|collar= {{#if: {{{image|}}}|
|handwraps|pet collar|collar= {{#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>
}}
}}
|#default=
|#default=
<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>
{{#if: {{{droplocation|}}} |<tr><td class="extra-details">'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
<td>{{#if:{{{droplocation|}}}|'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}<br>|[[Category:Items without a Drop Location]]}}
</td></tr>}}{{#if: {{{details|}}} | <tr><td class="extra-details">'''Extra Details:'''&nbsp;{{WrapMultiLine|{{{details}}}}}</td></tr>}}{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:'''&nbsp;{{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{upgradedfrom|}}} | <tr><td class="extra-details">'''Upgraded From:'''&nbsp;{{WrapMultiLine|{{{upgradedfrom}}}}}</td></tr>}}{{#if: {{{bug|}}} |<tr><td class="extra-details">'''Bugs:'''&nbsp;{{WrapMultiLine|{{{bug}}}}}</td></tr>}}{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:'''&nbsp;{{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}{{#if: {{{replaced|}}}|<tr><td class="extra-details highlighted">{{{replaced}}}</td></tr>}}
{{#if:{{{details|}}}|'''Extra Details:'''&nbsp;{{{details}}}<br>}}
</table></div></div>[[Category:{{{type}}}]]{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]][[Category:Minimum Level {{{minlevel}}} {{{type}}}]][[Category:Minimum Level {{{minlevel}}} Weapon]]|[[Category:Items with No Minimum Level]][[Category:Weapon with No Minimum Level]][[Category:{{{type}}} with No Minimum Level]]}}{{#if:{{{purchaselocation|}}}||{{#if:{{{droplocation|}}}||[[Category:Items without a Drop Location]]}}}}[[Category:Weapon]]
{{#if:{{{upgradeable|}}}|'''Upgradeable:'''&nbsp;{{{upgradeable}}}<br>}}
{{#seo:
{{#if: {{{bug|}}}|'''Bugs:'''&nbsp;{{{bug}}}<br>}}
|type=website
</td>
|image={{PageExists|File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{PageExists|File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}}}}}
</tr>
|description=Weapon Type: {{{type}}}
{{#if: {{{replaced|}}}|
Min Level: {{{minlevel}}}
<tr>
Proficiency: {{{proficiency}}} Weapons
<td>{{{replaced}}}</td>
Material: {{{material}}}
</tr>
Drop Location: {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{droplocation}}}|[|}}|]|}}|Category:Items|}}|{|}}|}|}}|DropLocation{{!}}|}}|{{!}}|, }}
}}
|site_name={{SITENAME}}
</table>
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
</div>
|theme-color=#FF0000
</div>
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{{droplocation|}}}| |,}},{{#replace:{{{upgradeable|}}}| |,}}
[[Category:{{{type}}}]]
}}}}</includeonly>
{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}
{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}
[[Category:Weapon]]
[[Category:Loot]]
</includeonly>

Latest revision as of 17:16, 1 November 2023

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

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.
emptyaugmentsAny Empty augments that this item has. Use Template:EmptyAugments
itemsetsThe item sets that this item has. Use Template:ItemSetList
otherversionsOther related version (i.e. heroic vs legendary or epic, feytwisted, etc)
vendorsalecountThe number of these that are sold by most vendors (i.e. arrows this would be 100), leave blank if it is one, or not sold
vendorsalepriceThe cost to buy from the the vendor if the vendorsalecount > 1, if this is not present, it is the base value
linkThe link to this page, if it isn't the same as the name.
exclusiveUse Template:Exclusive
returningUse Template:Returning
upgradedfromA list of items this was upgraded from.

Template

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