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:Option equipment infobox"
m |
(added skill atk description for custom equipment) |
||
Line 9: | Line 9: | ||
<div class="header item"> | <div class="header item"> | ||
<table> | <table> | ||
− | + | <tr> | |
<td class="icon">{{#if:{{{icon|}}} | <td class="icon">{{#if:{{{icon|}}} | ||
− | + | |[[Has icon::File:{{{icon}}}.png|28px]] | |
− | + | | {{#ifexist:Media:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png | |
|[[Has icon::File:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png|28px]] | |[[Has icon::File:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png|28px]] | ||
|[[Image:No_Icon.png|link={{canonicalurl:Special:Upload|wpDestFile={{urlencode:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png}}&wpUploadDescription={{urlencode:[[Category:{{#switch: {{{slot|}}} | |[[Image:No_Icon.png|link={{canonicalurl:Special:Upload|wpDestFile={{urlencode:{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png}}&wpUploadDescription={{urlencode:[[Category:{{#switch: {{{slot|}}} | ||
Line 25: | Line 25: | ||
|#default = {{#arraymap:{{{slot}}}|<nowiki> </nowiki>|@@@|{{ucfirst:{{lc:@@@}}}}| }} | |#default = {{#arraymap:{{{slot}}}|<nowiki> </nowiki>|@@@|{{ucfirst:{{lc:@@@}}}}| }} | ||
}} Icons]]}}}}|No icon available]] | }} Icons]]}}}}|No icon available]] | ||
− | + | }} | |
− | + | | [[Image:No_Icon.png|link=Special:Upload&wpDestFile={{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png&wpUploadDescription={{urlencode:[[Category:{{#switch: {{{slot|}}} | |
| weapon = {{#arraymap:{{{weapon type}}}|<nowiki> </nowiki>|@@@|{{ucfirst:{{lc:@@@}}}}| }} | | weapon = {{#arraymap:{{{weapon type}}}|<nowiki> </nowiki>|@@@|{{ucfirst:{{lc:@@@}}}}| }} | ||
| head | head/shoulder | shoulder | top | bottom | belt | shoes = {{#switch:{{{armor weight class|}}} | | head | head/shoulder | shoulder | top | bottom | belt | shoes = {{#switch:{{{armor weight class|}}} | ||
Line 39: | Line 39: | ||
}}</td> | }}</td> | ||
<td class="caption"><div class="name">{{#if:{{{name|}}}|{{{name}}}{{#set:Has name={{{name}}}}}{{#set:Has lowercase name={{lc:{{{name}}}}}}}|{{BASEPAGENAME}}{{#set:Has name={{BASEPAGENAME}}}}{{#set:Has lowercase name={{lc:{{BASEPAGENAME}}}}}} }}</div></td> | <td class="caption"><div class="name">{{#if:{{{name|}}}|{{{name}}}{{#set:Has name={{{name}}}}}{{#set:Has lowercase name={{lc:{{{name}}}}}}}|{{BASEPAGENAME}}{{#set:Has name={{BASEPAGENAME}}}}{{#set:Has lowercase name={{lc:{{BASEPAGENAME}}}}}} }}</div></td> | ||
− | + | </tr> | |
</table> | </table> | ||
</div> | </div> | ||
<div class="body"> | <div class="body"> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
− | + | <div class="image">[[File:{{{image}}}]]{{#set:Has game appearance={{{image}}}}}</div> | |
}}{{#if:{{{video|}}} | | }}{{#if:{{{video|}}} | | ||
− | + | <center><b>Video</b><br>{{#ev:youtube|{{{video}}}|225 }}</center> | |
}} | }} | ||
; Slot | ; Slot | ||
Line 55: | Line 55: | ||
| head | head/shoulder | shoulder | top | bottom | belt | shoes = ; Weight class | | head | head/shoulder | shoulder | top | bottom | belt | shoes = ; Weight class | ||
: {{#switch: {{lc:{{{armor weight class|}}}}} | : {{#switch: {{lc:{{{armor weight class|}}}}} | ||
− | + | | cloth | cloth armor = [[Has armor weight class::Cloth]] | |
− | + | | leather | leather armor = [[Has armor weight class::Leather]] | |
− | + | | light | light armor = [[Has armor weight class::Light Armor]] | |
− | + | | heavy | heavy armor = [[Has armor weight class::Heavy Armor]] | |
− | + | | plate | plate armor = [[Has armor weight class::Plate Armor]] | |
− | + | | ''Unknown'' | |
|}} | |}} | ||
}}{{Default item properties | }}{{Default item properties | ||
Line 78: | Line 78: | ||
: {{{usage count}}} | : {{{usage count}}} | ||
|}}{{#arraymap:{{Stat enumeration|base=only}}|,|@@@| | |}}{{#arraymap:{{Stat enumeration|base=only}}|,|@@@| | ||
− | + | {{#if:{{{{{lc:@@@}}|}}}| | |
{{#ifeq: {{{{{lc:@@@}}|0}}} | 0 || | {{#ifeq: {{{{{lc:@@@}}|0}}} | 0 || | ||
<dt>{{#switch:{{lc:@@@}} | <dt>{{#switch:{{lc:@@@}} | ||
Line 90: | Line 90: | ||
}}</dt><dd>[[Has {{lc:@@@}}::{{{{{lc:@@@}}|}}}]]</dd> | }}</dt><dd>[[Has {{lc:@@@}}::{{{{{lc:@@@}}|}}}]]</dd> | ||
}} | }} | ||
− | + | }} | |
|}}{{#arraymap:{{Stat enumeration|base=exclude}}|,|@@@| | |}}{{#arraymap:{{Stat enumeration|base=exclude}}|,|@@@| | ||
− | + | {{#if:{{{{{lc:@@@}}|}}}| | |
{{#ifeq: {{{{{lc:@@@}}|0}}} | 0 || | {{#ifeq: {{{{{lc:@@@}}|0}}} | 0 || | ||
<dt>{{#switch:{{lc:@@@}} | <dt>{{#switch:{{lc:@@@}} | ||
Line 102: | Line 102: | ||
}}</dt><dd>{{Stat|@@@|{{{{{lc:@@@}}|}}}|format=value}}{{#set:Has {{lc:@@@}} bonus={{{{{lc:@@@}}|}}}}}</dd> | }}</dt><dd>{{Stat|@@@|{{{{{lc:@@@}}|}}}|format=value}}{{#set:Has {{lc:@@@}} bonus={{{{{lc:@@@}}|}}}}}</dd> | ||
}} | }} | ||
− | + | }} | |
|}} | |}} | ||
{{#if: {{{set|}}} | | {{#if: {{{set|}}} | | ||
Line 180: | Line 180: | ||
}}{{#set:Has preformatted skill bonuses text={{#var:skill bonuses}} | }}{{#set:Has preformatted skill bonuses text={{#var:skill bonuses}} | ||
}}<!-- | }}<!-- | ||
− | + | ||
− | define | + | define skill attack bonuses |
− | + | ||
− | -->{{#vardefine: | + | -->{{#vardefine:skillattackbonus|{{#switch:{{lc:{{{slot|}}}}} |
− | |||
− | |||
− | |||
| weapon = | | weapon = | ||
| top | | top | ||
Line 198: | Line 195: | ||
: - Additional Skill Atk. +1% for every 40 combined option levels | : - Additional Skill Atk. +1% for every 40 combined option levels | ||
: - Disabled if equipped with items that are Level 100 or below | : - Disabled if equipped with items that are Level 100 or below | ||
+ | <br> | ||
| {{#switch:{{lc:{{{slot|}}}}} | | {{#switch:{{lc:{{{slot|}}}}} | ||
| bottom | | bottom | ||
Line 212: | Line 210: | ||
: - Additional Skill Atk. +1% for every 40 combined option levels | : - Additional Skill Atk. +1% for every 40 combined option levels | ||
: - Disabled if equipped with items that are Level 100 or below | : - Disabled if equipped with items that are Level 100 or below | ||
− | }} | + | <br> |
− | ---- | + | }}}}<!-- |
+ | |||
+ | define options properties | ||
+ | |||
+ | |||
+ | -->{{#vardefine:customtag|[[File:Custom Option Tag.png|baseline|link=]]}}{{#set:Has option type={{{option type}}}}}{{#vardefine:options| | ||
+ | {{#switch:{{lc:{{{option type|}}}}} | ||
+ | | fixed = | ||
+ | {{#vardefine:totaldmgval|{{#expr:{{{option 1 damage value}}}+{{{option 2 damage value}}}+{{{option 3 damage value}}}+{{{option 4 damage value}}}}}}}{{#vardefine:totalbuffpow|{{#expr:{{{option 1 buff power}}}+{{{option 2 buff power}}}+{{{option 3 buff power}}}+{{{option 4 buff power}}}}}}}{{#set:Total Damage Value={{#var:totaldmgval}}}}{{#set:Total Buff Power={{#var:totalbuffpow}}}} | ||
{{DFOColor|color=header|<Growth Options>}}<br> | {{DFOColor|color=header|<Growth Options>}}<br> | ||
{{DFOColor|color=subheader|Total Damage Value {{#var:totaldmgval}}<br>Total Buff Power {{#var:totalbuffpow}}<br><br> | {{DFOColor|color=subheader|Total Damage Value {{#var:totaldmgval}}<br>Total Buff Power {{#var:totalbuffpow}}<br><br> | ||
Line 257: | Line 263: | ||
<div class="compact"> | <div class="compact"> | ||
− | {{DFOBox|width=60%|margin=center|{{DFOColor|color=inactive|{{#var:effects}}}} {{#var:options}}}}</div><!-- | + | {{DFOBox|width=60%|margin=center|{{DFOColor|color=inactive|{{#var:effects}}}} {{#switch:{{{option type}}}|fixed={{#var:skillattackbonus}}<hr><br>|custom={{#var:skillattackbonus}}<hr><br>|}}{{#var:options}}}}</div><!-- |
end effects | end effects | ||
Line 266: | Line 272: | ||
-->{{#if: {{#ifeq: {{{categorize|y}}} | n | n }} <!-- categorize is set to don't categorize --> | -->{{#if: {{#ifeq: {{{categorize|y}}} | n | n }} <!-- categorize is set to don't categorize --> | ||
− | + | {{NAMESPACE}} <!-- don't categorize if outside namespace --> | |
| <!-- don't categorize --> | | <!-- don't categorize --> | ||
| | | |
Revision as of 21:28, 29 June 2023
Description
This templates creates an infobox specifically designed for Level 105 equipment with description for use in the item's page. A separate template was created to both accomodate the paradigms of Level Epic equipment (e.g., options, streamlined stats, etc.) and keep these changes in isolation when new paradigms are introduced. Uses Template:Default item properties.
Usage
{{Option equipment infobox | name = | icon = | option type = | slot = | weapon type = | armor weight class = | rarity = | weight = | value = | binding = | class = | set = | altname = | weapon physical attack = | weapon magical attack = | independent attack = | equipment physical defense = | equipment magical defense = | strength = | intelligence = | vitality = | spirit = | adventurer fame = | buff power = | attack speed = | movement speed = | casting speed = | skill attack = | physical critical chance = | magical critical chance = | option 1 damage value = | option 1 buff power = | option 1 description = | option 2 damage value = | option 2 buff power = | option 2 description = | option 3 damage value = | option 3 buff power = | option 3 description = | option 4 damage value = | option 4 buff power = | option 4 description = | fusion option description = | source = | tags = | flavor text = | categorize = }}
Parameters
All parameters are optional unless stated otherwise.
- name
- Required. Name of the item. Defaults to the name of the base article (
{{PAGENAME}}
). - icon
- Icon. Defaults to
{{PAGENAME}}
. - image
- Image for titles and creatures.
- option type
- Designates the type of Epic equipment the item is. Allowed values are fixed, custom, fusion, or growth.
- slot
- Required. Defines the item slot.
- weapon type
- Required if slot is weapon. Defines the weapon type.
- armor weight class
- Required if slot is head/shoulder, top, bottom, shoes or belt. Allowed values are cloth, leather, light armor, heavy armor or plate armor.
- rarity
- Rarity of the item. Defaults to epic.
- weight
- Weight of the item in kg.
- value
- Gold value of the weapon when sold to an NPC.
- 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 untradable. - level
- Required level to equip the item. Defaults to 105.
- class
- Required class (or subclass, in the case of runes/talismans) to equip the item.
- set
- Wiki page of the set the item is part of. Separate set names by commas if there are multiple.
- altname
- Foreign name of the piece of equipment.
- weapon physical attack
- Weapon Physical Attack of the piece of equipment.
- weapon magical attack
- Weapon Magical Attack of the piece of equipment.
- independent attack
- Independent Attack of the piece of equipment.
- equipment physical defense
- Equipment Physical Defense of the piece of equipment.
- equipment magical defense
- Equipment Magical Defense of the piece of equipment.
- strength
- Strength of the piece of equipment.
- intelligence
- Intelligence of the piece of equipment.
- vitality
- Vitality of the piece of equipment.
- spirit
- Spirit of the piece of equipment.
- adventurer fame
- Adventurer Fame of the piece of equipment
- buff power
- The buff power provided by the gear itself (not from options).
- attack speed
- Bonus attack speed provided.
- movement speed
- Bonus movement speed provided.
- casting speed
- Bonus casting speed provided.
- skill attack
- Bonus skill attack provided. Because level 105 Epic and Legendary have pre-determined skill attack bonuses, there are different default values depending on the equipment slot.
- single skill bonus
- Bonus levels given to skills when equipped with the item. Expected format is
class(gender), skill name, skill level bonus
. Gender has to be included even for classes that do not have gender variants. For common skills, use Common forclass(gender)
. Separate multiple with semicolon. - all skill bonus
- Bonus levels given to all skills of a class within a level range when equipped with the item. Expected format is
class, min level, max level, skill level bonus
. Separate multiple with semicolon. - skill alteration
- Changes to a skill that is not a level change. Expected format is
class(gender), skill name
. Gender has to be included even for classes that do not have gender variants. For common skills, use Common forclass(gender)
. Separate multiple with semicolon. - option (1,2,3,4) damage value
- The damage value provided by a particular option. Only used if option type is set to fixed.
- option (1,2,3,4) buff power
- The buff power provided by a particular option. Only used if option type is set to fixed.
- option (1,2,3,4) description
- The description of a particular option. Only used if option type is set to fixed.
- fusion option description
- The description an option provided by a piece of Fusion equipment. Only used if option type is set to fusion.
- source
- The source of a piece of fusion gear. Only used if option type is set to fixed, and is simply used to determine the kind of tag icon to use. Allowed values are ispin or bakal.
- tags
- The tags associated with a piece of equipment in the DFOpedia, delimited by semi-colons (;). Do not include the hashtag symbol, as it is added automatically.
- flavor text
- Flavor text on the item. Gray text at the bottom of the weapon description if it exists.
- availability
- The availability of the item. Set to old if the item was obtainable before but can not be acquired anymore, event if the item is exclusive to events, item shop if the item is exclusive to the item shop, or available if it is currently available. Defaults to available.
- categorize
- Set to n to disable auto-categorization. Defaults to y.
Examples
Fixed Options
{{Option equipment infobox | name = A Long Name for an Example Armor with Fixed Options to Demonstrate Line Breaks | option type = fixed | slot = head/shoulder | armor weight class = plate | value = 12,452 | set = Foo Set, Bar Set, Baz Set | strength = 20 | intelligence = 20 | buff power = 9999 | adventurer fame = 42 | option 1 damage value = 1000 | option 1 buff power = 1000 | option 1 description = Enter the [Equipment Option Control] key to create a new template for equipment with options. (Cooldown: once a level cap) | option 2 damage value = 2500 | option 2 buff power = 2500 | option 2 description = Typing Speed +50% | option 3 damage value = 5000 | option 3 buff power = 5000 | option 3 description = Sleep Tolerance +100% when it's past midnight. | option 4 damage value = 55 | option 4 buff power = 55 | option 4 description = Emotional Damage +10% | tags = super; amazing; wow | flavor text = A wiki editor's equipment of choice. | categorize = n }}
A wiki editor's equipment of choice. Skill Atk. +34% Skill Atk. +1% if your combined options levels are 240 or higher
<Growth Options> Total Damage Value 8555 Damage Value 1000
Buff Power 1000 Option 2 - Level 1 (EXP 0.00%) Damage Value 1000
Buff Power 1000 Option 3 - Level 1 (EXP 0.00%) Damage Value 1000
Buff Power 1000 Option 4 - Level 1 (EXP 0.00%) Damage Value 1000 Buff Power 1000 |