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 (Add icon property, because with equipment there's going to be shared icons.)
m (Flip flop logic)
 
(8 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::{{#if:{{{Icon|}}}|{{{Icon}}}|File:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png]] [[Has name::{{PAGENAME}}]]</th>
+
<th colspan=2>{{#show:{{PAGENAME}}|?Icon}} [[Has name::{{PAGENAME}}]]</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 10: Line 10:
 
     |Magic Stone=[[Category:Magic Stone]]
 
     |Magic Stone=[[Category:Magic Stone]]
 
     |Sub Equipment=[[Category:Sub Equipment]]
 
     |Sub Equipment=[[Category:Sub Equipment]]
     |SLOT TYPE IS WRONG}}</td>
+
     |SLOT TYPE IS WRONG}}
 +
  </td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 28: Line 29:
 
   <td>[[Has value::{{{Value}}}]]</td>
 
   <td>[[Has value::{{{Value}}}]]</td>
 
</tr>
 
</tr>
{{#if:{{{Binding|undefined}}}
+
<tr>
  |undefined={{#switch:{{{Rarity}}}
+
  <th>Binds On</th>
      |Boss Unique|Chronicle|Epic=<tr><th>Binds On</th><td>[[Binds on::pick up]]</td></tr>
+
  <td>{{#if:{{{Binding|}}}
      |Rare|Legacy|Legendary|Unique=<tr><th>Binds On</th><td>[[Binds on::use]]</td></tr>
+
      |[[Binds on::{{{Binding}}}]]
      |Uncommon|Common=<!--Does not bind-->
+
      |{{#switch:{{{Rarity}}}
      |<tr><th>Binds On</th><td>YOU DID BINDING WRONG</td></tr>}}
+
        |Boss Unique|Chronicle|Epic=[[Binds on::pick up]]
   |<tr><th>Binds On</th><td>[[Binds on::{{{Binding}}}]]</td></tr>
+
        |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 44: Line 48:
 
   <td>{{{Class Restrictions|None}}}</td>
 
   <td>{{{Class Restrictions|None}}}</td>
 
</tr>
 
</tr>
 
 
{{Define/StatTypes}}
 
{{Define/StatTypes}}
 
{{#arrayprint:StatTypes||@@@@|{{#if:{{{@@@@|}}}|<tr><th>@@@@</th><td>[[Has @@@@::{{{@@@@}}}]]</td></tr>}}}}
 
{{#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 53: 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 60: 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