(tidied template up: replaced line breaks with li tags and css for spacing, removed duplicate tooltip code)
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 11: Line 11:
{{#if:{{{Damage|}}}|<li>Damage: {{{Damage|?? - ??}}} {{#if:{{{Buffed Damage|}}}|<span>({{{Buffed Damage}}})</span>}}, {{{Element|??}}}}}
{{#if:{{{Damage|}}}|<li>Damage: {{{Damage|?? - ??}}} {{#if:{{{Buffed Damage|}}}|<span>({{{Buffed Damage}}})</span>}}, {{{Element|??}}}}}
{{#if:{{{Speed|}}}|<li>Speed: {{{Speed|??}}} {{#if:{{{Buffed Speed|}}}|<span>({{{Buffed Speed}}})</span>}}}}
{{#if:{{{Speed|}}}|<li>Speed: {{{Speed|??}}} {{#if:{{{Buffed Speed|}}}|<span>({{{Buffed Speed}}})</span>}}}}
{{#if:{{{Bonus to Attack|}}}|<li>Bonus to Attack Skill: +{{{Bonus to Attack}}}% {{#if:{{{Buffed Attack|}}}|<span>({{{Buffed Attack}}}%)</span>}}.}}
{{#if:{{{Bonus to Attack|}}}|<li>Bonus to Attack Skill: +{{{Bonus to Attack}}}% {{#if:{{{Buffed Attack|}}}|<span>({{{Buffed Attack}}}%)</span>}}}}
{{#if:{{{Bonus to Defense|}}}|<li>Bonus to Melee Defense: +{{{Bonus to Defense}}}% {{#if:{{{Buffed Defense|}}}|<span>({{{Buffed Defense}}}%)</span>}}.}}
{{#if:{{{Bonus to Defense|}}}|<li>Bonus to Melee Defense: +{{{Bonus to Defense}}}% {{#if:{{{Buffed Defense|}}}|<span>({{{Buffed Defense}}}%)</span>}}}}
{{#if:{{{Bonus to Missile|}}}|<li>Bonus to Missile Defense: +{{{Bonus to Missile}}}%.}}
{{#if:{{{Bonus to Missile|}}}|<li>Bonus to Missile Defense: +{{{Bonus to Missile}}}%.}}
{{#if:{{{Bonus to Magic|}}}|<li>Bonus to Magic Defense: +{{{Bonus to Magic}}}%.}}
{{#if:{{{Bonus to Magic|}}}|<li>Bonus to Magic Defense: +{{{Bonus to Magic}}}%.}}
Line 18: Line 18:
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
{{#if:{{{Special Req|}}}|<li class="bottomspace">{{{Special Req}}}}}
{{#if:{{{Special Req|}}}|<li class="bottomspace">{{{Special Req}}}}}
{{#ifeq:{{lc:{{{Player Attuned|}}}}}|true|<li>Wield requires [Player Character]|}}
{{#if:{{{Level Req|}}}|<li>Wield requires level {{{Level Req}}}}}
{{#if:{{{Level Req|}}}|<li>Wield requires level {{{Level Req}}}}}
{{#if:{{{Base Weapon Req|}}}|<li>Wield requires base {{{Weapon Skill}}} {{{Base Weapon Req}}}}}
{{#if:{{{Base Weapon Req|}}}|<li>Wield requires base {{{Weapon Skill}}} {{{Base Weapon Req}}}}}
{{#if:{{{Buffed Weapon Req|}}}|<li>Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req}}}}}
{{#if:{{{Buffed Weapon Req|}}}|<li>Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req}}}}}
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
{{#if:{{{Cannot Be Sold|}}}|<li>This item cannot be sold.}}
{{#ifeq:{{lc:{{{Cannot Be Sold|}}}}}|true|<li>This item cannot be sold.|}}
{{#if:{{{Rare Number|}}}|<li>Rare #{{{Rare Number}}}}}
{{#if:{{{Spellcraft|}}}|<li>Spellcraft: {{{Spellcraft}}}.}}
{{#if:{{{Spellcraft|}}}|<li>Spellcraft: {{{Spellcraft}}}.}}
{{#if:{{{Mana|}}}|<li>Mana: {{{Mana}}}.}}
{{#if:{{{Mana|}}}|<li>Mana: {{{Mana}}}.}}
{{#if:{{{Mana Cost|}}}|<li>Mana Cost: 1 point per {{{Mana Cost}}} seconds.}}
{{#if:{{{Mana Cost|}}}|<li>Mana Cost: 1 point per {{{Mana Cost}}} seconds.}}
{{#if:{{{Description Two|}}}|<li class="topbottomspace">{{{Description Two}}}}}
{{#if:{{{Description|}}}|<li class="topbottomspace">{{{Description}}}}}
{{#if:{{{Inscription|}}}|<li class="inscription">{{{Inscription}}}}}
{{#if:{{{Inscription|}}}|<li class="inscription">{{{Inscription}}}}}
</ul></div>
</ul></div>
Line 32: Line 34:


<!-- Categories -->
<!-- Categories -->
{{#ifeq:{{lc:{{{Retired Weapon|}}}}} | yes | [[Category:Retired Melee Weapons]] |  
{{#if:{{{nocat|}}}| | {{#ifeq:{{{Live Image|}}} | Live.jpg | [[Category:Images Needed (Weapons)]] | {{#ifeq:{{{Live Image|}}} | | [[Category:Images Needed (Weapons)]] |}}}}
{{#ifeq:{{{Live Image|}}} | Live.jpg | [[Category:Images Needed (Weapons)]] | {{#ifeq:{{{Live Image|}}} | | [[Category:Images Needed (Weapons)]] |}}}}
{{#switch:{{lc:{{{Weapon Skill|}}}}}
{{#switch:{{lc:{{{Weapon Skill|}}}}}
  | heavy weapon
  | heavy weapon
Line 59: Line 60:
  | unarmed combat
  | unarmed combat
  | unarmed weapon = [[Category:Unarmed Weapons]]
  | unarmed weapon = [[Category:Unarmed Weapons]]
}}[[Category:Melee Weapon Index]]}}</includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude>
}}}} </includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude>

Latest revision as of 19:56, 27 November 2016

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

Related topics: Wiki Templates, Melee Weapon Template

Syntax Edit

{{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 Edit

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