Difference between revisions of "Template:Weapon"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(227 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== How | <pre> | ||
{{Template:Weapon | |||
|name = | |||
|type = | |||
|minlevel = | |||
|absoluteminlevel = | |||
|binding = | |||
|proficiency = | |||
|basedamagerating = | |||
|damage = | |||
|damagetype = | |||
|critprofile = | |||
|attackmod = | |||
< | |damagemod = | ||
<tr><td> | |enchantments = | ||
|description = | |||
< | |droplocation = | ||
< | |material = | ||
< | |hardness = | ||
|durability = | |||
|update = | |||
|details = | |||
|upgradeable = | |||
|upgradedfrom = | |||
|restriction = | |||
|sentientexcluded= | |||
|icon= | |||
|image= | |||
|bug= | |||
|replaced= | |||
|weight= | |||
|basevalue= | |||
|emptyaugments= | |||
|itemsets= | |||
|otherversions= | |||
|vendorsalecount= | |||
|vendorsaleprice= | |||
|link= | |||
|options= | |||
|returning= | |||
|extracategories= | |||
}} | |||
</pre> | |||
{{TemplateDocumentation | |||
|name = Weapon | |||
|description = This template is used to render information about a weapon. Example of the Template in Use: [[Riftmaker]]. | |||
|category=Item Templates | |||
|usesnamedparameters = true | |||
|parameter1name = name | |||
|parameter1description = The name of the weapon. | |||
|parameter2name = type | |||
|parameter2description = What type of weapon is it. | |||
|parameter3name = minlevel | |||
|parameter3description = Enter the minimum level required for the item, or leave blank if there is none. | |||
|parameter4name = absoluteminlevel | |||
|parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none. | |||
|parameter5name = binding | |||
|parameter5description = How is this item bound - leave blank it is unbound. | |||
|parameter5values = | |||
* 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 | |||
|parameter6name = proficiency | |||
|parameter6description = Enter the proficiency needed to wield this weapon | |||
|parameter6values = | |||
* Simple | |||
* Martial | |||
* Exotic | |||
|parameter7name = basedamagerating | |||
|parameter7description = Enter the base damage rating, as shown on the examine pane. | |||
|parameter8name = damage | |||
|parameter8description = Enter the damage dice possible. Use [[Template:Dice]] to enter the information. | |||
|parameter9name = damagetype | |||
|parameter9description =Enter the types of damage this weapons does. Use [[Template:DamageType]] to specify this. | |||
|parameter10name = critprofile | |||
|parameter10description = Enter the critical profile, as shown on the examine pane. Use [[Template:ItemCritProfile]] to specify this. | |||
|parameter11name = attackmod | |||
|parameter11description = Enter the base ability that modifies the attack roll on the weapon. Use [[Template:WeaponMod]] to specify this. | |||
|parameter12name = damagemod | |||
|parameter12description = Enter the base ability that modifies the damage roll on the weapon. Use [[Template:WeaponMod]] to specify this. | |||
|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. | |||
|parameter14name = description | |||
|parameter14description = Enter the description that is on the examine window at the bottom. | |||
|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. | |||
|parameter16name = material | |||
|parameter16description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron). | |||
|parameter17name = hardness | |||
|parameter17description = Enter the hardness shown in the examine window. | |||
|parameter18name = durability | |||
|parameter18description = Enter the maximum durability value shown in the examine window. | |||
|parameter19name = update | |||
|parameter19description = Which update was this item added to the game in. | |||
|parameter20name = details | |||
|parameter20description = Enter any details that a player may need to know about this (i.e. if not working correctly, etc). | |||
|parameter21name = upgradeable | |||
|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 | |||
|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 | |||
|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 | |||
|parameter24description = The image to use for the icon instead of the one by name | |||
|parameter25name = image | |||
|parameter25description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension. | |||
|parameter26name = bug | |||
|parameter26description = Contains any information about a bug related to the item. Use [[Template:Bug]] | |||
|parameter27name = replaced | |||
|parameter27description = Contains information about any replacement that SSG did of this weapon. Use [[Template:ItemReplacement]] | |||
|parameter28name = weight | |||
|parameter28description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. | |||
|parameter29name = basevalue | |||
|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 = options | |||
|parameter36description = Use [[Template:ItemOptions]], displays options about the item | |||
|parameter37name = returning | |||
|parameter37description = Use [[Template:Returning]] | |||
|parameter38name = upgradedfrom | |||
|parameter38description = A list of items this was upgraded from. | |||
|parameter39name = extracategories | |||
|parameter39description = A list of extra categories for this weapon, use [[Template:CategoryList]] | |||
}} | |||
</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"> | |||
<tr> | |||
<td> | |||
<table class="table table-condensed"> | |||
<tr> | |||
<td class="col-sm-1"> | |||
{{IconImageWithLink|{{{name}}}|{{{icon|}}}}} | |||
</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> | |||
</table> | </table> | ||
</td> | |||
</tr> | |||
</ | |||
<tr | |||
<tr> | <tr> | ||
< | <td>'''{{{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: {{{options|}}}|{{{options}}}<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.}}:''' {{{basedamagerating}}}<br>}}{{#if: {{{damage|}}}|'''Damage:''' {{{damage}}}<br>}}{{#if: {{{damagetype|}}}|'''Damage Types:''' {{{damagetype}}}}}<br>{{#if: {{{critprofile|}}}|'''Critical Roll:''' {{{critprofile}}}<br>}}{{#if: {{{attackmod|}}}|'''Attack Mod:''' {{{attackmod}}}<br>}}{{#if: {{{damagemod|}}}|'''Damage Mod:''' {{{damagemod}}}}}{{#if: {{{returning|}}}|<br>{{{returning}}}}} | |||
<tr | </td> | ||
<tr | </tr>{{#if: {{{enchantments|}}}| | ||
<tr | <tr> | ||
<tr | <td>'''Enchantments:''' | ||
<tr | {{{enchantments|}}} | ||
{{ItemMaterialDR|{{{material}}}|{{{type}}}}} | |||
< | </td> | ||
< | </tr>}} | ||
{{#if: {{{emptyaugments|}}}|<tr><td>{{{emptyaugments}}}</td></tr>}} | |||
{{#if: {{{itemsets|}}}|<tr><td> | |||
{{{itemsets}}}</td></tr>}} | |||
<tr> | |||
<td>{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}} | |||
</td> | |||
</tr> | |||
{{#if: {{{description|}}}|<tr><td>''{{{description}}}''</td></tr>}} | |||
{{#if: {{{weight|}}}{{{basevalue|}}}| | |||
<tr> | |||
<td> | |||
<table class="table"> | |||
<tr> | |||
<td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td> | |||
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td> | |||
</tr> | |||
</table> | </table> | ||
</ | </td> | ||
< | </tr> | ||
}} | |||
</table> | </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"> | |||
{{#switch: {{lc:{{{type}}}}} | |||
|handwraps|pet collar|collar= {{#if: {{{image|}}}| | |||
<tr style="background: rgb(0,0,0);> | |||
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | |||
</tr> | </tr> | ||
<tr><td | }} | ||
</table> | |#default= | ||
<tr style="background: rgb(0,0,0);> | |||
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | |||
</tr> | |||
}} | |||
{{#if: {{{droplocation|}}} |<tr><td class="extra-details">'''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | |||
</td></tr>}}{{#if: {{{details|}}} | <tr><td class="extra-details">'''Extra Details:''' {{WrapMultiLine|{{{details}}}}}</td></tr>}}{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:''' {{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{upgradedfrom|}}} | <tr><td class="extra-details">'''Upgraded From:''' {{WrapMultiLine|{{{upgradedfrom}}}}}</td></tr>}}{{#if: {{{bug|}}} |<tr><td class="extra-details">'''Bugs:''' {{WrapMultiLine|{{{bug}}}}}</td></tr>}}{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:''' {{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}{{#if: {{{replaced|}}}|<tr><td class="extra-details highlighted">{{{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: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: {{{extracategories|}}}|{{{extracategories}}}}}{{#dplvar:set|seoimage|{{PageExists|File: {{{image|}}}.png|{{filepath:{{{image|}}}.png}}|}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}}.png|{{filepath:{{{name|}}}.png}}|}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{icon|}}} Icon.png|{{filepath:{{{icon|}}} Icon.png}}}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}} Icon.png|{{filepath:{{{name|}}} Icon.png}}}}}}}}{{#seo: | |||
|type=website | |||
|image={{#if: {{#dplvar:seoimage}}|{{#dplvar:seoimage}}}} | |||
|description=Weapon Type: {{{type}}} | |||
Min Level: {{{minlevel}}} | |||
Proficiency: {{{proficiency}}} Weapons | |||
Material: {{{material}}} | |||
Upgradeable: {{#if: {{{upgradeable|}}}|Yes|No}} | |||
Is an upgrade: {{#if: {{{upgradedfrom|}}}|Yes|No}} | |||
Binding: {{ItemBinding|{{{binding}}}|True}} | |||
Drop Location: {{#dplvar:seodroplocation}} | |||
|site_name={{SITENAME}} | |||
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | |||
|theme-color=#FF0000 | |||
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{#dplvar:seodroplocation}}| |,}} | |||
}}}}{{#dplvar:set|seoimage|}}{{#dplvar:set|seodroplocation|}}</includeonly> |
Latest revision as of 16:50, 23 December 2024
{{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= |options= |returning= |extracategories= }}
Weapon[edit]
This template is used to render information about a weapon. Example of the Template in Use: Riftmaker.
Usage[edit]
Parameter Documentation | |
name | The name of the weapon. |
type | What type of weapon is it. |
minlevel | Enter the minimum level required for the item, or leave blank if there is none. |
absoluteminlevel | Enter the minimum level required for the item if something is removed, or leave blank if there is none. |
binding | How is this item bound - leave blank it is unbound. Possible Values:
|
proficiency | Enter the proficiency needed to wield this weapon Possible Values:
|
basedamagerating | Enter the base damage rating, as shown on the examine pane. |
damage | Enter the damage dice possible. Use Template:Dice to enter the information. |
damagetype | Enter the types of damage this weapons does. Use Template:DamageType to specify this. |
critprofile | Enter the critical profile, as shown on the examine pane. Use Template:ItemCritProfile to specify this. |
attackmod | Enter the base ability that modifies the attack roll on the weapon. Use Template:WeaponMod to specify this. |
damagemod | Enter the base ability that modifies the damage roll on the weapon. Use Template:WeaponMod to specify this. |
enchantments | These 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. |
description | Enter the description that is on the examine window at the bottom. |
droplocation | 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. |
material | Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron). |
hardness | Enter the hardness shown in the examine window. |
durability | Enter the maximum durability value shown in the examine window. |
update | Which update was this item added to the game in. |
details | Enter any details that a player may need to know about this (i.e. if not working correctly, etc). |
upgradeable | 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. |
restriction | 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. |
sentientexcluded | 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. |
icon | The image to use for the icon instead of the one by name |
image | Image file, use if the image doesn't change between heroic and epic types. Do not include extension. |
bug | Contains any information about a bug related to the item. Use Template:Bug |
replaced | Contains information about any replacement that SSG did of this weapon. Use Template:ItemReplacement |
weight | This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. |
basevalue | This is the base value as shown in the examine window. Use Template:Price. |
emptyaugments | Any Empty augments that this item has. Use Template:EmptyAugments |
itemsets | The item sets that this item has. Use Template:ItemSetList |
otherversions | Other related version (i.e. heroic vs legendary or epic, feytwisted, etc) |
vendorsalecount | 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 |
vendorsaleprice | The cost to buy from the the vendor if the vendorsalecount > 1, if this is not present, it is the base value |
link | The link to this page, if it isn't the same as the name. |
options | Use Template:ItemOptions, displays options about the item |
returning | Use Template:Returning |
upgradedfrom | A list of items this was upgraded from. |
extracategories | A list of extra categories for this weapon, use Template:CategoryList |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.