Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ability: Difference between revisions

Template page
Content deleted Content added
No edit summary
No edit summary
Line 116: Line 116:
|{{Tag
|{{Tag
|Ritual
|Ritual
|l=:Category:Rituals
|l=:Category:Ritual Abilities
}}
}}
}}
}}
Line 123: Line 123:
|{{Tag
|{{Tag
|Ray
|Ray
|l=:Category:Rays
|l=:Category:Ray Abilities
}}
}}
}}
}}
Line 130: Line 130:
|{{Tag
|{{Tag
|Ball
|Ball
|l=:Category:Balls
|l=:Category:Ball Abilities
}}
}}
}}
}}
Line 137: Line 137:
|{{Tag
|{{Tag
|Touch
|Touch
|l=:Category:Touches
|l=:Category:Touch Abilities
}}
}}
}}
}}
Line 144: Line 144:
|{{Tag
|{{Tag
|Aura
|Aura
|l=:Category:Auras
|l=:Category:Aura Abilities
}}
}}
{{If
|{{{self| }}}
|{{Tag
|Self
|l=:Category:Self Abilities
}}
}}
}}
}}
Line 151: Line 158:
|{{Tag
|{{Tag
|Passive
|Passive
|l=:Category:Passives
|l=:Category:Passive Abilities
}}
}}
}}
}}
Line 158: Line 165:
|{{Tag
|{{Tag
|Tag
|Tag
|l=:Category:Tags
|l=:Category:Tag Abilities
}}
}}
}}
}}
}}}
}}}
}}
}}
{{ContextBarHelper|{{If|{{{spell| }}}|Casting|Execution}} Time|
{{ContextBarHelper|{{If|{{{spell| }}}|Casting|Execution}} Time|{{ucfirst:{{lc:
{{{castingTime
{{{time
|{{#switch: {{{num|na}}}
|{{#switch: {{{num|na}}}
| 0 = {{If
| 0 = {{If
|{{{re| }}}
|{{{re| }}}
|{{Tag
|Free reaction
|Free Reaction
|None (free action)
|l=:Category:Free Reaction Abilities
}}
|{{Tag
|Free Action
|l=:Category:Free Action Abilities
}}
}}
}}
| 1 = {{If
| 1 = {{If
|{{{re| }}}
|{{{re| }}}
|{{Tag
|Reaction
|Reactive
|1 action
|l=:Category:Reactive Abilities
}}
|{{Tag
|Single Action
|l=:Category:Single Action Abilities
}}
}}
}}
| 2 = Double Action
| 2 = 2 actions
| 3 = Triple Action
| 3 = 3 actions
| na = {{If
| na = {{If
|{{{ritual| }}}
|{{{ritual| }}}
|10 minutes
|10 minutes
|{{If
|
}}
}}
}}
}}
}}
}}}
}}}
}}
}} }} }}
{{ContextBarHelper|Target|
{{ContextBarHelper|Target|{{ucfirst:{{lc:
{{{target
{{{target
|{{If
|{{If
|{{{aura| }}}{{{cone| }}}{{{ball| }}}
|{{{aura| }}}{{{cone| }}}{{{ball| }}}
| {{ucfirst:{{{targetType|creature}}}s within area of effect}}
| {{{targetType|creature}}}s within area of effect
| {{ucfirst:1 {{{targetType|creature}}} within range}}
| 1 {{{targetType|creature}}} within range
}}
}}
}}}
}}}
}}
}} }} }}
{{ContextBarHelper|Range|
{{ContextBarHelper|Range|{{ucfirst:{{lc:
{{{range|
{{{range|
{{If
{{If
Line 233: Line 231:
}}
}}
}}}
}}}
}}
}} }} }}
{{ContextBarHelper|Duration|{{ucfirst:{{lc:
{{{duration
|{{If
|{{{sustained| }}}
|1 minute ([[Sustained]])
|
}}
}}}
}} }} }}
----
----
{{{1}}} {{Trim|
{{{1}}} {{Trim|
Line 255: Line 262:
{{#if: {{{flu| }}} | {{Cat|Fluency Setting Abilities|name={{{name}}} }} }}
{{#if: {{{flu| }}} | {{Cat|Fluency Setting Abilities|name={{{name}}} }} }}
{{#if: {{{class| }}} | {{Cat|Class Abilities|name={{{name}}} }} }}
{{#if: {{{class| }}} | {{Cat|Class Abilities|name={{{name}}} }} }}
{{#if: {{{standard| }}} |
{{#if: {{{standard| }}} |
{{Cat|Standard Abilities|name={{{name}}} }}
{{Cat|Standard Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Conjure Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Conjure Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Semblant Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Semblant Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{ball| }}} |
{{#if: {{{sustained| }}} |
{{Cat|Balls|name={{{name}}} }}
{{Cat|Sustained Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Sustained Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Sustained Skills|name={{{name}}} }} }}
}}
{{#if: {{{ball| }}} |
{{Cat|Ball Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Ball Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Ball Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Ball Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Ball Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{ray| }}} |
{{#if: {{{ray| }}} |
{{Cat|Rays|name={{{name}}} }}
{{Cat|Ray Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Ray Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Ray Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Ray Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Ray Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{aura| }}} |
{{#if: {{{aura| }}} |
{{Cat|Auras|name={{{name}}} }}
{{Cat|Aura Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Aura Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Aura Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Aura Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Aura Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{touch| }}} |
{{#if: {{{touch| }}} |
{{Cat|Touches|name={{{name}}} }}
{{Cat|Touch Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Touch Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Touch Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Touch Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Touch Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{passive| }}} |
{{#if: {{{self| }}} |
{{Cat|Passives|name={{{name}}} }}
{{Cat|Self Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Self Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Self Skills|name={{{name}}} }} }}
}}
{{#if: {{{passive| }}} |
{{Cat|Passive Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Passive Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Passive Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Passive Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Passive Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{tag| }}} |
{{#if: {{{tag| }}} |
{{Cat|Tags|name={{{name}}} }}
{{Cat|Tag Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Tag Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Tag Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Tag Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Tag Skills|name={{{name}}} }} }}
}}
}}
{{#if: {{{ritual| }}} |
{{#if: {{{ritual| }}} |
{{Cat|Rituals|name={{{name}}} }}
{{Cat|Ritual Abilities|name={{{name}}} }}
{{#if: {{{spell| }}} | {{Cat|Ritual Spells|name={{{name}}} }} }}
{{#if: {{{spell| }}} | {{Cat|Ritual Spells|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Ritual Skills|name={{{name}}} }} }}
{{#if: {{{skill| }}} | {{Cat|Ritual Skills|name={{{name}}} }} }}

Revision as of 01:12, 27 December 2024

Template Frontend

This template categorizes abilities, spells, and skills based on the specified parameters. It is used for organizing content into appropriate categories for easy navigation and grouping.

Parameters

  • 1: str (required)
    The name or description of the ability, spell, or skill.
  • mental: bool (optional, defaults to 0)
    Indicates if the ability has a mental effect.
  • divine: bool (optional, defaults to 0)
    Specifies if the ability is divine.
  • magic: bool (optional, defaults to 0)
    Specifies if the ability is magical.
  • primal: bool (optional, defaults to 0)
    Indicates if the ability is primal in nature.
  • spiritual: bool (optional, defaults to 0)
    Indicates if the ability is spiritual.
  • oc: bool (optional, defaults to 0)
    Tags the ability as out-of-combat.
  • bc: bool (optional, defaults to 0)
    Tags the ability as before combat.
  • ic: bool (optional, defaults to 0)
    Tags the ability as in-combat.
  • life: bool (optional, defaults to 0)
    Indicates if the spell belongs to the Life domain.
  • storm: bool (optional, defaults to 0)
    Indicates if the spell belongs to the Storm domain.
  • necro: bool (optional, defaults to 0)
    Indicates if the spell belongs to the Necromancy domain.
  • flame: bool (optional, defaults to 0)
    Indicates if the spell belongs to the Flame domain.
  • nature: bool (optional, defaults to 0)
    Indicates if the spell belongs to the Nature domain.
  • spell: bool (optional, defaults to 0)
    Marks the entry as a spell.
  • skill: bool (optional, defaults to 0)
    Marks the entry as a skill.
  • standard: bool (optional, defaults to 0)
    Identifies the entry as a standard conjure spell or a semblant skill.
  • ball: bool (optional, defaults to 0)
    Identifies the entry as a ball-type spell or skill.
  • ray: bool (optional, defaults to 0)
    Identifies the entry as a ray-type spell or skill.
  • aura: bool (optional, defaults to 0)
    Identifies the entry as an aura-type spell or skill.
  • touch: bool (optional, defaults to 0)
    Identifies the entry as a touch-type spell or skill.
  • passive: bool (optional, defaults to 0)
    Tags the entry as passive.
  • tag: bool (optional, defaults to 0)
    Tags the entry for grouping under tags.
  • ritual: bool (optional, defaults to 0)
    Tags the entry as a ritual.
  • action: str (optional)
    Specifies a custom action type for the skill.
  • rank: str (optional, defaults to nr)
    Specifies the rank of the ability (e.g., 0 for Journeyman, 1 for Rank 1).
  • num: str (optional, defaults to na)
    Specifies the number of actions required for this ability (e.g., 0 for free, 1 for single).

Template Backend

This template utilizes a series of conditional statements to determine the appropriate categories based on the parameters provided. It ensures that content is accurately sorted and easily discoverable through the MediaWiki categorization system.