More actions
Content deleted Content added
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{w| }}}{{{s| }}}{{{m| }}}|[[File:{{{name}}}.png|thumb]]}}<span class="class-metadata" style="height: 0; width: 0; overflow: hidden; display: block;" data-r1="{{{r1|}}}" data-r2="{{{r2|}}}" data-r3c="{{{r3c|}}}" data-r3s="{{{r3s|}}}" data-av="{{{av|0}}}" {{#if:{{{w| }}}|data-archetype="warrior" data-r0="Warrior Techniques"|{{#if:{{{s| }}}|data-archetype="semi" data-r0=""|{{#if:{{{m| }}}|data-archetype="mage" data-r0="Arcane Ray,Staff Touch"}} }} }}>Metadata.</span><span class="class-description">{{#if:{{{d| }}}|{{{d}}} }}{{#if:{{{description| }}}|{{{description}}} }}</span> |
|||
<includeonly>{{#if:{{{d| }}}|{{{d}}} }}{{#if:{{{description| }}}|{{{description}}} }} |
|||
== Restrictions == |
|||
; Armor Restrictions |
|||
: {{{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}}}}}.}} |
|||
; Learning Restrictions |
|||
: {{#if:{{{m| }}} |
|||
|{{{name}}} cannot be learned by {{L|Category|Warrior classes|Warriors}}.|{{#if:{{{w| }}} |
|||
|{{{name}}} cannot be learned by {{L|Category|Mage classes|Mages}}.|{{{name}}} is learnable by both {{L|Category|Warrior classes|Warriors}} and {{L|Category|Mage classes|Mages}}.}} }}{{#if:{{{flaws| }}}| |
|||
; Other Restrictions |
|||
: <span class="class-flaws">{{{flaws}}}</span> }} |
|||
{{#if:{{{w| }}}{{{m| }}}{{{s| }}}|{{#if:{{{m| }}}|== Mage Benefits == |
|||
{{AESort|Arcane Ray,Staff Touch}} |
|||
}}{{#if:{{{w| }}}|== Warrior Benefits == |
|||
{{AESort|Warrior Techniques}} |
|||
}}<noinclude /> |
|||
== Rank 1 == |
== Rank 1 == |
||
<div class="expandable-table">{{#invoke:Sort|clean|{{{r1}}}|format={{((}}{{((}}Quickpand{{!}}##{{))}}{{))}}|d=}}</div> |
|||
{{Spacer}} |
|||
{{#invoke:AbilityBoxes|parse|{{{r1}}}}} |
|||
== Rank 2 == |
== Rank 2 == |
||
<div class="expandable-table">{{#invoke:Sort|clean|{{{r2}}}|format={{((}}{{((}}Quickpand{{!}}##{{))}}{{))}}|d=}}</div> |
|||
{{Spacer}} |
|||
{{#invoke:AbilityBoxes|parse|{{{r2}}}}} |
|||
== Rank 3 == |
== Rank 3 == |
||
For ranks 3, 4, and 5, choose one [[#Combat Abilities|combat ability]] and one [[#Support Abilities|support ability]] to gain at each rank. |
|||
=== Combat Abilities === |
=== Combat Abilities === |
||
<div class="expandable-table">{{#invoke:Sort|clean|{{{r3c}}}|format={{((}}{{((}}Quickpand{{!}}##{{))}}{{))}}|d=}}</div> |
|||
{{Spacer}} |
|||
{{#invoke:AbilityBoxes|parse|{{{r3c}}}}} |
|||
=== Support Abilities === |
=== Support Abilities === |
||
<div class="expandable-table">{{#invoke:Sort|clean|{{{r3s}}}|format={{((}}{{((}}Quickpand{{!}}##{{))}}{{))}}|d=}}</div> |
|||
{{Spacer}} |
|||
{{#invoke:AbilityBoxes|parse|{{{r3s}}}}} |
|||
{{Cat|name={{{name}}}|ns=Class|Classes}} |
{{Cat|name={{{name}}}|ns=Class|Classes}} |
||
{{Cat|{{#if:{{{w| }}}|Warrior classes}}{{#if:{{{m| }}}|Mage classes}}{{#if:{{{s| }}}|Semi classes}}|name={{{name}}}|ns=Class}}</includeonly><noinclude> |
{{Cat|{{#if:{{{w| }}}|Warrior classes}}{{#if:{{{m| }}}|Mage classes}}{{#if:{{{s| }}}|Semi classes}}{{#if:{{{e| }}}|Everyman classes}}|name={{{name}}}|ns=Class}} }}</includeonly><noinclude> |
||
== Template Frontend == |
== 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. |
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. |
Latest revision as of 01:38, 18 May 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
ordescription
: 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 to0
)- Whether the class belongs to Warrior categories.
m
: bool (optional, defaults to0
)- Whether the class belongs to Mage categories.
s
: bool (optional, defaults to0
)- 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
, ands
. 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.