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 3: Line 3:
| '''Elements:''' {{#if:
| '''Elements:''' {{#if:
{{{life| }}} | {{Tag|Life|☀️|c=#ffffff|l=:Category:Life Spells}} }} {{#if:
{{{life| }}} | {{Tag|Life|☀️|c=#ffffff|l=:Category:Life Spells}} }} {{#if:
{{{storm| }}} | {{Tag|Storm|💧|c=#3584e4|l=:Category:Storm Spells}} {{#if:
{{{storm| }}} | {{Tag|Storm|💧|c=#3584e4|l=:Category:Storm Spells}} }} {{#if:
{{{necro| }}} | {{Tag|Necromancy|💀|c=#3d3846|l=:Category:Necromancy Spells}} {{#if:
{{{necro| }}} | {{Tag|Necromancy|💀|c=#3d3846|l=:Category:Necromancy Spells}} }} {{#if:
{{{flame| }}} | {{Tag|Flame|🔥|c=#e01b24|l=:Category:Flame Spells}} }} {{#if:
{{{flame| }}} | {{Tag|Flame|🔥|c=#e01b24|l=:Category:Flame Spells}} }} {{#if:
{{{nature| }}} | {{Tag|Nature|🌱|c=#33d17a|l=:Category:Nature Spells}} }} <br /> }}
{{{nature| }}} | {{Tag|Nature|🌱|c=#33d17a|l=:Category:Nature Spells}} }} <br /> }}

Revision as of 20:43, 26 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.