Template:Feat: Difference between revisions

Template page
mNo edit summary
Tag: wikieditor
No edit summary
 
(36 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>==Usage==
<noinclude>{{Feat/doc}}</noinclude>
<code><nowiki>{{Feat</nowiki></code><br>
<code><nowiki>|name=</nowiki></code><br>
<code><nowiki>|cat=</nowiki></code><br>
<code><nowiki>|prereq=</nowiki></code><br>
<code><nowiki>}}</nowiki></code>
==Important==
The name parameter '''''must be the same''''' as the page name (underscore excluded, space works):
::'''Feat Page URL:''' https://rp.klanen.org/wiki/kfp/Feat_Name
::'''Template Parameter:''' <code><nowiki>|name=Feat Name</nowiki></code>
----
To set the categories of the feat, write the category name in lowercase and a space between each. If a subcategory is chosen, the root category will also be added automagically.
::<code><nowiki>|cat=sleight of hand</nowiki></code>
Will add <code><nowiki>Category:Skill Feat</nowiki></code> and <code><nowiki>Category:Sleight of Hand Feat</nowiki></code>
<tab name="Show List of Categories" collapsed>
    general
    ability
        dexterity
        perception
        strength
        constitution
        intelligence
        wisdom
        charisma
        luck
    skill
        acrobatics
        alchemy
        animal handling
        arcana
        athletics
        brawn
        coercion
        deception
        economics
        engineering
        geography
        history
        insight
        investigation
        medicine
        nature
        occultism
        primalism
        psionics
        religion
        society
        sleight of hand
        stealth
        warfare
    tool
        beautician
        brewer
        calligrapher
        carpenter
        cobbler
        cook
        glassblower
        herbalist
        jeweler
        leatherworker
        mason
        painter
        potter
        tailor
        smith
        tattooist
        tinker
        thieves
        woodcarver
        gaming
    vehicle
        air vehicle
        land vehicle
        water vehicle
        siege engine
    language
    performance
    weapon
    armor
    martial
    arcane
        arcane spellcasting
    divine
        divine spellcasting
    primal
        primal spellcasting
        flora
        fauna
        caelum
        terra
        fungi
        spiritus
    innate
        body power
        psychic power
        elemental power
    occult
        occult spellcasting
        invocation
            cantrip invocation
            at-will invocation
            passive invocation
            once invocation
    cunning
</tab>
----
The prereq paramter can describe prerequisite feats or other requirements.
::<code><nowiki>|prereq=[[Arnold]], a lot of [[Strength]]</nowiki></code>
</noinclude>
<includeonly>{{
<includeonly>{{
     #ifeq: {{PAGENAME}} | {{{name}}}  
     #ifeq: {{PAGENAME}} | {{{name}}}  
Line 180: Line 71:
         {{#ifexpr:{{#count:{{{cat|}}}|martial}} > 0 | [[Category:Martial Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|martial}} > 0 | [[Category:Martial Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|arcane}} > 0 | [[Category:Arcane Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|arcane}} > 0 | [[Category:Arcane Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|arcane spellcasting}} > 0 | [[Category:Arcane Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|arcane spellcasting}} > 0 | [[Category:Spellcasting Feat]][[Category:Arcane Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|divine}} > 0 | [[Category:Divine Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|divine}} > 0 | [[Category:Divine Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|divine spellcasting}} > 0 | [[Category:Divine Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|divine spellcasting}} > 0 | [[Category:Spellcasting Feat]][[Category:Divine Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|primal}} > 0 | [[Category:Primal Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|primal}} > 0 | [[Category:Primal Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|primal spellcasting}} > 0 | [[Category:Primal Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|primal spellcasting}} > 0 | [[Category:Spellcasting Feat]][[Category:Primal Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|flora}} > 0 | [[Category:Primal Feat]][[Category:Flora Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|flora}} > 0 | [[Category:Primal Feat]][[Category:Flora Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|fauna}} > 0 | [[Category:Primal Feat]][[Category:Fauna Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|fauna}} > 0 | [[Category:Primal Feat]][[Category:Fauna Feat]] | }}
Line 193: Line 84:
         {{#ifexpr:{{#count:{{{cat|}}}|elementus}} > 0 | [[Category:Primal Feat]][[Category:Elementus Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|elementus}} > 0 | [[Category:Primal Feat]][[Category:Elementus Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|innate}} > 0 | [[Category:Innate Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|innate}} > 0 | [[Category:Innate Feat]] | }}
        {{#ifexpr:{{#count:{{{cat|}}}|base power}} > 0 | [[Category:Innate Feat]][[Category:General Power Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|body power}} > 0 | [[Category:Innate Feat]][[Category:Body Power Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|body power}} > 0 | [[Category:Innate Feat]][[Category:Body Power Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|psychic power}} > 0 | [[Category:Innate Feat]][[Category:Psychic Power Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|psychic power}} > 0 | [[Category:Innate Feat]][[Category:Psychic Power Feat]] | }}
Line 199: Line 91:
             {{#ifexpr:{{#count:{{{cat|}}}|occultism}} = 1 | | [[Category:Occult Feat]]}} |  
             {{#ifexpr:{{#count:{{{cat|}}}|occultism}} = 1 | | [[Category:Occult Feat]]}} |  
         }}
         }}
         {{#ifexpr:{{#count:{{{cat|}}}|occult spellcasting}} > 0 | [[Category:Occult Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|occult spellcasting}} > 0 | [[Category:Spellcasting Feat]][[Category:Occult Spellcasting Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|invocation}} > 0 | [[Category:Occult Feat]][[Category:Eldritch Invocation Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|invocation}} > 0 | [[Category:Occult Feat]][[Category:Eldritch Invocation Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|cantrip invocation}} > 0 | [[Category:Cantrip Invocation Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|cantrip invocation}} > 0 | [[Category:Cantrip Invocation Feat]] | }}
Line 207: Line 99:
         {{#ifexpr:{{#count:{{{cat|}}}|cunning}} > 0 | [[Category:Cunning Feat]] | }}
         {{#ifexpr:{{#count:{{{cat|}}}|cunning}} > 0 | [[Category:Cunning Feat]] | }}
     | }}
     | }}
}}{{#if:{{{prereq|}}} | '''''Prerequisite:''' {{{prereq}}}''
}}{{FeatCSS}}{{#if:{{{cat|}}} |
---- | }}</includeonly>
        {{#ifexpr:{{#count:{{{cat|}}}|cantrip invocation}} > 0 | <span class="feat-details">'''Invocation:''' [[Feat/List/Theme/Occult/Invocation/Cantrip|Cantrip]] [[Feat/List/Theme/Occult/Invocation|Invocation]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}}| }}
        {{#ifexpr:{{#count:{{{cat|}}}|at-will invocation}} > 0 | <span class="feat-details">'''Invocation:''' [[Feat/List/Theme/Occult/Invocation/At-Will|At-Will]] [[Feat/List/Theme/Occult/Invocation|Invocation]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|passive invocation}} > 0 | <span class="feat-details">'''Invocation:''' [[Feat/List/Theme/Occult/Invocation/Passive|Passive]] [[Feat/List/Theme/Occult/Invocation|Invocation]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|once invocation}} > 0 | <span class="feat-details">'''Invocation:''' [[Feat/List/Theme/Occult/Invocation/Once_Per_Day|Once Per Day]] [[Feat/List/Theme/Occult/Invocation|Invocation]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|flora}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Flora|Flora]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|fauna}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Fauna|Fauna]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|caelum}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Caelum|Caelum]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|terra}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Terra|Terra]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|fungi}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Fungi|Fungi]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|spiritus}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Spiritus|Spiritus]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|elementus}} > 0 | <span class="feat-details">'''Domain:''' [[Feat/List/Theme/Primal/Elementus|Elementus]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|body power}} > 0 | <span class="feat-details">'''Power:''' [[Feat/List/Theme/Innate/Body Power|Body Power]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|psychic power}} > 0 | <span class="feat-details">'''Power:''' [[Feat/List/Theme/Innate/Psychic Power|Psychic Power]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
        {{#ifexpr:{{#count:{{{cat|}}}|elemental power}} > 0 | <span class="feat-details">'''Power:''' [[Feat/List/Theme/Innate/Elemental Power|Elemental Power]]</span>{{#if:{{{prereq|}}} | <br> | &nbsp;
----}} | }}
| }}{{#if:{{{prereq|}}} | <span style="font-size:.8em;"><span style="font-weight:bold;">'''Prerequisite:'''</span> {{{prereq}}}</span>
<hr style="margin:-.8em 0 -.7em 0;">| }}</includeonly>

Latest revision as of 21:33, 23 October 2024

Usage

{{Feat
|name=
|cat=
|prereq=
}}

Important

The name parameter must be the same as the page name (underscore excluded, space works):

Feat Page URL: https://rp.klanen.org/wiki/kfp/Feat_Name
Template Parameter: |name=Feat Name

Tip: Use |name={{subst:PAGENAME}} to automatically add the page name to the |name= parameter.


To set the categories of the feat, write the category name in lowercase and a space between each. If a subcategory is chosen, the root category will also be added automagically.

|cat=sleight of hand

Will add Category:Skill Feat and Category:Sleight of Hand Feat

   general
   ability
       dexterity
       perception
       strength
       constitution
       intelligence
       wisdom
       charisma
       luck
   skill
       acrobatics
       alchemy
       animal handling
       arcana
       athletics
       brawn
       coercion
       deception
       economics
       engineering
       geography
       history
       insight
       investigation
       medicine
       nature
       occultism
       primalism
       psionics
       religion
       society
       sleight of hand
       stealth
       warfare
   tool
       beautician
       brewer
       calligrapher
       carpenter
       cobbler
       cook
       glassblower
       herbalist
       jeweler
       leatherworker
       mason
       painter
       potter
       tailor
       smith
       tattooist
       tinker
       thieves
       woodcarver
       gaming
   vehicle
       air vehicle
       land vehicle
       water vehicle
       siege engine
   language
   performance
   weapon
   armor
   martial
   arcane
       arcane spellcasting
   divine
       divine spellcasting
   primal
       primal spellcasting
       flora
       fauna
       caelum
       terra
       fungi
       spiritus
   innate
       base power
       body power
       psychic power
       elemental power
   occult
       occult spellcasting
       invocation
           cantrip invocation
           at-will invocation
           passive invocation
           once invocation
   cunning

The prereq paramter can describe prerequisite feats or other requirements.

|prereq=[[Arnold]], a lot of [[Strength]]