Template:Item: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>Arkalor
(Rare number)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{|border=0 cellpadding=0 cellspacing=3 style=width:100%
<includeonly><div style="overflow:auto">
|-valign=top
<div class="item tooltip-content">
|
<div id="item_header">
{|border=1 cellspacing=0 cellpadding=5 width=300 style=background:#F0F0F0
<div>{{{Name|Name}}}</div>
|colspan=2 align=center|'''{{{Name|??}}}'''
<div>[[File:{{{Icon Image}}}]]</div>
|-
</div>
|align=center| Value: {{{Value|??}}}<br>{{#ifeq:{{lc:{{{Burden|}}}}}|unknown|Unknown Burden|{{{Burden|??}}} Burden Units}}
<ul>
|width=40 align=center| [[{{#ifeq: {{{Icon Image|}}} || Image:Icon.png | Image:{{{Icon Image}}}}}]]
<li>Value: {{{Value|??}}}
|-
<li class="bottomspace">Burden: {{{Burden|??}}}<!--
|colspan=2|
{{#ifeq:{{{Description|}}}|||{{#ifeq:{{{Description| }}}| ||{{{Description}}}<br><br>}}}}{{#ifeq:{{{Special Properties|}}}|||{{#ifeq:{{{Special Properties| }}}| ||[[Special Properties]]: {{{Special Properties}}}<br><br>}}}}{{#ifeq:{{{Description Two|}}}|||{{#ifeq:{{{Description Two| }}}| ||{{{Description Two}}}<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><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>|}}
|}
|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|Item Template}}
== Syntax ==
<pre>
{{Item
|              Name =
|        Icon Image =  Icon.png
|        Live Image =
| Live Image Caption =
|              Value =
|            Burden =
|        Description =
| Special Properties = [[Attuned]], [[Bonded]]
|    Description Two =
|    Player Attuned =
|          Level Req =
|            Spells =
|    Activation Reqs =
|        Spellcraft =
|              Mana =
|          Mana Cost =
|    Cannot Be Sold = False
}}
</pre>


== Usage ==
SPELLS, MANA CHARGES, HEALING KITS, LOCKPICKS & CHESTS -->
This wiki template is a section within the page template [[Item Template]], go there for full details and an example.
{{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}}
{{#if:{{{Cooldown|}}}|<li class="bottomspace">Cooldown When Used: {{{Cooldown|}}}}}
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
{{#if:{{{Additional|}}}|<li>{{{Additional}}}}}
{{#if:{{{Usage Level Req|}}}|<li class="bottomspace">}}
{{#if:{{{Bonus to Healing|}}}|<li>Bonus to Healing Skill: {{{Bonus to Healing}}}}}
{{#if:{{{Restoration Bonus|}}}|<li>Restoration Bonus: {{{Restoration Bonus}}}%}}
{{#if:{{{Usage Level Req|}}}|<li>Use requires level {{{Usage Level Req}}}.}}
{{#if:{{{Number of Uses|}}}|<li>Number of uses remaining: {{{Number of Uses}}}}}
{{#if:{{{Restores|}}}|<li>{{{Restores}}}}}
{{#if:{{{Stored Mana|}}}|<li>Stored Mana: {{{Stored Mana}}}}}
{{#if:{{{Efficiency|}}}|<li>Efficiency: {{{Efficiency}}}%}}
{{#if:{{{Destruction Chance|}}}|<li>Chance of Destruction: {{{Destruction Chance}}}%}}
{{#if:{{{Holds Max Items|}}}|{{#if:{{{Holds Containers|}}}|<li class="topspace">Can hold up to {{{Holds Max Items}}} items and {{{Holds Containers}}} containers.|<li class="topspace">Can hold up to {{{Holds Max Items}}} items.}}}}
{{#if:{{{Lock Difficulty|}}}|<li class="topbottomspace">Locked}}
{{#if:{{{Lock Difficulty|}}}|<li>{{{Lock Difficulty}}} (Resistance {{{Resistance}}}).}}<!--


</noinclude>
WIELD/ACTIVATION REQS, MANA PROPERTIES, DESCRIPTION TWO -->
{{#if:{{{Level Req|}}}|<li>Wield requires level {{{Level Req}}}}}
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
{{#if:{{{Special Req|}}}|<li>{{{Special Req|}}}}}
{{#if:{{{Item Level|}}}|<li>Item Level: {{{Item Level|}}}}}
{{#if:{{{Item XP|}}}|<li class="bottomspace">Item XP: {{{Item XP|}}}}}
{{#if:{{{Recommended Level|}}}|<li>Recommended Level: {{{Recommended Level}}}}}
{{#if:{{{Cannot Be Sold|}}}|<li class="bottomspace">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></includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude>

Latest revision as of 12:20, 27 September 2015