Difference between revisions of "Template:Weapon"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(24 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. | |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. | |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. | |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. | |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. | |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]]. | |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. | |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. | |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. | |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. | |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. | |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. | |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. | |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. | |parameter29description = This is the base value as shown in the examine window. Use [[Template:Price]]. | ||
}} | }} | ||
</noinclude><includeonly> | </noinclude> | ||
< | <includeonly><div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed"> | ||
< | |||
<table class=" | |||
<tr> | <tr> | ||
<td> | <td> | ||
<table class=" | <table class="table"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-1"> | ||
{{IconImage|{{{name}}}|{{{icon|}}}}} | {{IconImage|{{{name}}}|{{{icon|}}}}} | ||
</td> | </td> | ||
<td class=" | <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> | </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: {{{basedamagerating|}}}|'''Base Damage:''' {{{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: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}} | ||
{{{enchantments|}}}{{ItemMaterialDR|{{{material}}}|{{{type}}} | {{ItemBinding|{{{binding}}}}}<br> | ||
{{#if: {{{basedamagerating|}}}|'''Base Damage:''' {{{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}}}}} | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>'''Enchantments:''' | |||
{{{enchantments|}}} | |||
{{ItemMaterialDR|{{{material}}}|{{{type}}}}} | |||
</td> | </td> | ||
</tr>{{ | </tr> | ||
<tr> | |||
<td>{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}} | |||
</td> | </td> | ||
< | </tr> | ||
< | <tr> | ||
{{# | <td>{{#if: {{{description|}}}|''{{{description}}}''}}</td> | ||
</tr> | |||
{{#if: {{{weight|}}}{{{basevalue|}}}| | |||
<tr> | |||
<td> | |||
<table class="table"> | |||
<tr> | <tr> | ||
<td class=" | <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> | </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|center|300px|]]</td> | |||
</tr> | |||
}} | |||
|#default= | |||
<tr style="background: rgb(0,0,0);> | |||
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | |||
</tr> | |||
}} | |||
<tr> | |||
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | |||
|[[Category:Items without a Drop Location]]}}{{#if: {{{details|}}} | {{#if: {{{droplocation|}}}|<br><br>}}'''Extra Details:''' {{WrapMultiLine|{{{details}}}}}}}{{#if: {{{upgradeable|}}} | {{#if: {{{droplocation|}}}{{{details|}}}|<br><br>}}'''Upgradeable:''' {{WrapMultiLine|{{{upgradeable}}}}}}}{{#if: {{{bug|}}} |{{#if: {{{droplocation|}}}{{{details|}}}{{{upgradeable|}}}|<br><br>}} '''Bugs:''' {{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 17:17, 4 April 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 | |
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. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.