>Arkalor's Bot
No edit summary
(replaced br tags 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:{{{Covers|}}}|Covers {{{Covers|}}}<br>}}<br><!--
</div>
-->{{#ifeq:{{lc:{{{Armor Type|}}}}}|shield|Base Shield Level: {{{Armor Level|??}}}{{#if:{{{Buffed Armor Level|}}}|<font color=green> ({{{Buffed Armor Level|}}})</font>}}<br><br>|}}<!--
<li>Value: {{{Value|??}}}
-->{{#if:{{{Slashing|}}}|Armor Level: {{{Armor Level|??}}}{{#if:{{{Buffed Armor Level|}}}|<font color=green> ({{{Buffed Armor Level|}}})</font>}}<br>}}<!--
<li class="bottomspace">Burden: {{{Burden|??}}}
-->{{#if:{{{Slashing|}}}|Slashing: {{{Slashing|??}}}{{#if:{{{Buffed Slashing AL|}}}|<font color=green> ({{{Buffed Slashing AL|}}})</font>}}<br>}}<!--
{{#if:{{{Covers|}}}|<li class="bottomspace">Covers {{{Covers}}}}}
-->{{#if:{{{Piercing|}}}|Piercing: {{{Piercing|??}}}{{#if:{{{Buffed Piercing AL|}}}|<font color=green> ({{{Buffed Piercing AL|}}})</font>}}<br>}}<!--
{{#ifeq:{{lc:{{{Armor Type|}}}}}|shield|<li>Base Shield Level: {{{Armor Level|??}}} {{#if:{{{Buffed Armor Level|}}}|<span>{{{Buffed Armor Level}}})</span>}}}}
-->{{#if:{{{Bludgeoning|}}}|Bludgeoning: {{{Bludgeoning|??}}}{{#if:{{{Buffed Bludgeon AL|}}}|<font color=green> ({{{Buffed Bludgeon AL|}}})</font>}}<br>}}<!--
{{#if:{{{Slashing|}}}|<li>Armor Level: {{{Armor Level|??}}} {{#if:{{{Buffed Armor Level|}}}|<span>({{{Buffed Armor Level}}})</span>}}}}
-->{{#if:{{{Fire|}}}|Fire: {{{Fire|??}}}{{#if:{{{Buffed Fire AL|}}}|<font color=green> ({{{Buffed Fire AL|}}})</font>}}<br>}}<!--
{{#if:{{{Slashing|}}}|<li>Slashing: {{{Slashing|??}}} {{#if:{{{Buffed Slashing AL|}}}|<span>({{{Buffed Slashing AL}}})</span>}}}}
-->{{#if:{{{Cold|}}}|Cold: {{{Cold|??}}}{{#if:{{{Buffed Cold AL|}}}|<font color=green> ({{{Buffed Cold AL|}}})</font>}}<br>}}<!--
{{#if:{{{Piercing|}}}|<li>Piercing: {{{Piercing|??}}} {{#if:{{{Buffed Piercing AL|}}}|<span>({{{Buffed Piercing AL}}})</span>}}}}
-->{{#if:{{{Acid|}}}|Acid: {{{Acid|??}}}{{#if:{{{Buffed Acid AL|}}}|<font color=green> ({{{Buffed Acid AL|}}})</font>}}<br>}}<!--
{{#if:{{{Bludgeoning|}}}|<li>Bludgeoning: {{{Bludgeoning|??}}} {{#if:{{{Buffed Bludgeon AL|}}}|<span>({{{Buffed Bludgeon AL}}})</span>}}}}
-->{{#if:{{{Electric|}}}|Electric: {{{Electric|??}}}{{#if:{{{Buffed Electric AL|}}}|<font color=green> ({{{Buffed Electric AL|}}})</font>}}<br>}}<!--
{{#if:{{{Fire|}}}|<li>Fire: {{{Fire|??}}} {{#if:{{{Buffed Fire AL|}}}|<span>({{{Buffed Fire AL}}})</span>}}}}
-->{{#if:{{{Slashing|}}}|Nether: Average ({{{Armor Level|??}}})<!--
{{#if:{{{Cold|}}}|<li>Cold: {{{Cold|??}}} {{#if:{{{Buffed Cold AL|}}}|<span>({{{Buffed Cold AL}}})</span>}}}}
-->{{#if:{{{Buffed Armor Level|}}}|<font color=green> ({{{Buffed Armor Level|}}})</font>}}<br>}}<!--
{{#if:{{{Acid|}}}|<li>Acid: {{{Acid|??}}} {{#if:{{{Buffed Acid AL|}}}|<span>({{{Buffed Acid AL}}})</span>}}}}
-->{{#if:{{{Spells|}}}|<br>Spells: {{{Spells}}}<br>}}<!--
{{#if:{{{Electric|}}}|<li>Electric: {{{Electric|??}}} {{#if:{{{Buffed Electric AL|}}}|<span>({{{Buffed Electric AL}}})</span>}}}}
-->{{#if:{{{Special Properties|}}}|<br>Properties: {{{Special Properties}}}<br><br>}}<!--
{{#if:{{{Slashing|}}}|<li>Nether: Average ({{{Armor Level|??}}}) {{#if:{{{Buffed Armor Level|}}}|<span>({{{Buffed Armor Level}}})</span>}}}}
-->{{#if:{{{Special Properties|}}}||<br>}}<!--
{{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}}
-->{{#if:{{{Special Req|}}}|{{{Special Req|}}}<br>}}<!--
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
-->{{#if:{{{Level Req|}}}|Wield requires level {{{Level Req}}}<br>}}<!--
{{#if:{{{Level Req|}}}|<li>Wield requires level {{{Level Req}}}}}
-->{{#ifeq:{{lc:{{{Cannot Be Sold|}}}}}|true|<br>This item cannot be sold.<br>|}}<!--
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
-->{{#if:{{{Activation Reqs|}}}|Activation requires {{{Activation Reqs}}}<br>}}<!--
{{#if:{{{Special Req|}}}|<li>{{{Special Req|}}}}}
-->{{#if:{{{Spellcraft|}}}|Spellcraft: {{{Spellcraft}}}<br>}}<!--
{{#if:{{{Item Level|}}}|<li>Item Level: {{{Item Level|}}}}}
-->{{#if:{{{Mana|}}}|Mana: {{{Mana}}}<br>}}<!--
{{#if:{{{Item XP|}}}|<li class="bottomspace">Item XP: {{{Item XP|}}}}}
-->{{#if:{{{Mana Cost|}}}|Mana Cost: 1 point per {{{Mana Cost|??}}} seconds.<br><br>}}<!--
{{#if:{{{Recommended Level|}}}|<li>Recommended Level: {{{Recommended Level}}}}}
-->{{#if:{{{Description|}}}|{{{Description}}}<br><br>}}<!--
{{#if:{{{Cannot Be Sold|}}}|<li class="bottomspace">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}}}}}</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 Armor|}}}}} | yes | [[Category:Retired Armor]] | <!--
{{#ifeq:{{lc:{{{Retired Armor|}}}}} | yes | [[Category:Retired Armor]] |  
-->{{#ifeq:{{{Live Image|}}} | Live.jpg | [[Category:Images Needed (Armor)]] | {{#ifeq:{{{Live Image|}}} | | [[Category:Images Needed (Armor)]] |}}}}<!--
{{#ifeq:{{{Live Image|}}} | Live.jpg | [[Category:Images Needed (Armor)]] | {{#ifeq:{{{Live Image|}}} | | [[Category:Images Needed (Armor)]] |}}}}
-->[[Category:Armor Index]]{{#ifeq:{{{Level Req|}}}||{{#ifeq:{{lc:{{{Armor Type|}}}}}|costume items||{{#ifeq:{{{Special Req|}}}||[[Category:{{{Armor Type}}}: No Level Requirement]][[Category:Armor: No Level Requirement]]|[[Category:{{{Armor Type}}}: Special Requirement]][[Category:Armor: Special Requirement]]}}|}}|[[Category:{{{Armor Type}}}: Level {{{Level Req}}}]][[Category:Armor: Level {{{Level Req}}}]]}}<!--
[[Category:Armor Index]]{{#if:{{{Level Req|}}}|[[Category:Armor: Level {{{Level Req}}}]]|[[Category:Armor: No Level Requirement]]}}
-->{{#switch:{{lc:{{{Armor Type|}}}}}
{{#switch:{{lc:{{{Armor Type|}}}}}
  | lower body armor = [[Category:Lower Body Armor]]
  | lower body armor = [[Category:Lower Body Armor]]
  | upper body armor = [[Category:Upper Body Armor]]
  | upper body armor = [[Category:Upper Body Armor]]
Line 45: Line 49:
  | tattoos = [[Category:Tattoo]]
  | tattoos = [[Category:Tattoo]]
  | olthoi racial armor = [[Category:Olthoi Racial Armor]]
  | olthoi racial armor = [[Category:Olthoi Racial Armor]]
}}}}<!--
}}}}</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:{{{Covers|}}}|Covers {{{Covers|}}}<br>}}<br>{{#ifeq:{{lc:{{{Armor Type|}}}}}|shield|Base Shield Level: {{{Armor Level|??}}}{{#if:{{{Buffed Armor Level|}}}|<font color=green> ({{{Buffed Armor Level|}}})</font>}}<br><br>|}}{{#if:{{{Slashing|}}}|Armor Level: {{{Armor Level|??}}}{{#if:{{{Buffed Armor Level|}}}|<font color=green> ({{{Buffed Armor Level|}}})</font>}}<br>}}{{#if:{{{Slashing|}}}|Slashing: {{{Slashing|??}}}{{#if:{{{Buffed Slashing AL|}}}|<font color=green> ({{{Buffed Slashing AL|}}})</font>}}<br>}}{{#if:{{{Piercing|}}}|Piercing: {{{Piercing|??}}}{{#if:{{{Buffed Piercing AL|}}}|<font color=green> ({{{Buffed Piercing AL|}}})</font>}}<br>}}{{#if:{{{Bludgeoning|}}}|Bludgeoning: {{{Bludgeoning|??}}}{{#if:{{{Buffed Bludgeon AL|}}}|<font color=green> ({{{Buffed Bludgeon AL|}}})</font>}}<br>}}{{#if:{{{Fire|}}}|Fire: {{{Fire|??}}}{{#if:{{{Buffed Fire AL|}}}|<font color=green> ({{{Buffed Fire AL|}}})</font>}}<br>}}{{#if:{{{Cold|}}}|Cold: {{{Cold|??}}}{{#if:{{{Buffed Cold AL|}}}|<font color=green> ({{{Buffed Cold AL|}}})</font>}}<br>}}{{#if:{{{Acid|}}}|Acid: {{{Acid|??}}}{{#if:{{{Buffed Acid AL|}}}|<font color=green> ({{{Buffed Acid AL|}}})</font>}}<br>}}{{#if:{{{Electric|}}}|Electric: {{{Electric|??}}}{{#if:{{{Buffed Electric AL|}}}|<font color=green> ({{{Buffed Electric AL|}}})</font>}}<br>}}{{#if:{{{Slashing|}}}|Nether: Average ({{{Armor Level|??}}}){{#if:{{{Buffed Armor Level|}}}|<font color=green> ({{{Buffed Armor Level|}}})</font>}}<br>}}{{#if:{{{Spells|}}}|<br>Spells: {{{Spells}}}<br>}}{{#if:{{{Special Properties|}}}|<br>Properties: {{{Special Properties}}}<br><br>}}{{#if:{{{Special Properties|}}}||<br>}}{{#if:{{{Special Req|}}}|{{{Special Req|}}}<br>}}{{#if:{{{Level Req|}}}|Wield requires level {{{Level Req}}}<br>}}{{#ifeq:{{lc:{{{Cannot Be Sold|}}}}}|true|<br>This item cannot be sold.<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><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 00:47, 15 November 2014

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

Related topics: Wiki Templates, Armor Template

Syntax

{{Armor
 |         Armor Type = 
 |       Armor Type 2 = 
 |               Name = 
 |              Value = 
 |             Burden = 
 |         Icon Image =  Icon.png
 |         Live Image =  Live.jpg
 | Live Image Caption = 
 |        Description = 
 | Special Properties = 
 |             Covers = Head, Chest, Abdomen, Upper Arms, Lower Arms, Hands, Upper Legs, Lower Legs, Feet
 |        Armor Level = 
 |           Slashing = 
 |           Piercing = 
 |        Bludgeoning = 
 |               Fire = 
 |               Cold = 
 |               Acid = 
 |           Electric = 
 |
 | Buffed Armor Level = 
 | Buffed Slashing AL = 
 | Buffed Piercing AL = 
 | Buffed Bludgeon AL = 
 |     Buffed Fire AL = 
 |     Buffed Cold AL = 
 |     Buffed Acid AL = 
 | Buffed Electric AL = 
 |
 |     Player Attuned = 
 |          Level Req = 
 |        Special Req = 
 |             Spells = 
 |    Activation Reqs = 
 |         Spellcraft = 
 |               Mana = 
 |          Mana Cost = 
 |     Cannot Be Sold = False
}}

Usage

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

Armor Type values:

  • Costume
  • Foot
  • Hand
  • Head
  • Lower Body
  • Over-robe
  • Robe
  • Shield
  • Tattoo
  • Upper Body