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
Replaced content with "{{L|Category|Abilities|Abilit{{{1|y}}}}}"
Tag: Replaced
 
(138 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>
== Documentation: Ability Template ==

This template automatically categorizes ability pages based on provided parameters. Include this template at the end of an ability page and set the appropriate parameters to categorize the ability correctly.

=== Usage ===

<pre>
{{Ability
|1= <!-- Optional content to include -->
|mental= <!-- Any value if the ability is a mental effect -->
|divine= <!-- Any value if the ability is divine -->
|magic= <!-- Any value if the ability is magical -->
|primal= <!-- Any value if the ability is primal -->
|spiritual= <!-- Any value if the ability is spiritual -->
|oc= <!-- Any value if used out of combat -->
|bc= <!-- Any value if used before combat -->
|ic= <!-- Any value if used in combat -->
|life= <!-- Any value if it's a Life spell -->
|storm= <!-- Any value if it's a Storm spell -->
|necro= <!-- Any value if it's a Necromancy spell -->
|flame= <!-- Any value if it's a Flame spell -->
|nature= <!-- Any value if it's a Nature spell -->
|spell= <!-- Any value if the ability is a spell -->
|skill= <!-- Any value if the ability is a skill -->
|standard= <!-- Any value if it's a standard action ability -->
|ball= <!-- Any value if it's a ball ability -->
|ray= <!-- Any value if it's a ray ability -->
|aura= <!-- Any value if it's an aura ability -->
|touch= <!-- Any value if it's a touch ability -->
|passive= <!-- Any value if it's a passive ability -->
|tag= <!-- Any value if it's a tag ability -->
|ritual= <!-- Any value if it's a ritual ability -->
|action= <!-- Specify action type for custom categorization -->
|rank= <!-- Rank of the ability: 0, 1, 2, 3, 'nr' for non-ranked -->
|num= <!-- Number of actions: '0', '1', '2', '3', 're', 'act', 'na' -->
}}
</pre>

=== Parameters ===

'''1''' (optional): Additional content to include where the template is placed.

'''Ability Attributes:'''

Set these to any non-empty value to include the ability in the corresponding category.

* '''mental''': The ability is a mental effect.
* '''divine''': The ability is divine.
* '''magic''': The ability is magical.
* '''primal''': The ability is primal.
* '''spiritual''': The ability is spiritual.
* '''oc''': Out of Combat ability.
* '''bc''': Before Combat ability.
* '''ic''': In Combat ability.

'''Spell Schools:'''

* '''life''': Life spell.
* '''storm''': Storm spell.
* '''necro''': Necromancy spell.
* '''flame''': Flame spell.
* '''nature''': Nature spell.

'''Ability Types:'''

* '''spell''': Ability is a spell.
* '''skill''': Ability is a skill.

'''Action Types:'''

Set only one of these per ability.

* '''standard''': Standard action ability.
* If '''spell''' is set, categorized under "Conjure Spells".
* If '''skill''' is set, categorized under "Semblant Skills".
* '''ball''': Ball ability.
* Categorizes under "Balls" and further under "Ball Spells" or "Ball Skills".
* '''ray''': Ray ability.
* Categorizes under "Rays" and further under "Ray Spells" or "Ray Skills".
* '''aura''': Aura ability.
* Categorizes under "Auras" and further under "Aura Spells" or "Aura Skills".
* '''touch''': Touch ability.
* Categorizes under "Touches" and further under "Touch Spells" or "Touch Skills".
* '''passive''': Passive ability.
* Categorizes under "Passives" and further under "Passive Spells" or "Passive Skills".
* '''tag''': Tag ability.
* Categorizes under "Tags" and further under "Tag Spells" or "Tag Skills".
* '''ritual''': Ritual ability.
* Categorizes under "Rituals" and further under "Ritual Spells" or "Ritual Skills".

'''Custom Action Category:'''

* '''action''': Specify custom action type (e.g., "Free", "Single"). This parameter is used for custom categorization like "Free Action Skills" when combined with '''skill'''.

'''Rank:'''

* '''rank''': Rank of the ability.
* '''0''': Journeyman Abilities.
* '''1''': Rank 1 Abilities.
* '''2''': Rank 2 Abilities.
* '''3''': Rank 3+ Abilities.
* '''nr''': Non-ranked Abilities.
* Any other value: Non-standard Abilities.

'''Number of Actions:'''

* '''num''': Number of actions required.
* '''0''': Free Action.
* '''1''': Single Action.
* '''2''': Double Action.
* '''3''': Triple Action.
* '''re''': Reaction.
* '''act''': Activity.
* '''na''': Not applicable.
* Any other value: Categorizes as "Abilities" by default.

=== Examples ===

'''Example 1: Rank 1 Single Action Flame Spell'''

<pre>
{{Ability
|spell=1
|flame=1
|rank=1
|num=1
}}
</pre>

''Categories added:''

* Spells
* Flame Spells
* Rank 1 Abilities
* Single Action Abilities
* Single Action Spells
* Abilities

----

'''Example 2: Non-Ranked Passive Skill Used in Combat'''

<pre>
{{Ability
|skill=1
|passive=1
|ic=1
|rank=nr
}}
</pre>

''Categories added:''

* Skills
* Passives
* Passive Skills
* In Combat Abilities
* Non-ranked Abilities
* Abilities

----

'''Example 3: Rank 2 Ritual Nature Spell (Activity)'''

<pre>
{{Ability
|spell=1
|ritual=1
|nature=1
|rank=2
|num=act
}}
</pre>

''Categories added:''

* Spells
* Rituals
* Ritual Spells
* Nature Spells
* Rank 2 Abilities
* Activity Abilities
* Activity Spells
* Abilities

----

'''Example 4: Double Action Primal Skill with Custom Action Type'''

<pre>
{{Ability
|skill=1
|primal=1
|action=Double
|num=2
}}
</pre>

''Categories added:''

* Skills
* Primal Abilities
* Double Action Abilities
* Double Action Skills
* Abilities

----

'''Example 5: Ability with Multiple Attributes'''

<pre>
{{Ability
|skill=1
|spell=1
|magic=1
|storm=1
|ray=1
|rank=3
|num=1
}}
</pre>

''Categories added:''

* Skills
* Spells
* Magical Abilities
* Storm Spells
* Rays
* Ray Spells
* Ray Skills
* Rank 3+ Abilities
* Single Action Abilities
* Single Action Spells
* Single Action Skills
* Abilities

=== Notes ===

* The template automatically includes `[[Category:Abilities]]` at the end.
* Setting any parameter to a non-empty value (e.g., `1`, `yes`) activates the corresponding category.
* For accurate categorization, set only one action type parameter per ability.
* The order of parameters does not affect the categorization.

</noinclude>

Latest revision as of 06:58, 21 January 2025