m (1 revision: For full history see http://ac.wikkii.net)
>Arkalor's Bot
No edit summary
Line 1: Line 1:
<includeonly>[[Category:Weapon]]{{#switch:{{lc:{{{Weapon Skill|}}}}}
<includeonly><div style="overflow:auto">
| heavy weapons = [[Category:Heavy Weapon]]
<div class="item">
| light weapons = [[Category:Light Weapon]]
<div id="itemheader">{{{Name|Name}}}<div style="float:right;">[[File:{{{Icon Image|}}}]]</div></div>
| finesse weapons = [[Category:Finesse Weapon]]
Value: {{{Value|??}}}<br><!--
| 2h = [[Category:Two Handed Weapon]]
-->{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|Burden: {{{Burden|??}}}<br><br>}}<!--
| thw = [[Category:Two Handed Weapon]]
-->{{#if:{{{Weapon Skill|}}}|Skill: {{{Weapon Skill|}}} ({{{Weapon Type|}}})<br>}}<!--
| two handed = [[Category:Two Handed Weapon]]
-->{{#if:{{{Damage|}}}|Damage: {{{Damage|?? - ??}}}{{#if:{{{Buffed Damage|}}}|<font color=green> ({{{Buffed Damage|}}})</font>|}}, {{{Element|??}}}|}}{{#if:{{{Damage|}}}|<br>}}<!--
| two handed weapon = [[Category:Two Handed Weapon]]
-->{{#if:{{{Speed|}}}|Speed: {{{Speed|??}}}|}}{{#if:{{{Buffed Speed|}}}|<font color=green> ({{{Buffed Speed|}}})</font>|}}<br>{{#if:{{{Bonus to Attack|}}}|Bonus to Attack Skill: +{{{Bonus to Attack|}}}%|}}{{#if:{{{Buffed Attack|}}}|<font color=green> ({{{Buffed Attack|}}}%)</font>|}}{{#if:{{{Bonus to Attack|}}}|<br>}}<!--
| two handed weapons = [[Category:Two Handed Weapon]]
-->{{#if:{{{Bonus to Defense|}}}|Bonus to Melee Defense: +{{{Bonus to Defense|}}}%|}}{{#if:{{{Buffed Defense|}}}|<font color=green> ({{{Buffed Defense|}}}%)</font>|}}{{#if:{{{Bonus to Defense|}}}|<br>}}{{#if:{{{Defense|}}}|Bonus to Melee Defense: {{{Defense|}}}<br>}}<!--
| two handed combat = [[Category:Two Handed Weapon]]
-->{{#if:{{{Bonus to Missile|}}}|Bonus to Missile Defense: +{{{Bonus to Missile|}}}%<br>}}<!--
}}{{#switch:{{lc:{{{Weapon Type|}}}}}
-->{{#if:{{{Bonus to Magic|}}}|Bonus to Magic Defense: +{{{Bonus to Magic|}}}%<br>}}<br><!--
| axe = [[Category:Axe]]
-->{{#if:{{{Spells|}}}|Spells: {{{Spells|}}}<br><br>}}<!--
| dagger = [[Category:Dagger]]
-->{{#if:{{{Special Properties|}}}|Properties: {{{Special Properties|}}}<br><br>}}<!--
| mace = [[Category:Mace]]
-->{{#if:{{{Special Req|}}}|{{{Special Req|}}}<br><br>}}<!--
| spear = [[Category:Spear]]
-->{{#ifeq:{{lc:{{{Player Attuned|}}}}}|true|This item can only be wielded by <Player>.<br><br>}}<!--
| staff = [[Category:Staff]]
-->{{#if:{{{Level Req|}}}|Wield requires level {{{Level Req|}}}<br>}}<!--
| sword = [[Category:Sword]]
-->{{#if:{{{Base Weapon Req|}}}|Wield requires base {{{Weapon Skill}}} {{{Base Weapon Req|}}}<br>}}<!--
| ua = [[Category:UA Weapon]]
-->{{#if:{{{Buffed Weapon Req|}}}|Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req|}}}<br>}}<!--
| unarmed = [[Category:UA Weapon]]
-->{{#if:{{{Activation Reqs|}}}|Activation requires {{{Activation Reqs}}}<br>}}<!--
| unarmed combat = [[Category:UA Weapon]]
-->{{#if:{{{Spellcraft|}}}|Spellcraft: {{{Spellcraft|}}}<br>}}<!--
| unarmed weapon = [[Category:UA Weapon]]
-->{{#if:{{{Mana|}}}|Mana: {{{Mana|}}}<br>}}<!--
}}
-->{{#if:{{{Mana Cost|}}}|Mana Cost: 1 point per {{{Mana Cost|??}}} seconds.<br>}}<!--
{|border=0 cellpadding=0 cellspacing=3 style=width:100%
-->{{#ifeq:{{lc:{{{Cannot Be Sold|False}}} }}|true|<br>This item cannot be sold.<br><br>}}<!--
|-valign=top
-->{{#if:{{{Description|}}}|{{{Description|}}}<br><br>}}<!--
|
-->{{#if:{{{Inscription|}}}|<br><hr style="background#F0F0F0;"/>{{{Inscription|}}}<br>}}</div>
{|border=1 cellspacing=0 cellpadding=5 width=300 style=background:#F0F0F0
<div style="float:right">{{#if:{{{Live Image|}}}|[[File:{{{Live Image|}}}{{!}}thumb{{!}}{{{Live Image Caption|}}}]]|[[File:Live.jpg]]}}</div></div>
!colspan=2|{{{Name|Name}}}
<!-- Categories -->
|-
{{#ifeq:{{lc:{{{Retired Weapon|}}}}} | yes | [[Category:Retired Melee Weapons]] | <!--
|align=center| Value: {{{Value|??}}}<br>{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|{{{Burden|??}}} Burden Units}}
-->{{#ifeq:{{{Live Image|}}} | Live.jpg | [[Category:Images Needed (Weapons)]] | {{#ifeq:{{{Live Image|}}} | | [[Category:Images Needed (Weapons)]] |}}}}<!--
|width=40 align=center| [[Image:{{{Icon Image|Icon.png}}}]]
-->{{#switch:{{lc:{{{Weapon Skill|}}}}}
|-
| heavy weapon
|colspan=2|
| heavy weapons = [[Category:Heavy Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Heavy Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Heavy Weapons: No Wield Requirement]]}}
{{#ifeq:{{{Description|}}}|||{{{Description|}}}<br><br>}}{{#ifeq:{{{Special Properties|}}}|||[[Special Properties]]: {{{Special Properties|}}}<br><br>}}{{#ifeq:{{{Weapon Skill|}}}|||Skill: {{{Weapon Skill|}}} ({{{Weapon Type|}}})<br>}}{{#ifeq:{{{Damage|}}}|||Damage: {{{Damage|?? - ??}}}{{#ifeq:{{{Buffed Damage|}}}|||<b><font color=green> ({{{Buffed Damage|}}})</font></b>}}, {{{Element|??}}}}}{{#ifeq:{{{Damage|}}}|||<br>}}{{#ifeq:{{{Speed|}}}|||Speed: {{{Speed|??}}}}}{{#ifeq:{{{Buffed Speed|}}}||| <b><font color=green> ({{{Buffed Speed|}}})</font></b>}}<br>{{#ifeq:{{{Bonus to Attack|}}}|||Bonus to Attack Skill: +{{{Bonus to Attack|}}}%}}{{#ifeq:{{{Buffed Attack|}}}|||<b><font color=green> ({{{Buffed Attack|}}}%)</font></b>}}{{#ifeq:{{{Bonus to Attack|}}}|||<br>}}{{#ifeq:{{{Bonus to Defense|}}}|||Bonus to Melee Defense: +{{{Bonus to Defense|}}}%}}{{#ifeq:{{{Buffed Defense|}}}|||<b><font color=green> ({{{Buffed Defense|}}}%)</font></b>}}{{#ifeq:{{{Bonus to Defense|}}}|||<br>}}{{#ifeq:{{{Defense|}}}|||Bonus to Melee Defense: {{{Defense|}}}<br>}}{{#ifeq:{{{Bonus to Missile|}}}|||Bonus to Missile Defense: +{{{Bonus to Missile|}}}%<br>}}{{#ifeq:{{{Bonus to Magic|}}}|||Bonus to Magic Defense: +{{{Bonus to Magic|}}}%<br>}}<br>{{#ifeq:{{{Special Req|}}}|||{{{Special Req|}}}<br><br>}}{{#ifeq:{{lc:{{{Player Attuned|}}}}}|true|This item can only be wielded by <Player>.<br><br>|}}{{#ifeq:{{{Level Req|}}}|||You must be at least level {{{Level Req|}}} to wield this item.<br>}}{{#ifeq:{{{Base Weapon Req|}}}|||Your base {{{Weapon Skill}}} must be at least {{{Base Weapon Req|}}} to wield this item.<br>}}{{#ifeq:{{{Buffed Weapon Req|}}}|||Your {{{Weapon Skill}}} must be at least {{{Buffed Weapon Req|}}} to wield this item.<br>}}{{#ifeq:{{{Level Req|}}}||{{#ifeq:{{{Base Weapon Req|}}}||{{#ifeq:{{{Buffed Weapon Req|}}}|||<br>}}|<br>}}|<br>}}{{#ifeq:{{{Spells|}}}|||Casts the following spells: {{{Spells|}}}<br><br>}}{{#ifeq:{{{Activation Reqs|}}}|||Activation Requirements: {{{Activation Reqs}}}<br><br>}}{{#ifeq:{{{Spellcraft|}}}|||Spellcraft: {{{Spellcraft|}}}<br>}}{{#ifeq:{{{Mana|}}}|||Mana: {{{Mana|}}}<br>}}{{#ifeq:{{{Mana Cost|}}}|||Mana Cost: 1 point per {{{Mana Cost|??}}} seconds.<br>}}{{#ifeq:{{lc:{{{Cannot Be Sold|False}}} }}|true|<br>This item cannot be sold.<br>|}}{{#ifeq:{{{Inscription|}}}|||<br><hr style="background#F0F0F0;"/>{{{Inscription|}}}<br>}}
| light weapon
|-
| light weapons = [[Category:Light Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Light Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Light Weapons: No Wield Requirement]]}}
{{#ifeq:{{{Biting Strike Value|}}}|||
| finesse weapon
{{!}}colspan=2 Align=Center{{!}}'''[[Biting Strike|Biting Strike Value]]: <br><font color=Blue>{{{Biting Strike Value}}}%</font>'''}}
| finesse weapons = [[Category:Finesse Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Finesse Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Finesse Weapons: No Wield Requirement]]}}
|-
| 2h
{{#ifeq:{{{Crushing Blow Value|}}}|||
| thw
{{!}}colspan=2 Align=Center{{!}}'''[[Crushing Blow|Crushing Blow Value]]: <br><font color=Red>{{{Crushing Blow Value}}}x</font>'''}}
| two handed
|-
| two handed weapon
|}
| two handed weapons
|width=20|
| two handed combat = [[Category:Two Handed Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Two Handed Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Two Handed Weapons: No Wield Requirement]]}}
|
}}<!--
{{#ifeq:{{{Live Image|Live.jpg}}}
-->{{#switch:{{lc:{{{Weapon Type|}}}}}
  | Live.jpg
  | axe = [[Category:Axes]]
  |  
  | dagger = [[Category:Daggers]]
  | {{#ifeq:{{{Live Image|}}}
  | mace = [[Category:Maces]]
    |  
| spear = [[Category:Spears]]
    |
| staff = [[Category:Staves]]
    | [[Image:{{{Live Image|}}}{{!}}frame{{!}}{{{Live Image Caption}}}|right]]
| sword = [[Category:Swords]]
  }}
| ua
}}
| unarmed
|}</includeonly><noinclude>
| unarmed combat
{{Related|Wiki Templates|Melee Weapon Template}}
| unarmed weapon = [[Category:Unarmed Weapons]]
== Syntax ==
}}[[Category:Melee Weapon Index]]}}<!--
<pre>
{{Melee Weapon
|        Weapon Type =
|      Weapon Skill =
|              Name =
|        Icon Image =  Icon.png
|        Live Image =  Live.jpg
| Live Image Caption =
|
|              Value =
|            Burden =
|        Description =
| Special Properties =
|
|            Damage =
|      Buffed Damage =
|            Element =
|              Speed =
|      Buffed Speed =
|    Bonus to Attack =
|      Buffed Attack =
|  Bonus to Defense =
|    Buffed Defense =
|  Bonus to Missile =
|    Bonus to Magic =
|
|    Player Attuned =
|          Level Req =
|    Base Weapon Req =
|  Buffed Weapon Req =
|        Special Req =
|
|            Spells =
|    Activation Reqs =
|        Spellcraft =
|              Mana =
|          Mana Cost =
|    Cannot Be Sold = False
|Biting Strike Value =
|Crushing Blow Value =
}}
</pre>


== Usage ==
--------------------------------------------------
This template is one component of the page template [[Melee Weapon Stat Template]], full details and an example can be found there.
ITEM TOOLTIP
--------------------------------------------------


[[Category:Wiki Template]]
--><div class="item tooltip-content" style="display:none">
</noinclude>
<p>{{{Name}}}</p>Value: {{{Value|??}}}<br>{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|Burden: {{{Burden|??}}}<br><br>}}{{#if:{{{Weapon Skill|}}}|Skill: {{{Weapon Skill|}}} ({{{Weapon Type|}}})<br>|}}{{#if:{{{Damage|}}}|Damage: {{{Damage|?? - ??}}}{{#if:{{{Buffed Damage|}}}|<font color=green> ({{{Buffed Damage|}}})</font>|}}, {{{Element|??}}}|}}{{#if:{{{Damage|}}}|<br>|}}{{#if:{{{Speed|}}}|Speed: {{{Speed|??}}}|}}{{#if:{{{Buffed Speed|}}}|<font color=green> ({{{Buffed Speed|}}})</font>|}}<br>{{#if:{{{Bonus to Attack|}}}|Bonus to Attack Skill: +{{{Bonus to Attack|}}}%|}}{{#if:{{{Buffed Attack|}}}|<font color=green> ({{{Buffed Attack|}}}%)</font>|}}{{#if:{{{Bonus to Attack|}}}|<br>|}}{{#if:{{{Bonus to Defense|}}}|Bonus to Melee Defense: +{{{Bonus to Defense|}}}%|}}{{#if:{{{Buffed Defense|}}}|<font color=green> ({{{Buffed Defense|}}}%)</font>|}}{{#if:{{{Bonus to Defense|}}}|<br>|}}{{#if:{{{Defense|}}}|Bonus to Melee Defense: {{{Defense|}}}<br>|}}{{#if:{{{Bonus to Missile|}}}|Bonus to Missile Defense: +{{{Bonus to Missile|}}}%<br>|}}{{#if:{{{Bonus to Magic|}}}|Bonus to Magic Defense: +{{{Bonus to Magic|}}}%<br>|}}<br>{{#if:{{{Spells|}}}|Spells: {{{Spells|}}}<br><br>|}}{{#if:{{{Special Properties|}}}|Properties: {{{Special Properties|}}}<br><br>|}}{{#if:{{{Special Req|}}}|{{{Special Req|}}}<br><br>|}}{{#ifeq:{{lc:{{{Player Attuned|}}}}}|true|This item can only be wielded by <Player>.<br><br>|}}{{#if:{{{Level Req|}}}|Wield requires level {{{Level Req|}}}<br>|}}{{#if:{{{Base Weapon Req|}}}|Wield requires base {{{Weapon Skill}}} {{{Base Weapon Req|}}}<br>|}}{{#if:{{{Buffed Weapon Req|}}}|Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req|}}}<br>|}}{{#if:{{{Activation Reqs|}}}|Activation requires {{{Activation Reqs}}}<br>|}}{{#if:{{{Spellcraft|}}}|Spellcraft: {{{Spellcraft|}}}<br>|}}{{#if:{{{Mana|}}}|Mana: {{{Mana|}}}<br>|}}{{#if:{{{Mana Cost|}}}|Mana Cost: 1 point per {{{Mana Cost|??}}} seconds.<br>|}}{{#ifeq:{{lc:{{{Cannot Be Sold|False}}} }}|true|<br>This item cannot be sold.<br>|<br>}}{{#if:{{{Description|}}}|{{{Description|}}}<br><br>}}{{#if:{{{Inscription|}}}|<br><hr style="background#F0F0F0;"/>{{{Inscription|}}}<br>|}}</div><!--
 
--></includeonly><noinclude>{{Documentation}}[[Category:Wiki Template]]</noinclude>

Revision as of 01:47, 16 April 2014

Template Documentation: Weapon| |_}}/Doc?action=edit Edit Documentation

Related topics: Wiki Templates, Melee Weapon Template

Syntax

{{Melee Weapon
 |        Weapon Type = 
 |       Weapon Skill = 
 |               Name = 
 |         Icon Image =  Icon.png
 |         Live Image =  Live.jpg
 | Live Image Caption = 
 | 
 |              Value = 
 |             Burden = 
 |        Description = 
 | Special Properties = 
 | 
 |             Damage = 
 |      Buffed Damage = 
 |            Element = 
 |              Speed = 
 |       Buffed Speed = 
 |    Bonus to Attack = 
 |      Buffed Attack = 
 |   Bonus to Defense = 
 |     Buffed Defense = 
 |   Bonus to Missile = 
 |     Bonus to Magic = 
 | 
 |     Player Attuned = 
 |          Level Req = 
 |    Base Weapon Req = 
 |  Buffed Weapon Req = 
 |        Special Req = 
 | 
 |             Spells = 
 |    Activation Reqs = 
 |         Spellcraft = 
 |               Mana = 
 |          Mana Cost = 
 |     Cannot Be Sold = False
 |Biting Strike Value =
 |Crushing Blow Value =
}}

Usage

This template is one component of the page template Melee Weapon Stat Template, full details and an example can be found there.