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 "Template:Default item properties"

From DFO World Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} Rarity {{!!}} {{#if: {{{rarity|}}} | {{#switch: {{lc:{{{rarity...")
 
Line 7: Line 7:
 
|chron|chronicle={{#set:Has item rarity=Chronicle}}
 
|chron|chronicle={{#set:Has item rarity=Chronicle}}
 
|pink|unique={{#set:Has item rarity=Unique}}
 
|pink|unique={{#set:Has item rarity=Unique}}
 +
|relic={{#set:Has item rarity=Relic}}
 
|boss pink|boss unique={{#set:Has item rarity=Boss Unique}}
 
|boss pink|boss unique={{#set:Has item rarity=Boss Unique}}
 
|orange|legendary={{#set:Has item rarity=Legendary}}
 
|orange|legendary={{#set:Has item rarity=Legendary}}
Line 13: Line 14:
 
}} {{rarity|{{{rarity|}}}}} | ''[[Has item rarity::Unknown]]''}}
 
}} {{rarity|{{{rarity|}}}}} | ''[[Has item rarity::Unknown]]''}}
 
{{!-}}
 
{{!-}}
{{#ifeq: {{{weight|0}}}|0||
+
{{#ifeq: {{{weight|0}}} | 0 ||
 
{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} Weight {{!!}} [[Has weight::{{{weight|}}}]] kg
 
{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} Weight {{!!}} [[Has weight::{{{weight|}}}]] kg
 
{{!-}} }}
 
{{!-}} }}
Line 21: Line 22:
 
{{#if:{{{binding|}}}|{{#ifeq: {{lc:{{{binding}}}}} | none | |
 
{{#if:{{{binding|}}}|{{#ifeq: {{lc:{{{binding}}}}} | none | |
 
{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} Binding {{!!}} {{#switch: {{lc:{{{binding}}}}}
 
{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} Binding {{!!}} {{#switch: {{lc:{{{binding}}}}}
|bou|use = Soul-bound on use
+
|untradable = [[Has binding::Untradable]]
|bop|pick up = Soul-bound on pick-up
+
|sealed = [[Has binding::Sealed]]
|acc|account = Account-bound
+
|unsealed = [[Has binding::Untradable (Sealed)]]
|abou|account on use = Account-bound on use
+
|acc|account = [[Has binding::Bind to Account]]
|account soul = Account-bound, Soul-bound on use
+
|#default = {{#switch:{{#explode:{{lc:{{{binding}}}}}| |1}}
|#default = ''Unknown''
+
|tcu = Trade Count ({{#explode:{{{binding}}}| |0}})<br>Untradable{{#set:Has binding=Trade Count (Untradable)}}{{#set:Has maximum trade count={{#explode:{{{binding}}}| |0}}}}
 +
|tca = Trade Count ({{#explode:{{{binding}}}| |0}})<br>Bind to Account{{#set:Has binding=Trade Count (Bind to Account)}}{{#set:Has maximum trade count={{#explode:{{{binding}}}| |0}}}}
 +
|#default = ''Unknown''}}
 
}} }}  
 
}} }}  
 
{{!-}} }}
 
{{!-}} }}
 
{{#ifeq: {{{level|0}}}| 0 ||
 
{{#ifeq: {{{level|0}}}| 0 ||
{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} Req. level {{!!}} [[Has level requirement::{{{level|}}}]]
+
{{!}} style="background:#ccffcc; text-align: right; font-weight: bold; padding-right: 0.5em;" {{!}} {{#if:{{#explode:{{{level}}}|-|1}}|Level restriction|Req. level}} {{!!}} {{#if:{{#explode:{{{level}}}|-|1}}|[[Has level requirement::{{#explode:{{{level}}}|-|0}}]] - [[Has level restriction::{{#explode:{{{level}}}|-|1}}]]|[[Has level requirement::{{{level}}}]]}}
 
{{!-}} }}
 
{{!-}} }}
 
{{#if: {{{class|}}} |
 
{{#if: {{{class|}}} |
Line 37: Line 40:
 
== Description ==
 
== Description ==
  
This template defines values that are used for all items, used by infobox templates.
+
This template defines values that are used for all items, used by item infobox templates.
  
 
== Usage ==
 
== Usage ==
Line 52: Line 55:
 
All parameters are required unless stated otherwise.
 
All parameters are required unless stated otherwise.
  
; rarity : Rarity of the item. ''common'', ''uncommon'', ''rare'', ''legacy'', ''unique'', ''boss unique'', ''chronicle'', ''legendary'' or ''epic''. Defaults to ''unknown''.
+
; rarity : Required. Rarity of the item. ''common'', ''uncommon'', ''rare'', ''legacy'', ''unique'', ''boss unique'', ''chronicle'', ''legendary'' or ''epic''. Defaults to ''unknown''.
 
; weight : Weight of the item in kg. Set to ''0'' if the item is weightless. Defaults to ''0''.
 
; weight : Weight of the item in kg. Set to ''0'' if the item is weightless. Defaults to ''0''.
 
; value : Gold value when sold. Defaults to ''0''.
 
; value : Gold value when sold. Defaults to ''0''.
; binding : Under what conditions the item binds. ''none'' for no binding, ''use'' for soul-bind on use, ''pick up'' for soul-bind on pick up, ''account'' for account-bound, ''account on use'' for account-bound on use, and ''account soul'' for account-bound on pick up, soul-bound on use. Defaults to ''none''.
+
; binding : The type of binding the item has. ''none'' for no binding, ''untradable'' for untradable, ''sealed'' for sealed, ''unsealed'' for untradable (sealed), ''account'' for account bound, ''<code>X</code> tcu'' for a trade count of X and the item becoming untradable afterwards or ''<code>X</code> tca'' for a trade count of X and the item becoming account bound afterwards. Defaults to ''none''.
; level : Required level to use.
+
; level : Required level to use. If the item has an upper restriction, separate requirement and restriction with a -.
 
; class : Required class to use.
 
; class : Required class to use.
  
  
</noinclude>
+
[[Category:Infobox Templates]]</noinclude>

Revision as of 21:37, 18 January 2016

Description

This template defines values that are used for all items, used by item infobox templates.

Usage

{{Default item properties
| rarity = 
| weight = 
| value = 
| binding = 
| level = 
| class = 
}}

Parameters

All parameters are required unless stated otherwise.

rarity 
Required. Rarity of the item. common, uncommon, rare, legacy, unique, boss unique, chronicle, legendary or epic. Defaults to unknown.
weight 
Weight of the item in kg. Set to 0 if the item is weightless. Defaults to 0.
value 
Gold value when sold. Defaults to 0.
binding 
The type of binding the item has. none for no binding, untradable for untradable, sealed for sealed, unsealed for untradable (sealed), account for account bound, X tcu for a trade count of X and the item becoming untradable afterwards or X tca for a trade count of X and the item becoming account bound afterwards. Defaults to none.
level 
Required level to use. If the item has an upper restriction, separate requirement and restriction with a -.
class 
Required class to use.