Template:Jewelry: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>An Adventurer
(adding special req back to template to properly render those reqs on some items)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div style="overflow:auto">
[[Category:Jewelry]]
<div class="item tooltip-content">
{{#switch:{{lc:{{{Jewelry Type|}}}}}
<div id="item_header">
| bracelet = [[Category:Bracelet]]
<div>{{{Name|Name}}}</div>
| necklace = [[Category:Necklace]]
<div>[[File:{{{Icon Image}}}]]</div>
| ring = [[Category:Ring]]
</div>
}}
<ul><li>Value: {{{Value|??}}}
{|border=0 cellpadding=0 cellspacing=3 style=width:100%
<li class="bottomspace">Burden: {{{Burden|??}}}
|-valign=top
{{#if:{{{Set|}}}|<li>Set: {{{Set}}}}}
|
{{#if:{{{Spells|}}}|<li class="topbottomspace">Spells: {{{Spells}}}}}
{|border=1 cellspacing=0 cellpadding=5 width=300 style=background:#F0F0F0
{{#if:{{{Special Properties|}}}|<li class="bottomspace">Properties: {{{Special Properties}}}}}
|colspan=2 align=center|'''{{{Name|??}}}'''
{{#if:{{{Additional|}}}|<li>{{{Additional}}}}}
|-
{{#if:{{{Level Req|}}}|<li>Wield requires level {{{Level Req}}}}}
|align=center| Value: {{{Value|??}}}<br>{{{Burden|??}}} Burden Units
{{#if:{{{Special Req|}}}|<li>{{{Special Req}}}}}
|width=40 align=center| [[{{#ifeq: {{{Icon Image|}}} || Image:Icon.png | Image:{{{Icon Image}}}}}]]
{{#if:{{{Activation Reqs|}}}|<li>Activation requires {{{Activation Reqs}}}}}
|-
{{#if:{{{Item Level|}}}|<li>Item Level: {{{Item Level|}}}}}
|colspan=2|
{{#if:{{{Item XP|}}}|<li>Item XP: {{{Item XP|}}}}}
{{#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:{{{Cannot Be Sold|False}}}|True|This item cannot be sold.<br><br>|}}
{{#if:{{{Recommended Level|}}}|<li>Recommended Level: {{{Recommended Level}}}}}
|}
{{#if:{{{Cannot Be Sold|}}}|<li class="topspace">This item cannot be sold.}}
|width=20|
{{#if:{{{Rare Number|}}}|<li>Rare #{{{Rare Number}}}}}
|
{{#if:{{{Spellcraft|}}}|<li>Spellcraft: {{{Spellcraft}}}.}}
{{#ifeq:{{{Live Image|Live.jpg}}}
{{#if:{{{Mana|}}}|<li>Mana: {{{Mana}}}.}}
| Live.jpg
{{#if:{{{Mana Cost|}}}|<li>Mana Cost: 1 point per {{{Mana Cost|}}} seconds.}}
|  
{{#if:{{{Description|}}}|<li class="topbottomspace">{{{Description}}}}}
| {{#ifeq:{{{Live Image|}}}
{{#if:{{{Inscription|}}}|<li class="inscription">{{{Inscription}}}}}</ul></div></div>
    |  
<!-- Categories -->
    |  
{{#ifeq:{{lc:{{{Retired Jewelry|}}}}} | yes | [[Category:Retired Jewelry]] | [[Category:Jewelry]]{{#ifeq:{{{Level Req|}}}||[[Category:Jewelry: No Level Requirement]]|[[Category:Jewelry: Level {{{Level Req}}}]]}} {{#switch:{{lc:{{{Jewelry Type|}}}}} | bracelets = [[Category:Bracelets]] | necklaces = [[Category:Necklaces]] | rings = [[Category:Rings]] | trinkets = [[Category:Trinkets]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Wiki Templates]]</noinclude>
    | [[Image:{{{Live Image|}}}{{!}}frame{{!}}{{{Live Image Caption}}}|right]]
  }}
}}
|}</includeonly><noinclude>
{{Related|Wiki Templates|Jewelry Template|Jewelry}}
== Syntax ==
<pre>
{{Jewelry
|       Jewelry Type =  
|              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 = True
}}
</pre>
 
== Usage ==
This wiki template is a section within the page template [[Jewelry Template]], go there for full details and an example.
 
</noinclude>

Latest revision as of 15:50, 25 November 2020

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

Related topics: Wiki Templates, Jewelry Template, Jewelry

Syntax

{{Jewelry
 |       Jewelry Type = 
 |         Icon Image =  Icon.png
 |               Name = 
 |              Value = 
 |             Burden = 
 |             Spells = 
 | Special Properties = [[Attuned]], [[Bonded]]
 |         Additional = 
 |          Level Req = 
 |    Activation Reqs = 
 |         Spellcraft = 
 |               Mana = 
 |          Mana Cost = 
 |        Description = 
 |     Cannot Be Sold = True
}}

Usage

This wiki template is a section within the page template Jewelry Template, go there for full details and an example.