Template:Missile Weapon: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Arkalor
No edit summary
imported>Arkalor
(buffed damage for thrown weapons)
 
Line 1: Line 1:
<includeonly>[[Category:Weapon]][[Category:Missile Weapon]]{{#switch:{{lc:{{{Weapon Type|}}}}}
<includeonly><div style="overflow:auto">
  | bow = [[Category:Bow]]
<div class="item tooltip-content">
  | crossbow = [[Category:Crossbow]]
<div id="item_header">
  | xbow = [[Category:Crossbow]]
<div>{{{Name|Name}}}</div>
  | tw = [[Category:Thrown Weapon]]
<div>[[File:{{{Icon Image}}}]]</div>
  | thrown weapons = [[Category:Thrown Weapon]]
</div>
| thrown weapon = [[Category:Thrown Weapon]]
<ul>
| thrown = [[Category:Thrown Weapon]]
<li>Value: {{{Value|??}}}
<li class="bottomspace">Burden: {{{Burden|??}}}
{{#if:{{{Weapon Skill|}}}|<li>Skill: {{{Weapon Skill}}} ({{{Weapon Type}}})}}
{{#ifeq:{{{Damage Bonus|}}}||<li>Damage: {{{Damage|?? - ??}}} {{#if:{{{Buffed Damage|}}}|<span>({{{Buffed Damage|}}})</span>}}, {{{Element|??}}}|<li>Damage Bonus: {{{Damage Bonus|}}} {{#if:{{{Buffed Damage Bonus|}}}|<span>({{{Buffed Damage Bonus|}}})</span>|}}}}
{{#if:{{{Additional|}}}|<li class="bottomspace">{{{Additional}}}}}
{{#if:{{{Elemental Damage Bonus|}}}|<li>Elemental Damage Bonus: {{{Elemental Damage Bonus|}}}{{#if:{{{Element|}}}|, {{{Element|}}}}}}}
{{#if:{{{Damage Modifier|}}}|<li>Damage Modifier: +{{{Damage Modifier}}}% {{#if:{{{Buffed Damage Modifier|}}}|<span>({{{Buffed Damage Modifier|}}}%)</span>}}}}
{{#if:{{{Speed|}}}|<li>Speed: {{{Speed|??}}} {{#if:{{{Buffed Speed|}}}|<span>({{{Buffed Speed}}})</span>|}}}}
{{#if:{{{Range|}}}|<li>Range: {{{Range|}}} yds. {{#if:{{{Buffed Range|}}}|<span>({{{Buffed Range}}})</span>|}}}}
{{#if:{{{Ammunition|}}}|<li>Uses {{{Ammunition|??}}} as ammunition.}}
{{#if:{{{Bonus to Defense|}}}|<li>Bonus to Melee Defense: {{#ifeq:{{#sub:{{{Bonus to Defense|}}}|0|1}}|-||+}}{{{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 Magic|}}}|<li>Bonus to Magic Defense: +{{{Bonus to Magic}}}%}}
{{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}}
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
{{#if:{{{Special Req|}}}|<li class="bottomspace">{{{Special Req}}}}}
{{#if:{{{Level Req|}}}|<li>Wield requires {{{Level Req}}}}}
{{#if:{{{Fletching Req|}}}|<li>Wield requires base Fletching {{{Fletching Req}}}}}
{{#if:{{{Base Weapon Req|}}}|{{#ifeq:{{lc:{{{Weapon Type|}}}}}|ammunition|<li>Wield requires base Missile Weapons {{{Base Weapon Req|}}}|<li>Wield requires {{{Weapon Skill}}} {{{Base Weapon Req}}}}}}}
{{#if:{{{Buffed Weapon Req|}}}|<li>Wield requires {{{Weapon Skill}}} {{{Buffed Weapon Req}}}}}
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
{{#if:{{{Cannot Be Sold|}}}|<li>This item cannot be sold.}}
{{#if:{{{Rare Number|}}}|<li>Rare #{{{Rare Number}}}}}
{{#if:{{{Spellcraft|}}}|<li>Spellcraft: {{{Spellcraft}}}.}}
{{#if:{{{Mana|}}}|<li>Mana: {{{Mana}}}.}}
{{#if:{{{Mana Cost|}}}|<li>Mana Cost: 1 point per {{{Mana Cost}}} seconds.}}
{{#if:{{{Description|}}}|<li class="topbottomspace">{{{Description}}}}}
{{#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 -->
{{#if:{{{nocat|}}} | | {{#ifeq:{{lc:{{{Weapon Type|}}}}}|ammunition||{{#ifeq:{{{Live Image|}}} | Live.jpg | [[Category:Images Needed (Weapons)]] | {{#ifeq:{{{Live Image|}}} | | [[Category:Images Needed (Weapons)]] |}}}}}}
{{#ifeq:{{lc:{{{Weapon Type|}}}}}|ammunition||[[Category:Missile Weapons]]{{#if:{{{Base Weapon Req|}}}|[[Category:Missile Weapons: Wield {{{Base Weapon Req}}}]]|[[Category:Missile Weapons: No Wield Requirement]]}}}}
{{#switch:{{lc:{{{Weapon Type|}}}}}
  | ammunition = [[Category:Ammunition]]
  | bow = [[Category:Bows]]
  | xbow
| crossbow = [[Category:Crossbows]]
  | tw
| thrown
| thrown weapon
  | thrown weapons = {{#if:{{{Damage|}}}|{{#if:{{{Special Req|}}}|[[Category:Thrown Weapons: Alchemy Phial]]|[[Category:Thrown Weapons: Non Atlatl]]}}|[[Category:Thrown Weapons: Atlatl]]}}
}}
}}
{|border=0 cellpadding=0 cellspacing=3 style=width:100%
}}</includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude>
|-valign=top
|
{|border=1 cellspacing=0 cellpadding=5 width=300 style=background:#F0F0F0
!colspan=2|{{{Name|Name}}}
|-
|align=center| Value: {{{Value|??}}}<br>{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|{{{Burden|??}}} Burden Units}}
|width=40 align=center| [[Image:{{{Icon Image|Icon.png}}}]]
|-
|colspan=2|
{{#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 Bonus|}}}|||Damage Bonus: {{{Damage Bonus|}}}{{#ifeq:{{{Buffed Damage Bonus|}}}|||<b><font color=green> ({{{Buffed Damage Bonus|}}})</font></b>}}}}{{#ifeq:{{{Damage Bonus|}}}|||<br>}}{{#ifeq:{{{Elemental Damage Bonus|}}}|||Elemental Damage Bonus: {{{Elemental Damage Bonus|}}}{{#ifeq:{{{Element|}}}|||, {{{Element|}}} }}}}{{#ifeq:{{{Elemental Damage Bonus|}}}|||<br>}}{{#ifeq:{{{Damage Modifier|}}}|||Damage Modifier: +{{{Damage Modifier|}}}%}}{{#ifeq:{{{Buffed Damage Modifier|}}}||| <b><font color=green> ({{{Buffed Damage Modifier|}}}%)</font></b>}}{{#ifeq:{{{Damage Modifier|}}}|||<br>}}{{#ifeq:{{{Modifier|}}}|||Damage Modifier: {{{Modifier|}}}<br>}}{{#ifeq:{{{Speed|}}}|||Speed: {{{Speed|??}}}}}{{#ifeq:{{{Buffed Speed|}}}||| <b><font color=green> ({{{Buffed Speed|}}})</font></b>}}<br>{{#ifeq:{{{Range|}}}|||Range: {{{Range|}}} yds}}{{#ifeq:{{{Buffed Range|}}}||| <b><font color=green> ({{{Buffed Range|}}} yds)</font></b>}}<br>}}{{#ifeq:{{{Ammunition|}}}|||Uses {{{Ammunition|}}} as ammunition.<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|}}}|||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>}}
|-
|}
|width=20|
|
{{#ifeq:{{{Live Image|Live.jpg}}}
| Live.jpg
|
| {{#ifeq:{{{Live Image|}}}
    |
    |
    | [[Image:{{{Live Image|}}}{{!}}frame{{!}}{{{Live Image Caption}}}|right]]
  }}
}}
|}</includeonly><noinclude>
{{Related|Wiki Templates|Missile Weapon Template}}
== Syntax ==
<pre>
{{Missile Weapon
|            Weapon Type =
|          Weapon Skill = Missile Weapons
|                  Name =
|            Icon Image =  Icon.png
|            Live Image =  Live.jpg
|    Live Image Caption =
|
|                  Value =
|                Burden =
|            Description =
|    Special Properties =
|
|          Damage Bonus =
|    Buffed Damage Bonus =
| Elemental Damage Bonus =
|                Element =
|        Damage Modifier =
| Buffed Damage Modifier =
|                  Speed =
|          Buffed Speed =
|                  Range =
|          Buffed Range =
|            Ammunition =
|      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
}}
</pre>
 
== Usage ==
This template is one component of the page template [[Missile Weapon Stat Template]], full details and an example can be found there.
 
[[Category:Wiki Template]]
</noinclude>

Latest revision as of 13:27, 30 January 2016

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

Related topics: Wiki Templates, Missile Weapon Template

Syntax

{{Missile Weapon
 |            Weapon Type = 
 |           Weapon Skill = Missile Weapons
 |                   Name = 
 |             Icon Image =  Icon.png
 |             Live Image =  Live.jpg
 |     Live Image Caption = 
 | 
 |                  Value = 
 |                 Burden = 
 |            Description = 
 |     Special Properties = 
 | 
 |           Damage Bonus = 
 |    Buffed Damage Bonus = 
 | Elemental Damage Bonus = 
 |                Element = 
 |        Damage Modifier = 
 | Buffed Damage Modifier =
 |                  Speed = 
 |           Buffed Speed = 
 |                  Range =
 |           Buffed Range =
 |             Ammunition = 
 |       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
}}

Usage

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