Difference between revisions of "Template:Weapon"
From DDO Compendium
MNDeveloper (talk | contribs) |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 109: | Line 109: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly><div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed"> | ||
<div class="row"> | |||
<div class="col-sm-6"> | |||
<table class="table table-bordered table-striped table-condensed"> | |||
<tr> | <tr> | ||
<td> | <td> | ||
Line 120: | Line 117: | ||
{{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>]]}} | <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>}}}}}} | {{#if: {{{minlevel|}}}|{{#ifexpr:{{{minlevel}}} > 19|{{#if:{{{sentientexcluded|}}}||<br><span style="color:yellow" class="small">[[Sentient Weapons|Accepts Sentience]]</span>}}}}}} | ||
Line 169: | Line 166: | ||
{{#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> | <tr> | ||
<td>{{#if: {{{ | <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> | |||
{{{ | |||
}} | |||
{{#if: {{{droplocation|}}}| | |||
< | |||
< | |||
{{{ | |||
}} | |||
{{#if:{{{details|}}}|''' | |||
{{{ | |||
{{#if:{{{ | |||
{{{ | |||
{{{bug}}} | |||
</td> | |||
</tr> | </tr> | ||
{{#if: {{{replaced|}}}| | {{#if: {{{replaced|}}}| | ||
Line 214: | Line 185: | ||
</tr> | </tr> | ||
}} | }} | ||
</table> | </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> | ||
</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.