More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly> |
||
{{ContextBarHelper|Elements |
{{ContextBarHelper|Elements| |
||
{{If| |
|||
{{{life| }}}| {{Tag |
{{{life| }}}| {{Tag |
||
|Life |
|Life |
||
Line 8: | Line 8: | ||
|l=:Category:Life Spells |
|l=:Category:Life Spells |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{storm| }}} | {{Tag |
|||
|{{{storm| }}} |
|||
|{{Tag |
|||
|Storm |
|Storm |
||
|💧 |
|💧 |
||
Line 15: | Line 17: | ||
|l=:Category:Storm Spells |
|l=:Category:Storm Spells |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{necro| }}} | {{Tag |
|||
|{{{necro| }}} |
|||
|{{Tag |
|||
|Necromancy |
|Necromancy |
||
|💀 |
|💀 |
||
Line 22: | Line 26: | ||
|l=:Category:Necromancy Spells |
|l=:Category:Necromancy Spells |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{flame| }}} | {{Tag |
|||
|{{{flame| }}} |
|||
|{{Tag |
|||
|Flame |
|Flame |
||
|🔥 |
|🔥 |
||
Line 29: | Line 35: | ||
|l=:Category:Flame Spells |
|l=:Category:Flame Spells |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{nature| }}} | {{Tag |
|||
|{{{nature| }}} |
|||
|{{Tag |
|||
|Nature |
|Nature |
||
|🌱 |
|🌱 |
||
Line 38: | Line 46: | ||
}} |
}} |
||
}} |
}} |
||
{{ContextBarHelper|Power Sources |
{{ContextBarHelper|Power Sources| |
||
{{If |
|||
{{{divine| }}} |
|{{{divine| }}} |
||
|{{Tag |
|||
|Divine |
|Divine |
||
|🙏 |
|🙏 |
||
Line 46: | Line 55: | ||
|l=:Category:Divine Abilities |
|l=:Category:Divine Abilities |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{magic| }}} | {{Tag |
|||
|{{{magic| }}} |
|||
|{{Tag |
|||
|Magic |
|Magic |
||
|✨ |
|✨ |
||
Line 53: | Line 64: | ||
|l=:Category:Magical Abilities |
|l=:Category:Magical Abilities |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{primal| }}} | {{Tag |
|||
|{{{primal| }}} |
|||
|{{Tag |
|||
|Primal |
|Primal |
||
|⛰️ |
|⛰️ |
||
Line 60: | Line 73: | ||
|l=:Category:Primal Abilities |
|l=:Category:Primal Abilities |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{spiritual| }}} | {{Tag |
|||
|{{{spiritual| }}} |
|||
|{{Tag |
|||
|Spirit |
|Spirit |
||
|🪭 |
|🪭 |
||
Line 68: | Line 83: | ||
}} |
}} |
||
}} |
}} |
||
}} |
|||
}} {{ContextBarHelper|Usage |
|||
{{ContextBarHelper|Usage| |
|||
|{{#if: |
|||
{{If |
|||
{{{oc| }}} | {{Tag |
|||
|{{{oc| }}} |
|||
|{{Tag |
|||
|Out of Combat |
|Out of Combat |
||
|OC |
|OC |
||
|l=:Category:Out of Combat Abilities |
|l=:Category:Out of Combat Abilities |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{bc| }}} | {{Tag |
|||
|{{{bc| }}} |
|||
|{{Tag |
|||
|Before Combat |
|Before Combat |
||
|BC |
|BC |
||
|l=:Category:Before Combat Abilities |
|l=:Category:Before Combat Abilities |
||
}} |
}} |
||
}} |
}} |
||
{{If |
|||
{{{ic| }}} | {{Tag |
|||
|{{{ic| }}} |
|||
|{{Tag |
|||
|In Combat |
|In Combat |
||
|IC |
|IC |
||
Line 89: | Line 110: | ||
}} |
}} |
||
}} |
}} |
||
{{ContextBarHelper|Delivery| |
|||
<!-- -------------- --> |
|||
{{If |
|||
<!-- Delivery Logic --> |
|||
|{{{ritual| }}} |
|||
<!-- -------------- --> |
|||
|{{Tag |
|||
{{#ifexpr: |
|||
|Ritual |
|||
{{{ball|0}}} + |
|||
|l=:Category:Rituals |
|||
{{{ray|0}}} + |
|||
}} |
|||
}} |
|||
{{ |
{{If |
||
{{{ |
|{{{ray| }}} |
||
|{{Tag |
|||
{{{ritual|0}}} > 0 |
|||
|Ray |
|||
| '''Delivery:''' {{#if: |
|||
|l=:Category:Rays |
|||
}} |
|||
{{{ray| }}} | {{Tag|Ray|⚡️|l=:Category:Rays}} }} {{#if: |
|||
}} |
|||
{{{aura| }}} | {{Tag|Auras|🌀|l=:Category:Auras}} }} {{#if: |
|||
{{If |
|||
{{{touch| }}} | {{Tag|Touch|🤚|l=:Category:Touches}} }} {{#if: |
|||
|{{{ball| }}} |
|||
{{{passive| }}} | {{Tag|Passive|🧘|l=:Category:Passives}} }} {{#if: |
|||
|{{Tag |
|||
{{{tag}| }}} | {{Tag|Tag|🧤|l=:Category:Tags}} }} {{#if: |
|||
|Ball |
|||
{{{ritual| }}} | {{Tag|Ritual|🔮|l=:Category:Rituals}} }} <br /> }} |
|||
|l=:Category:Balls |
|||
}} |
|||
<!-- Target Logic --> |
|||
}} |
|||
<!-- --> |
|||
{{If |
|||
'''Target: ''' {{{target |
|||
|{{{touch| }}} |
|||
{{ |
|{{Tag |
||
|Touch |
|||
|l=:Category:Touches |
|||
{{{ball|0}}} > 0 |
|||
}} |
|||
| Creatures | 1 Creature }} }}} |
|||
}} |
|||
{{#ifexpr: |
|||
{{If |
|||
{{#if: {{{fullrange| }}} | 1 | 0 }} + |
|||
{{{ |
|{{{aura| }}} |
||
{{ |
|{{Tag |
||
|Auras |
|||
{{{aura|0}}} + |
|||
|l=:Category:Auras |
|||
{{{cone|0}}} + |
|||
}} |
|||
}} |
|||
{{If |
|||
| '''Range:''' {{{fullrange |
|||
| |
|{{{passive| }}} |
||
|{{Tag |
|||
| {{#if: {{{ball| }}} | {{{range|30}}} Feet |
|||
|Passive |
|||
| {{#if: {{{aura| }}} | {{{range|10}}} Foot Emanation |
|||
|l=:Category:Passives |
|||
| {{#if: {{{cone| }}} | {{{range|15}}} Foot Emanation |
|||
}} |
|||
| {{#if: {{{cascade| }}} | {{{range|60}}} Feet |
|||
}} |
|||
| {{#if: {{{fork| }}} | {{{range|30}}} Feet |
|||
{{If |
|||
|{{{tag| }}} |
|||
|{{Tag |
|||
|Tag |
|||
|l=:Category:Tags |
|||
}} |
|||
}} |
|||
}} |
|||
{{ContextBarHelper|Target| |
|||
{{{target |
|||
|{{If |
|||
|{{{aura| }}}{{{cone| }}}{{{ball| }}} |
|||
| Creatures within area of effect |
|||
| 1 creature |
|||
}} |
|||
}}} |
|||
}} |
|||
{{ContextBarHelper|Range| |
|||
{{{fullrange| |
|||
{{If |
|||
|{{{ray| }}} |
|||
|{{{range|60}}} feet |
|||
|{{If |
|||
|{{{ball| }}} |
|||
|{{{range|30}}} feet |
|||
|{{If |
|||
|{{{aura| }}} |
|||
|10-foot emanation |
|||
|{{If |
|||
|{{{cone| }}} |
|||
|15-foot emanation |
|||
|{{If |
|||
|{{{cascade| }}} |
|||
|{{{range|60}}} feet |
|||
|{{If |
|||
|{{{fork| }}} |
|||
|{{{range|30}}} feet |
|||
}} |
}} |
||
}} |
}} |
||
Line 212: | Line 270: | ||
| #default = |
| #default = |
||
}} |
}} |
||
{{#switch: {{{class|}}} |
{{#switch: {{{class| }}} |
||
| ber = {{Cat|Berserker Abilities|name={{{name}}} }} |
| ber = {{Cat|Berserker Abilities|name={{{name}}} }} |
||
| bar = {{Cat|Berserker Abilities|name={{{name}}} }} |
| bar = {{Cat|Berserker Abilities|name={{{name}}} }} |
Revision as of 22:22, 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 to0
)- Indicates if the ability has a mental effect.
divine
: bool (optional, defaults to0
)- Specifies if the ability is divine.
magic
: bool (optional, defaults to0
)- Specifies if the ability is magical.
primal
: bool (optional, defaults to0
)- Indicates if the ability is primal in nature.
spiritual
: bool (optional, defaults to0
)- Indicates if the ability is spiritual.
oc
: bool (optional, defaults to0
)- Tags the ability as out-of-combat.
bc
: bool (optional, defaults to0
)- Tags the ability as before combat.
ic
: bool (optional, defaults to0
)- Tags the ability as in-combat.
life
: bool (optional, defaults to0
)- Indicates if the spell belongs to the Life domain.
storm
: bool (optional, defaults to0
)- Indicates if the spell belongs to the Storm domain.
necro
: bool (optional, defaults to0
)- Indicates if the spell belongs to the Necromancy domain.
flame
: bool (optional, defaults to0
)- Indicates if the spell belongs to the Flame domain.
nature
: bool (optional, defaults to0
)- Indicates if the spell belongs to the Nature domain.
spell
: bool (optional, defaults to0
)- Marks the entry as a spell.
skill
: bool (optional, defaults to0
)- Marks the entry as a skill.
standard
: bool (optional, defaults to0
)- Identifies the entry as a standard conjure spell or a semblant skill.
ball
: bool (optional, defaults to0
)- Identifies the entry as a ball-type spell or skill.
ray
: bool (optional, defaults to0
)- Identifies the entry as a ray-type spell or skill.
aura
: bool (optional, defaults to0
)- Identifies the entry as an aura-type spell or skill.
touch
: bool (optional, defaults to0
)- Identifies the entry as a touch-type spell or skill.
passive
: bool (optional, defaults to0
)- Tags the entry as passive.
tag
: bool (optional, defaults to0
)- Tags the entry for grouping under tags.
ritual
: bool (optional, defaults to0
)- Tags the entry as a ritual.
action
: str (optional)- Specifies a custom action type for the skill.
rank
: str (optional, defaults tonr
)- Specifies the rank of the ability (e.g., 0 for Journeyman, 1 for Rank 1).
num
: str (optional, defaults tona
)- 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.