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"
(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}}}}} | ||
− | | | + | |untradable = [[Has binding::Untradable]] |
− | | | + | |sealed = [[Has binding::Sealed]] |
− | |acc|account = Account | + | |unsealed = [[Has binding::Untradable (Sealed)]] |
− | | | + | |acc|account = [[Has binding::Bind to Account]] |
− | | | + | |#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;" {{!}} | + | {{!}} 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 : | + | ; 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 orX
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.