More actions
Content deleted Content added
No edit summary |
Replaced content with "{{L|Category|Abilities|Abilit{{{1|y}}}}}" Tag: Replaced |
||
(137 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{L|Category|Abilities|Abilit{{{1|y}}}}} |
|||
<includeonly>{{{1}}} |
|||
{{#if: {{{mental|}}} | [[Category:Mental Effects]] }} |
|||
{{#if: {{{divine|}}} | [[Category:Divine Abilities]] }} |
|||
{{#if: {{{magic|}}} | [[Category:Magical Abilities]] }} |
|||
{{#if: {{{primal|}}} | [[Category:Primal Abilities]] }} |
|||
{{#if: {{{spiritual|}}} | [[Category:Spiritual Abilities]] }} |
|||
{{#if: {{{oc|}}} | [[Category:Out of Combat Abilities]] }} |
|||
{{#if: {{{bc|}}} | [[Category:Before Combat Abilities]] }} |
|||
{{#if: {{{ic|}}} | [[Category:In Combat Abilities]] }} |
|||
{{#if: {{{life|}}} | [[Category:Life Spells]] }} |
|||
{{#if: {{{storm|}}} | [[Category:Storm Spells]] }} |
|||
{{#if: {{{necro|}}} | [[Category:Necromancy Spells]] }} |
|||
{{#if: {{{flame|}}} | [[Category:Flame Spells]] }} |
|||
{{#if: {{{nature|}}} | [[Category:Nature Spells]] }} |
|||
{{#if: {{{spell|}}} | [[Category:Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Skills]] }} |
|||
{{#if: {{{standard|}}} | |
|||
{{#if: {{{spell|}}} | [[Category:Conjure Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Semblant Skills]] }} |
|||
}} |
|||
{{#if: {{{ball|}}} | |
|||
[[Category:Balls]] |
|||
{{#if: {{{spell|}}} | [[Category:Ball Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Ball Skills]] }} |
|||
}} |
|||
{{#if: {{{ray|}}} | |
|||
[[Category:Rays]] |
|||
{{#if: {{{spell|}}} | [[Category:Ray Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Ray Skills]] }} |
|||
}} |
|||
{{#if: {{{aura|}}} | |
|||
[[Category:Auras]] |
|||
{{#if: {{{spell|}}} | [[Category:Aura Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Aura Skills]] }} |
|||
}} |
|||
{{#if: {{{touch|}}} | |
|||
[[Category:Touches]] |
|||
{{#if: {{{spell|}}} | [[Category:Touch Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Touch Skills]] }} |
|||
}} |
|||
{{#if: {{{passive|}}} | |
|||
[[Category:Passives]] |
|||
{{#if: {{{spell|}}} | [[Category:Passive Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Passive Skills]] }} |
|||
}} |
|||
{{#if: {{{tag|}}} | |
|||
[[Category:Tags]] |
|||
{{#if: {{{spell|}}} | [[Category:Tag Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Tag Skills]] }} |
|||
}} |
|||
{{#if: {{{ritual|}}} | |
|||
[[Category:Rituals]] |
|||
{{#if: {{{spell|}}} | [[Category:Ritual Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Ritual Skills]] }} |
|||
}} |
|||
{{#if: {{{action|}}} | |
|||
{{#if: {{{skill|}}} | [[Category:{{{action}}} Action Skills]] }} |
|||
}} |
|||
{{#switch: {{{rank|nr}}} |
|||
| 0 = [[Category:Journeyman Abilities]] |
|||
| 1 = [[Category:Rank 1 Abilities]] |
|||
| 2 = [[Category:Rank 2 Abilities]] |
|||
| 3 = [[Category:Rank 3+ Abilities]] |
|||
| nr = [[Category:Non-ranked Abilities]] |
|||
| #default = [[Category:Non-standard Abilities]] |
|||
}} |
|||
{{#switch: {{{num|na}}} |
|||
| na = [[Category:Abilities]] |
|||
| 0 = [[Category:Free Action Abilities]] |
|||
{{#if: {{{spell|}}} | [[Category:Free Action Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Free Action Skills]] }} |
|||
| 1 = [[Category:Single Action Abilities]] |
|||
{{#if: {{{spell|}}} | [[Category:Single Action Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Single Action Skills]] }} |
|||
| 2 = [[Category:Double Action Abilities]] |
|||
{{#if: {{{spell|}}} | [[Category:Double Action Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Double Action Skills]] }} |
|||
| 3 = [[Category:Triple Action Abilities]] |
|||
{{#if: {{{spell|}}} | [[Category:Triple Action Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Triple Action Skills]] }} |
|||
| re = [[Category:Reaction Abilities]] |
|||
{{#if: {{{spell|}}} | [[Category:Reaction Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Reaction Skills]] }} |
|||
| act = [[Category:Activity Abilities]] |
|||
{{#if: {{{spell|}}} | [[Category:Activity Spells]] }} |
|||
{{#if: {{{skill|}}} | [[Category:Activity Skills]] }} |
|||
| #default = [[Category:Abilities]] |
|||
}} |
|||
[[Category:Abilities]]</includeonly><noinclude> |
|||
== 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 === |
|||
* <code>1</code>: str (required) |
|||
*: The name or description of the ability, spell, or skill. |
|||
* <code>mental</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the ability has a mental effect. |
|||
* <code>divine</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Specifies if the ability is divine. |
|||
* <code>magic</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Specifies if the ability is magical. |
|||
* <code>primal</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the ability is primal in nature. |
|||
* <code>spiritual</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the ability is spiritual. |
|||
* <code>oc</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Tags the ability as out-of-combat. |
|||
* <code>bc</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Tags the ability as before combat. |
|||
* <code>ic</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Tags the ability as in-combat. |
|||
* <code>life</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the spell belongs to the Life domain. |
|||
* <code>storm</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the spell belongs to the Storm domain. |
|||
* <code>necro</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the spell belongs to the Necromancy domain. |
|||
* <code>flame</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the spell belongs to the Flame domain. |
|||
* <code>nature</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Indicates if the spell belongs to the Nature domain. |
|||
* <code>spell</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Marks the entry as a spell. |
|||
* <code>skill</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Marks the entry as a skill. |
|||
* <code>standard</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Identifies the entry as a standard conjure spell or a semblant skill. |
|||
* <code>ball</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Identifies the entry as a ball-type spell or skill. |
|||
* <code>ray</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Identifies the entry as a ray-type spell or skill. |
|||
* <code>aura</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Identifies the entry as an aura-type spell or skill. |
|||
* <code>touch</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Identifies the entry as a touch-type spell or skill. |
|||
* <code>passive</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Tags the entry as passive. |
|||
* <code>tag</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Tags the entry for grouping under tags. |
|||
* <code>ritual</code>: bool (optional, defaults to <code>0</code>) |
|||
*: Tags the entry as a ritual. |
|||
* <code>action</code>: str (optional) |
|||
*: Specifies a custom action type for the skill. |
|||
* <code>rank</code>: str (optional, defaults to <code>nr</code>) |
|||
*: Specifies the rank of the ability (e.g., 0 for Journeyman, 1 for Rank 1). |
|||
* <code>num</code>: str (optional, defaults to <code>na</code>) |
|||
*: 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. |
|||
</noinclude> |