Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "User:Everspace/SemanticTomfoolery/Equipment Infobox"

From DFO World Wiki
Jump to: navigation, search
m (Fix bugs)
m (Flip flop logic)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table class="wikitable">
+
<includeonly>{{#set:Has icon={{#if:{{{Icon|}}}|{{{Icon}}}|File:{{#replace:{{PAGENAME}}|:|-}}.png}}}}<table class="wikitable">
 
<tr>
 
<tr>
<th colspan=2>[[Has icon::File:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png]] [[Has name::{{PAGENAME}}]]</th>
+
<th colspan=2>{{#show:{{PAGENAME}}|?Icon}} [[Has name::{{PAGENAME}}]]</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
   <th>Slot:</th>
 
   <th>Slot:</th>
   <td>{{#switch: {{{Slot|}}}
+
   <td>[[{{{Slot}}}]]{{#switch:{{{Slot|}}}
 
     |Weapon=[[Category:{{{Type}}}]]
 
     |Weapon=[[Category:{{{Type}}}]]
 
     |Head/Shoulder|Top|Bottom|Belt|Shoes=[[Category:{{{Type}}} Armor]]
 
     |Head/Shoulder|Top|Bottom|Belt|Shoes=[[Category:{{{Type}}} Armor]]
Line 11: Line 11:
 
     |Sub Equipment=[[Category:Sub Equipment]]
 
     |Sub Equipment=[[Category:Sub Equipment]]
 
     |SLOT TYPE IS WRONG}}
 
     |SLOT TYPE IS WRONG}}
   <td>
+
   </td>
 +
</tr>
 +
<tr>
 +
  <th>Type:</th>
 +
  <td>[[{{{Type}}}]]</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 25: Line 29:
 
   <td>[[Has value::{{{Value}}}]]</td>
 
   <td>[[Has value::{{{Value}}}]]</td>
 
</tr>
 
</tr>
{{#if:{{{Binding|}}}
+
<tr>
  |={{#switch: {{#show:{{{PAGENAME}}}|?Rarity}}
+
  <th>Binds On</th>
      |Boss Unique|Chronicle|Epic=<tr><th>Binds On</th><td>[[Binds on::pick up]]</td>
+
  <td>{{#if:{{{Binding|}}}
      |Rare|Legacy|Legendary|Unique=<tr><th>Binds On</th><td>[[Binds on::use]]</td>
+
      |[[Binds on::{{{Binding}}}]]
      |Uncommon|Common=<!--Does not bind-->}}
+
      |{{#switch:{{{Rarity}}}
  |<tr><th>Binds On</th><td>[[Binds on::{{{Binding}}}]]</td></tr>
+
        |Boss Unique|Chronicle|Epic=[[Binds on::pick up]]
}}
+
        |Rare|Legacy|Legendary|Unique=[[Binds on::use]]
 +
        |Uncommon|Common=nothing
 +
        |YOU DID RARITY WRONG</td></tr>}} }}
 +
  </td>
 +
</tr>
 
<tr>
 
<tr>
 
   <th>Level Required</th>
 
   <th>Level Required</th>
Line 38: Line 46:
 
<tr>
 
<tr>
 
   <th>Class Restrictions:</th>
 
   <th>Class Restrictions:</th>
   <td>{{{Class Restrcitions|None}}}</td>
+
   <td>{{{Class Restrictions|None}}}</td>
 
</tr>
 
</tr>
 
 
{{Define/StatTypes}}
 
{{Define/StatTypes}}
{{#arrayprint:StatTypes||@@@@|{{#if:{{{@@@@|}}}|<tr><th>@@@@</th><td>[[Has @@@@::{{{@@@@}}}]]</td>}}}}
+
{{#arrayprint:StatTypes||@@@@|{{#if:{{{@@@@|}}}|<tr><th>@@@@</th><td>[[Has @@@@::{{{@@@@}}}]]</td></tr>}}}}
 
 
 
{{#if:{{{Inflicts Element|}}}
 
{{#if:{{{Inflicts Element|}}}
 
   |<tr><th>Inflicts:</th><td>{{#arraymap:{{{Inflicts Element}}}|,|@@@@|{{#switch:@@@@
 
   |<tr><th>Inflicts:</th><td>{{#arraymap:{{{Inflicts Element}}}|,|@@@@|{{#switch:@@@@
Line 49: Line 55:
 
     |YOU DID ELEMENTAL DAMAGE WRONG}}}}</td></tr>
 
     |YOU DID ELEMENTAL DAMAGE WRONG}}}}</td></tr>
 
|}}
 
|}}
 
 
{{#if:{{{Skill Bonuses|}}}
 
{{#if:{{{Skill Bonuses|}}}
 
|<tr>
 
|<tr>
Line 56: Line 61:
 
</tr>
 
</tr>
 
|}}
 
|}}
 
 
{{#if: {{{Set|}}}|<tr><th>Set</th><td>[[Is part of set::{{{Set}}}]]</td></tr>|}}
 
{{#if: {{{Set|}}}|<tr><th>Set</th><td>[[Is part of set::{{{Set}}}]]</td></tr>|}}
 
 
{{#if:{{{Flavor Text|}}}
 
{{#if:{{{Flavor Text|}}}
 
|<tr><td colspan=2>{{{Flavor Text}}}</td></tr>
 
|<tr><td colspan=2>{{{Flavor Text}}}</td></tr>
 
|}}
 
|}}
 
</table></includeonly>
 
</table></includeonly>

Latest revision as of 21:00, 10 February 2016