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

Template:Class: Difference between revisions

Template page
Content deleted Content added
// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 1: Line 1:
<includeonly>{{#if:{{{d| }}}|{{{d}}} }}{{#if:{{{description| }}}|{{{description}}} }}
<includeonly>{{#if:{{{d| }}}|{{{d}}} }}{{#if:{{{description| }}}|{{{description}}} }}
== Restrictions ==
== Restrictions ==
; Armor Restrictions
Cannot wear {{L|Category|Armor}} with an {{L|Core|Armor Class|AV}} greater than {{{av|4}}}.
: {{{name}}}s {{#ifeq:{{{av}}}|4|have no armor restrictions.|lose all abilities they gain from this class if they wear {{#ifeq:{{{av}}}|0|{{L|Category|Armor}}|{{L|Category|Armor}} with an {{L|Core|Armor Class|AV}} greater than {{{av}}}}}.}}


{{#if:{{{m| }}}|== Mage Benefits ==
{{#if:{{{m| }}}|== Mage Benefits ==
{{#invoke:AbilityBoxes|parse|Arcane Ray,Staff Touch}} }}
{{#invoke:AbilityBoxes|parse|Arcane Ray,Staff Touch}} }}

Revision as of 01:10, 31 January 2025

Template Frontend

This template is used to format and display information about different class ranks, their combat abilities, support abilities, and categories. It also provides optional descriptions for the class.

Parameters

  • name: str (required)
    The name of the class, used for categorization purposes.
  • d or description: str (optional)
    The description of the class.
  • r1: str
    The content for Rank 1 of the class.
  • r2: str
    The content for Rank 2 of the class.
  • r3c: str (required)
    The combat abilities for Rank 3 of the class.
  • r3s: str (required)
    The support abilities for Rank 3 of the class.
  • w: bool (optional, defaults to 0)
    Whether the class belongs to Warrior categories.
  • m: bool (optional, defaults to 0)
    Whether the class belongs to Mage categories.
  • s: bool (optional, defaults to 0)
    Whether the class belongs to Semi categories.

Additional Information

  • The {{Spacer}} template is used between ranks and sections for consistent spacing.
  • Categories are determined based on the boolean parameters w, m, and s. If none are set, the class will not be categorized under Warrior, Mage, or Semi classes.

Template Backend

This template uses a combination of {{#if}} and other MediaWiki features to display conditional content and categorize the page appropriately. The rank sections (r1, r2, etc.) allow for a modular presentation of class details. The {{Cat}} template at the end dynamically assigns categories based on the parameters provided.