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:Custom option"

From DFO World Wiki
Jump to: navigation, search
(added width support)
Line 1: Line 1:
<includeonly>{{#set:Has game context=Custom option}}{{#if:{{{tags|}}}|{{#arraymap:{{{tags|}}}|;|@@@|{{#set:Has tag=@@@}}|}}}}{{#set:Is type={{#if:{{{type|}}}|{{{type}}}|common}}}}{{#set:In slot={{#if:{{{slot|}}}|{{{slot}}}|any}}}}{{DFOBox|width={{#if:{{{width|}}}|{{{width}}}}}|[[File:Custom Option Tag.png|link=]] {{DFOColor|color=subheader|Option - Level}} {{DFOColor|color=value|1}} {{DFOColor|color=subheader|(EXP 0.00%)}}
+
<includeonly>{{#set:Has game context=Custom option}}{{#if:{{{tags|}}}|{{#arraymap:{{{tags|}}}|;|@@@|{{#set:Has tag=@@@}}|}}}}{{#set:Source={{#if:{{{type|}}}|{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}|any}}}}{{#set:In slot={{#if:{{{slot|}}}|{{{slot}}}|any}}}}{{DFOBox|width={{#if:{{{width|}}}|{{{width}}}}}|[[File:Custom Option Tag.png|link=]] {{DFOColor|color=subheader|Option - Level}} {{DFOColor|color=value|1}} {{DFOColor|color=subheader|(EXP 0.00%)}}
 
: {{DFOColor|color=parameter|Damage Value}} {{DFOColor|color=value|{{{damage value}}}}}
 
: {{DFOColor|color=parameter|Damage Value}} {{DFOColor|color=value|{{{damage value}}}}}
 
: {{DFOColor|color=parameter|Buff Power}} {{DFOColor|color=value|{{{buff power}}}}}
 
: {{DFOColor|color=parameter|Buff Power}} {{DFOColor|color=value|{{{buff power}}}}}
Line 7: Line 7:
 
== Usage ==
 
== Usage ==
 
<pre>{{Custom option
 
<pre>{{Custom option
| type =  
+
| is common =  
 
| slot =  
 
| slot =  
 
| damage value =  
 
| damage value =  
Line 20: Line 20:
 
== Usage ==
 
== Usage ==
 
;width : Can be used to change the default width of the textbox.
 
;width : Can be used to change the default width of the textbox.
;type : Denotes whether or not an option only appears on specific equipment or if it can appear on multiple equipment (not including Legendaries). Allowable values: '''common''' (default) or '''unique'''.
+
;is common : Denotes whether or not an option only appears on specific equipment or if it can appear on multiple equipment (not including Legendaries). Allowable values: '''y''' (default) or '''n'''.
 
;slot : Denotes the equipment slot(s) the option can appear on. Leave blank if it can appear on any slot.
 
;slot : Denotes the equipment slot(s) the option can appear on. Leave blank if it can appear on any slot.
 
;damage value : The base damage value provided.
 
;damage value : The base damage value provided.

Revision as of 22:38, 29 June 2023


Usage

{{Custom option
| is common = 
| slot = 
| damage value = 
| buff power = 
| effect = 
| tags = 
}}

Description

This template defines and displays a custom option.

Usage

width 
Can be used to change the default width of the textbox.
is common 
Denotes whether or not an option only appears on specific equipment or if it can appear on multiple equipment (not including Legendaries). Allowable values: y (default) or n.
slot 
Denotes the equipment slot(s) the option can appear on. Leave blank if it can appear on any slot.
damage value 
The base damage value provided.
buff power 
The base buff power provided.
effect 
The effect of the custom option.
tags 
Tags associated with the custom option, separated by a semi-colon (;). Do not include the hashtag symbol.

Example

{{Custom option
| damage value = 1000
| buff power = 900
| effect = Displays an example of a custom option.
}}
Custom Option Tag.png Option - Level 1 (EXP 0.00%)
Damage Value 1000
Buff Power 900
Displays an example of a custom option.