Template:Missile Weapon: Difference between revisions
Jump to navigation
Jump to search
imported>Arkalor (tidied template up: replaced line breaks with li tags and css for spacing, removed duplicate tooltip code) |
No edit summary |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
<li>Value: {{{Value|??}}} | <li>Value: {{{Value|??}}} | ||
<li class="bottomspace">Burden: {{{Burden|??}}} | <li class="bottomspace">Burden: {{{Burden|??}}} | ||
{{#if:{{{Set|}}}|<li class="bottomspace">Set: {{{Set}}}}} | |||
{{#if:{{{Weapon Skill|}}}|<li>Skill: {{{Weapon Skill}}} ({{{Weapon Type}}})}} | {{#if:{{{Weapon Skill|}}}|<li>Skill: {{{Weapon Skill}}} ({{{Weapon Type}}})}} | ||
{{#ifeq:{{{Damage Bonus|}}}||<li>Damage: {{{Damage|?? - ??}}}, {{{Element|??}}}|<li>Damage Bonus: {{{Damage Bonus|}}} {{#if:{{{Buffed Damage Bonus|}}}|<span>({{{Buffed Damage Bonus|}}})</span>|}}}} | {{#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:{{{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:{{{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:{{{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:{{{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 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 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}}}%}} | ||
{{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}} | {{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}} | ||
{{#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}}}}} | ||
Line 28: | Line 29: | ||
{{#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.}} | {{#if:{{{Cannot Be Sold|}}}|<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 | {{#if:{{{Description|}}}|<li class="topbottomspace">{{{Description}}}}} | ||
{{#if:{{{Inscription|}}}|<li class="inscription">{{{Inscription}}}}}</ul></div> | {{#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> | <div style="float:right">{{#ifeq:{{{Live Image|}}}|||{{#ifeq:{{{Live Image|}}}|Live.jpg||[[File:{{{Live Image|}}}{{!}}thumb{{!}}{{{Live Image Caption}}}]]}}}}</div></div> | ||
<!-- Categories --> | <!-- 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||{{#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|}}}}} | {{#switch:{{lc:{{{Weapon Type|}}}}} | ||
| ammunition = [[Category:Ammunition]] | | ammunition = [[Category:Ammunition]] | ||
Line 47: | Line 49: | ||
| thrown weapons = {{#if:{{{Damage|}}}|{{#if:{{{Special Req|}}}|[[Category:Thrown Weapons: Alchemy Phial]]|[[Category:Thrown Weapons: Non Atlatl]]}}|[[Category:Thrown Weapons: Atlatl]]}} | | thrown weapons = {{#if:{{{Damage|}}}|{{#if:{{{Special Req|}}}|[[Category:Thrown Weapons: Alchemy Phial]]|[[Category:Thrown Weapons: Non Atlatl]]}}|[[Category:Thrown Weapons: Atlatl]]}} | ||
}} | }} | ||
}}</includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude> |
Latest revision as of 21:37, 13 October 2024
Template Documentation: | Weapon&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.