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
Line 44: Line 44:
 
|}}{{#switch: {{{expiration type|}}}
 
|}}{{#switch: {{{expiration type|}}}
 
| daily = ; Expires : Daily at {{#time: H:i| {{{expiration date}}}}} UTC
 
| daily = ; Expires : Daily at {{#time: H:i| {{{expiration date}}}}} UTC
 +
| weekly = ; Expires : Weekly on {{{expiration day}}}s at {{#time: H:i| {{{expiration date}}}}} UTC
 
| duration = ; Expires in : {{#ifexpr:{{#explode:{{{expiration date}}}| |0}}>0|{{#vardefine:comma|1}}{{#explode:{{{expiration date}}}| |0}} day{{#ifeq:{{#explode:{{{expiration date}}}| |0}}|1||s}}|}}{{#ifexpr:{{#explode:{{{expiration date}}}| |1}}>0|{{#if: {{#var:comma}}|,<nowiki> </nowiki>|{{#vardefine:comma|1}}}}{{#explode:{{{expiration date}}}| |1}} hour{{#ifeq:{{#explode:{{{expiration date}}}| |1}}|1||s}}}}{{#ifexpr:{{#explode:{{{expiration date}}}| |2}}>0|{{#if: {{#var:comma}}|,<nowiki> </nowiki>|{{#vardefine:comma|1}}}}{{#explode:{{{expiration date}}}| |2}} minute{{#ifeq:{{#explode:{{{expiration date}}}| |2}}|1||s}}}}
 
| duration = ; Expires in : {{#ifexpr:{{#explode:{{{expiration date}}}| |0}}>0|{{#vardefine:comma|1}}{{#explode:{{{expiration date}}}| |0}} day{{#ifeq:{{#explode:{{{expiration date}}}| |0}}|1||s}}|}}{{#ifexpr:{{#explode:{{{expiration date}}}| |1}}>0|{{#if: {{#var:comma}}|,<nowiki> </nowiki>|{{#vardefine:comma|1}}}}{{#explode:{{{expiration date}}}| |1}} hour{{#ifeq:{{#explode:{{{expiration date}}}| |1}}|1||s}}}}{{#ifexpr:{{#explode:{{{expiration date}}}| |2}}>0|{{#if: {{#var:comma}}|,<nowiki> </nowiki>|{{#vardefine:comma|1}}}}{{#explode:{{{expiration date}}}| |2}} minute{{#ifeq:{{#explode:{{{expiration date}}}| |2}}|1||s}}}}
 
| date = ; Expires on : {{#time: d M Y, H:i|{{{expiration date}}}}} UTC
 
| date = ; Expires on : {{#time: d M Y, H:i|{{{expiration date}}}}} UTC

Revision as of 08:23, 26 October 2020

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 = 
| profession = 
| profession level = 
| expiration type = 
| expiration date = 
}}

Parameters

All parameters are required unless stated otherwise.

rarity 
Required. Rarity of the item. common, uncommon, rare, legacy, halidom, unique, boss unique, chronicle, legendary, epic, or mythic. 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.
profession 
Required profession to use.
profession level 
Required level of the profession to use.
expiration type 
Type of expiration. Set to daily if the item expires every day, duration if the item expires after a certain amount of time has passed, or date if the item expires on a specific date.
expiration date 
Date in UTC at which the item expires. If expiration type is daily, the expected format is HH:MM (24-hour clock). If expiration type is duration, the expected format is DD HH MM. If expiration type is date, the expected format is YYYY-MM-DD-HH-MM.