>Arkalor's Bot
No edit summary
(tidied template up: replaced line breaks with li tags and css for spacing, removed duplicate tooltip code)
Line 1: Line 1:
<includeonly><div style="overflow:auto">
<includeonly><div style="overflow:auto">
<div class="item">
<div class="item tooltip-content">
<div id="itemheader">{{{Name|Name}}}<div style="float:right;">[[File:{{{Icon Image|}}}]]</div></div>
<div id="item_header">
Value: {{{Value|??}}}<br><!--
<div>{{{Name|Name}}}</div>
-->{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|Burden: {{{Burden|??}}}<br><br>}}<!--
<div>[[File:{{{Icon Image}}}]]</div>
-->{{#if:{{{Weapon Skill|}}}|Skill: {{{Weapon Skill|}}} ({{{Weapon Type|}}})<br>}}<!--
</div>
-->{{#if:{{{Damage|}}}|Damage: {{{Damage|?? - ??}}}{{#if:{{{Buffed Damage|}}}|<font color=green> ({{{Buffed Damage|}}})</font>|}}, {{{Element|??}}}|}}{{#if:{{{Damage|}}}|<br>}}<!--
<ul>
-->{{#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>}}<!--
<li>Value: {{{Value|??}}}
-->{{#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>}}<!--
<li class="bottomspace">Burden: {{{Burden|??}}}
-->{{#if:{{{Bonus to Missile|}}}|Bonus to Missile Defense: +{{{Bonus to Missile|}}}%<br>}}<!--
{{#if:{{{Weapon Skill|}}}|<li>Skill: {{{Weapon Skill}}} ({{{Weapon Type}}})}}
-->{{#if:{{{Bonus to Magic|}}}|Bonus to Magic Defense: +{{{Bonus to Magic|}}}%<br>}}<br><!--
{{#if:{{{Damage|}}}|<li>Damage: {{{Damage|?? - ??}}} {{#if:{{{Buffed Damage|}}}|<span>({{{Buffed Damage}}})</span>}}, {{{Element|??}}}}}
-->{{#if:{{{Spells|}}}|Spells: {{{Spells|}}}<br><br>}}<!--
{{#if:{{{Speed|}}}|<li>Speed: {{{Speed|??}}} {{#if:{{{Buffed Speed|}}}|<span>({{{Buffed Speed}}})</span>}}}}
-->{{#if:{{{Special Properties|}}}|Properties: {{{Special Properties|}}}<br><br>}}<!--
{{#if:{{{Bonus to Attack|}}}|<li>Bonus to Attack Skill: +{{{Bonus to Attack}}}% {{#if:{{{Buffed Attack|}}}|<span>({{{Buffed Attack}}}%)</span>}}.}}
-->{{#if:{{{Special Req|}}}|{{{Special Req|}}}<br><br>}}<!--
{{#if:{{{Bonus to Defense|}}}|<li>Bonus to Melee Defense: +{{{Bonus to Defense}}}% {{#if:{{{Buffed Defense|}}}|<span>({{{Buffed Defense}}}%)</span>}}.}}
-->{{#ifeq:{{lc:{{{Player Attuned|}}}}}|true|This item can only be wielded by <Player>.<br><br>}}<!--
{{#if:{{{Bonus to Missile|}}}|<li>Bonus to Missile Defense: +{{{Bonus to Missile}}}%.}}
-->{{#if:{{{Level Req|}}}|Wield requires level {{{Level Req|}}}<br>}}<!--
{{#if:{{{Bonus to Magic|}}}|<li>Bonus to Magic Defense: +{{{Bonus to Magic}}}%.}}
-->{{#if:{{{Base Weapon Req|}}}|Wield requires base {{{Weapon Skill}}} {{{Base Weapon Req|}}}<br>}}<!--
{{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}}
-->{{#if:{{{Buffed Weapon Req|}}}|Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req|}}}<br>}}<!--
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
-->{{#if:{{{Activation Reqs|}}}|Activation requires {{{Activation Reqs}}}<br>}}<!--
{{#if:{{{Special Req|}}}|<li class="bottomspace">{{{Special Req}}}}}
-->{{#if:{{{Spellcraft|}}}|Spellcraft: {{{Spellcraft|}}}<br>}}<!--
{{#if:{{{Level Req|}}}|<li>Wield requires level {{{Level Req}}}}}
-->{{#if:{{{Mana|}}}|Mana: {{{Mana|}}}<br>}}<!--
{{#if:{{{Base Weapon Req|}}}|<li>Wield requires base {{{Weapon Skill}}} {{{Base Weapon Req}}}}}
-->{{#if:{{{Mana Cost|}}}|Mana Cost: 1 point per {{{Mana Cost|??}}} seconds.<br>}}<!--
{{#if:{{{Buffed Weapon Req|}}}|<li>Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req}}}}}
-->{{#ifeq:{{lc:{{{Cannot Be Sold|False}}} }}|true|<br>This item cannot be sold.<br><br>}}<!--
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
-->{{#if:{{{Description|}}}|{{{Description|}}}<br><br>}}<!--
{{#if:{{{Cannot Be Sold|}}}|<li>This item cannot be sold.}}
-->{{#if:{{{Inscription|}}}|<br><hr style="background#F0F0F0;"/>{{{Inscription|}}}<br>}}</div>
{{#if:{{{Spellcraft|}}}|<li>Spellcraft: {{{Spellcraft}}}.}}
<div style="float:right">{{#if:{{{Live Image|}}}|[[File:{{{Live Image|}}}{{!}}thumb{{!}}{{{Live Image Caption|}}}]]|[[File:Live.jpg]]}}</div></div>
{{#if:{{{Mana|}}}|<li>Mana: {{{Mana}}}.}}
{{#if:{{{Mana Cost|}}}|<li>Mana Cost: 1 point per {{{Mana Cost}}} seconds.}}
{{#if:{{{Description Two|}}}|<li class="topbottomspace">{{{Description Two}}}}}
{{#if:{{{Inscription|}}}|<li class="inscription">{{{Inscription}}}}}
</ul></div>
<div style="float:right">{{#ifeq:{{{Live Image|}}}|||{{#ifeq:{{{Live Image|}}}|Live.jpg||[[File:{{{Live Image|}}}{{!}}thumb{{!}}{{{Live Image Caption}}}]]}}}}</div></div>
 
<!-- Categories -->
<!-- Categories -->
{{#ifeq:{{lc:{{{Retired Weapon|}}}}} | yes | [[Category:Retired Melee Weapons]] | <!--
{{#ifeq:{{lc:{{{Retired Weapon|}}}}} | yes | [[Category:Retired Melee Weapons]] |  
-->{{#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
  | heavy weapons = [[Category:Heavy Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Heavy Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Heavy Weapons: No Wield Requirement]]}}
  | heavy weapons = [[Category:Heavy Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Heavy Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Heavy Weapons: No Wield Requirement]]}}
Line 41: Line 47:
  | two handed weapons
  | two handed weapons
  | 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]]}}
  | 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]]}}
}}<!--
}}
-->{{#switch:{{lc:{{{Weapon Type|}}}}}
{{#switch:{{lc:{{{Weapon Type|}}}}}
  | axe = [[Category:Axes]]
  | axe = [[Category:Axes]]
  | dagger = [[Category:Daggers]]
  | dagger = [[Category:Daggers]]
Line 53: Line 59:
  | unarmed combat
  | unarmed combat
  | unarmed weapon = [[Category:Unarmed Weapons]]
  | unarmed weapon = [[Category:Unarmed Weapons]]
}}[[Category:Melee Weapon Index]]}}<!--
}}[[Category:Melee Weapon Index]]}}</includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude>
 
--------------------------------------------------
ITEM TOOLTIP
--------------------------------------------------
 
--><div class="item tooltip-content" style="display:none">
<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 12:34, 15 November 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.