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:Class enumeration"

From DFO World Wiki
Jump to: navigation, search
(add Priest(F))
(added agent)
Line 1: Line 1:
 
<includeonly>{{#arraymap:{{#if:{{{weapon only|}}}
 
<includeonly>{{#arraymap:{{#if:{{{weapon only|}}}
|<!-- classes that have their own weapon category -->Slayer,Fighter,Gunner,Mage,Priest,Thief,Demonic Lancer
+
|<!-- classes that have their own weapon category -->Slayer,Fighter,Gunner,Mage,Priest,Thief,Demonic Lancer,Agent
|<!-- all classes -->Slayer,Fighter,Gunner,Mage,Priest,Thief,Knight,Dark Knight,Creator,Demonic Lancer
+
|<!-- all classes -->Slayer,Fighter,Gunner,Mage,Priest,Thief,Knight,Dark Knight,Creator,Demonic Lancer,Agent
 
}}|,|@@@|
 
}}|,|@@@|
 
{{#switch:{{{gender|exclude}}}|include|exclude=@@@}}{{#ifeq:{{{gender|exclude}}}|include|,  
 
{{#switch:{{{gender|exclude}}}|include|exclude=@@@}}{{#ifeq:{{{gender|exclude}}}|include|,  
 
|}}{{#switch:{{{gender|exclude}}}|include|only={{#switch:@@@
 
|}}{{#switch:{{{gender|exclude}}}|include|only={{#switch:@@@
   |<!-- m only classes --> Demonic Lancer | Dark Knight =@@@(M)
+
   |<!-- m only classes --> Demonic Lancer | Dark Knight | Agent =@@@(M)
 
   |<!-- f only classes --> Thief | Knight | Creator =@@@(F)
 
   |<!-- f only classes --> Thief | Knight | Creator =@@@(F)
 
   |<!-- both          -->#default =@@@(M),@@@(F)
 
   |<!-- both          -->#default =@@@(M),@@@(F)

Revision as of 10:24, 17 July 2018

Description

This template lists all playable classes for use by other templates.

Usage

{{Class enumeration
| gender = 
| weapon only = 
}}

Parameters

All parameters are required unless stated otherwise.

gender 
Set to include to list classes with and without gender suffix, exclude to exclude gender suffix, or only to list classes with gender suffix only. Defaults to exclude.
weapon only 
Set to anything to only list classes that have weapon categories associated to them.

Examples

{{Class enumeration}}

Slayer,Fighter,Gunner,Mage,Priest,Thief,Knight,Dark Knight,Creator,Demonic Lancer,Agent,Archer

{{Class enumeration
| gender = only
}}

Slayer(M),Slayer(F),Fighter(M),Fighter(F),Gunner(M),Gunner(F),Mage(M),Mage(F),Priest(M),Priest(F),Thief(F),Knight(F),Dark Knight(M),Creator(F),Demonic Lancer(M),Agent(M),Archer(F)

{{Class enumeration
| weapon only = yes
}}

Slayer,Fighter,Gunner,Mage,Priest,Thief,Demonic Lancer,Agent,Archer