Ad placeholder

Template:Action page: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(InfoBlob the hit costs)
mNo edit summary
(44 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{PageSeo
<includeonly>{{#lvardef: filename | {{#replace:{{#replace:{{#replace:{{#replace:{{#titleparts: {{PAGENAME}} }}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}}}}{{#lvardef: icon | {{#if: {{{icon|}}} | {{{icon}}} | {{#lvar: filename}} Unfaded Icon.webp }} }}{{#lvardef: controllericon | {{#if: {{{controller icon|}}} | {{{controller icon}}} | {{#lvar: filename}} Icon.webp }} }}{{#switch: {{{this is an example}}}
| yes =
| #default = {{PageSeo
| description = {{{plain summary|{{{summary}}}}}}
| description = {{{plain summary|{{{summary}}}}}}
| image = {{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}
| image = {{#lvar: controllericon}}
}}
}} }}
__NOTOC__
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] | {{#if: {{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right]] }}}}
{{{summary}}}
{{{summary}}}
<h2> Description </h2>
<h2> Description </h2>
{{{description}}}
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
{{#lvardef: hasprop | {{#if: {{{damage|}}}{{{cost|}}}{{{concentration|}}}{{{recharge|}}}{{{duration|}}}{{{distance|}}}{{{aoe|}}}{{{range|}}}{{{range m|}}}{{{area|}}}{{{attack roll|}}}{{{save|}}}{{{additional|}}}|1|0}} }}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} |
 
<p>{{Colour|white|{{{warning}}}}}</p>
 
}}
{{#lvardef: hasprop | {{#if: {{{damage|}}}{{{cost|}}}{{{hit cost|}}}{{{concentration|}}}{{{recharge|}}}{{{duration|}}}{{{distance|}}}{{{aoe|}}}{{{range|}}}{{{range m|}}}{{{area|}}}{{{attack roll|}}}{{{save|}}}{{{additional|}}}|1|0}} }}
{{#ifexpr: {{#lvar: hasprop}} > 0| == Properties ==
{{#ifexpr: {{#lvar: hasprop}} > 0| == Properties ==
<!--DONT DO HACKS AT HOME KIDS-->{{#lvardef:action|0}}
<dl class="bg3wiki-property-list">
{{#lvardef:bonus|0}}
{{#if: {{{cost|}}} |
{{#lvardef:reaction|0}}
<dt> Cost: </dt>
{{#lvardef:freeaction|0}}
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
{{#lvardef:movement|0}}
}} {{#if: {{{hit cost|}}} |
{{#lvardef:hasaction|0}}
<dt> Cost on hit: </dt>
{{#lvardef:hasmovemt|0}}
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
{{#lvardef:hasothers|0}}
}} {{#if: {{{damage type|}}} |
{{#rmatch: {{{cost|}}}|action|{{#lvardef:action|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Action-->
<dt> Damage:</dt>
{{#rmatch: {{{cost|}}}|bonus|{{#lvardef:bonus|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus-->
<dd> {{DamageInfo
{{#rmatch: {{{cost|}}}|reaction|{{#lvardef:reaction|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction-->
    | {{{damage}}}
{{#rmatch: {{{cost|}}}|freeaction|{{#lvardef:freeaction|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Free Action-->
    | {{{damage type}}}
{{#rmatch: {{{cost|}}}|movement|{{#lvardef:movement|1}} {{#lvardef:hasmovemt|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement-->
    | modifier = {{{damage modifier|}}}
<!--Arcane Recovery-->{{#rmatch: {{{cost|}}}|arcrec|{{#lvardef:ar|{{#rmatch:{{{cost|}}}|arcrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
    | save = {{{damage save|}}}
<!--Bardic Inspiration-->{{#rmatch: {{{cost|}}}|barins|{{#lvardef:bi|{{#rmatch:{{{cost|}}}|barins:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|  
    | save effect = {{{damage save effect|}}}
<!--Channel Divinity-->{{#rmatch: {{{cost|}}}|chadiv|{{#lvardef:cd|{{#rmatch:{{{cost|}}}|chadiv:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
    | save dc = {{{damage save dc|}}}
<!--Channel Oath-->{{#rmatch: {{{cost|}}}|chaoat|{{#lvardef:co|{{#rmatch:{{{cost|}}}|chaoat:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
    | con = {{{damage con|}}}
<!--Ki-->{{#rmatch: {{{cost|}}}|ki|{{#lvardef:ki|{{#rmatch:{{{cost|}}}|ki:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|  
    | per = {{{damage per|}}}
<!--Lay On Hands-->{{#rmatch: {{{cost|}}}|layonh|{{#lvardef:lh|{{#rmatch:{{{cost|}}}|layonh:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
    }}</dd>
<!--Natural Recovery-->{{#rmatch: {{{cost|}}}|natrec|{{#lvardef:nr|{{#rmatch:{{{cost|}}}|natrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
| {{#if: {{{damage|}}} | [[Category:Pages using deprecated parameters]]
<!--Rage-->{{#rmatch: {{{cost|}}}|rage|{{#lvardef:rg|{{#rmatch:{{{cost|}}}|rage:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
<dt> Damage: </dt>
<!--Superiority Die-->{{#rmatch: {{{cost|}}}|supdie|{{#lvardef:sd|{{#rmatch:{{{cost|}}}|supdie:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
<dd> {{DamageBlob|{{{damage|}}}}} </dd>
<!--War Priest-->{{#rmatch: {{{cost|}}}|warpri|{{#lvardef:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
<!--Wild Shape-->{{#rmatch: {{{cost|}}}|wldshp|{{#lvardef:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|
<!--Fungal infestation-->{{#rmatch: {{{cost|}}}|fnginf|{{#lvardef:fi|{{#rmatch:{{{cost|}}}|fnginf:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}|
<!--Tides of Chaos-->{{#rmatch: {{{cost|}}}|toc|{{#lvardef:toc|{{#rmatch:{{{cost|}}}|toc:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}|
<!--sorcery points -->{{#rmatch: {{{cost|}}}|sp|{{#lvardef:sp|{{#rmatch:{{{cost|}}}|sp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->
{{#if: {{{level|}}} | {{#ifeq: {{{level}}} | cantrip | | {{#if:{{{no spell slot|}}}||{{#lvardef:hasothers|1}} }} }} }} <!--Spell Level + Not Cantrip + Not "No Spell Slot" -->
|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}{{#ifeq: {{#lvar: hasaction}} | 1 | {{#lvardef:hascost|1}} | {{#ifeq: {{#lvar: hasothers}} | 1 | {{#lvardef:hascost|1}} }}}} <!-- Find out if Cost: is needed -->
<!--if you think i know what im doing, ymmv--><dl class="bg3wiki-property-list">
{{#ifeq: {{#lvar: hasaction}} | 1 |
<dt> Cost:
<dd> {{#ifeq: {{#lvar: freeaction}} | 1 | {{InfoBlob|Free Action}} | {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasmovemt}} | 1 | + {{action|movement}}}} {{#ifeq: {{#lvar: hasothers}} | 1 | +}}}} {{#if: {{{level|}}} |
{{#switch: {{{level}}}
        | cantrip =
        | #default = {{#if:{{{no spell slot|}}}||{{SmallIcon|Spell Slot Icon.png}} Level {{{level}}} Spell Slot}}
}} | {{Ropt|ar|{{#lvar: ar}} }}{{Ropt|bi|{{#lvar: bi}} }}{{Ropt|cd|{{#lvar: cd}} }}{{Ropt|co|{{#lvar: co}} }}{{Ropt|fi|{{#lvar: fi}} }}{{Ropt|ki|{{#lvar: ki}} }}{{Ropt|lh|{{#lvar: lh}} }}{{Ropt|nr|{{#lvar: nr}} }}{{Ropt|rg|{{#lvar: rg}} }}{{Ropt|sd|{{#lvar: sd}} }}{{Ropt|wp|{{#lvar: wp}} }}{{Ropt|ws|{{#lvar: ws}} }}{{Ropt|sp|{{#lvar: sp}} }}{{Ropt|toc|{{#lvar: toc}}}}
}}<!-- End if/if not level spell -->
}}<!-- End if/if not hasaction -->
{{#if: {{{hit cost|}}} |
<dt> Cost on hit:
<dd> {{InfoBlob|{{Resource|{{{hit cost}}}|{{{hit cost amount|1}}}}}}} {{#if: {{{hit cost2|}}} | + {{InfoBlob|{{Resource|{{{hit cost2}}}|{{{hit cost2 amount|1}}}}}}}}}
}} {{#if: {{{damage|}}} |
<dt> Damage:
<dd> {{DamageBlob|{{{damage|}}}}}
}} {{#if: {{{damage2|}}} |
}} {{#if: {{{damage2|}}} |
<dd> + {{DamageBlob|{{{damage2|}}}}}
<dd> + {{DamageBlob|{{{damage2|}}}}} </dd>
}} {{#if: {{{damage3|}}} |
}} {{#if: {{{damage3|}}} |
<dd> + {{DamageBlob|{{{damage3|}}}}}
<dd> + {{DamageBlob|{{{damage3|}}}}} </dd>
}} {{#if: {{{damage4|}}} |
}} {{#if: {{{damage4|}}} |
<dd> + {{DamageBlob|{{{damage4|}}}}}
<dd> + {{DamageBlob|{{{damage4|}}}}} </dd>
}} }} {{#if: {{{extra damage|}}} |
<dd> + {{DamageInfo
    | {{{extra damage}}}
    | {{{extra damage type|}}}
    | modifier = {{{extra damage modifier|}}}
    | save = {{{extra damage save|}}}
    | save effect = {{{extra damage save effect|}}}
    | save dc = {{{extra damage save dc|}}}
    | con = {{{extra damage con|}}}
    | per = {{{extra damage per|}}}
    }}</dd>
}} {{#if: {{{extra damage 2|}}} |
<dd> + {{DamageInfo
    | {{{extra damage 2}}}
    | {{{extra damage type 2|}}}
    | modifier = {{{extra damage modifier 2|}}}
    | save = {{{extra damage save 2|}}}
    | save effect = {{{extra damage save effect 2|}}}
    | save dc = {{{extra damage save dc 2|}}}
    | con = {{{extra damage con 2|}}}
    | per = {{{extra damage per 2|}}}
    }}</dd>
}} {{#if: {{{extra damage 3|}}} |
<dd> + {{DamageInfo
    | {{{extra damage 3}}}
    | {{{extra damage type 3|}}}
    | modifier = {{{extra damage modifier 3|}}}
    | save = {{{extra damage save 3|}}}
    | save effect = {{{extra damage save effect 3|}}}
    | save dc = {{{extra damage save dc 3|}}}
    | con = {{{extra damage con 3|}}}
    | per = {{{extra damage per 3|}}}
    }}</dd>
}} {{#if: {{{extra damage 4|}}} |
<dd> + {{DamageInfo
    | {{{extra damage 4}}}
    | {{{extra damage type 4|}}}
    | modifier = {{{extra damage modifier 4|}}}
    | save = {{{extra damage save 4|}}}
    | save effect = {{{extra damage save effect 4|}}}
    | save dc = {{{extra damage save dc 4|}}}
    | con = {{{extra damage con 4|}}}
    | per = {{{extra damage per 4|}}}
    }}</dd>
}} {{#if: {{{extra damage 5|}}} |
<dd> + {{DamageInfo
    | {{{extra damage 5}}}
    | {{{extra damage type 5|}}}
    | modifier = {{{extra damage modifier 5|}}}
    | save = {{{extra damage save 5|}}}
    | save effect = {{{extra damage save effect 5|}}}
    | save dc = {{{extra damage save dc 5|}}}
    | con = {{{extra damage con 5|}}}
    | per = {{{extra damage per 5|}}}
    }}</dd>
}} {{#if: {{{extra damage 6|}}} |
<dd> + {{DamageInfo
    | {{{extra damage 6}}}
    | {{{extra damage type 6|}}}
    | modifier = {{{extra damage modifier 6|}}}
    | save = {{{extra damage save 6|}}}
    | save effect = {{{extra damage save effect 6|}}}
    | save dc = {{{extra damage save dc 6|}}}
    | con = {{{extra damage con 6|}}}
    | per = {{{extra damage per 6|}}}
    }}</dd>
}} {{#if: {{{attack roll|}}} {{{ritual|}}} {{{range|}}} {{{range m|}}} {{{range ft|}}} {{{aoe|}}} {{{concentration|}}} {{{area|}}} {{{recharge|}}} {{{duration|}}} {{{save|}}} {{{additional|}}} |
}} {{#if: {{{attack roll|}}} {{{ritual|}}} {{{range|}}} {{{range m|}}} {{{range ft|}}} {{{aoe|}}} {{{concentration|}}} {{{area|}}} {{{recharge|}}} {{{duration|}}} {{{save|}}} {{{additional|}}} |
<dt> Details: <!-- If you add any further detail fields below, make sure to extend the list above as well. -->
<dt> Details: </dt><!-- If you add any further detail fields below, make sure to extend the list above as well. -->
{{#if: {{{attack roll|}}} |
{{#if: {{{attack roll|}}} |
<dd> {{Attack Roll}}
<dd> {{Attack Roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}</dd>
}}{{#if: {{{range m|}}} {{{range ft|}}}
}}{{#if: {{{range m|}}} {{{range ft|}}}
| {{#if: {{{range m|}}} |  
| {{#if: {{{range m|}}} |  
     {{#if: {{{range ft|}}} | <dd> {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
     {{#if: {{{range ft|}}} | <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
     |  <dd> {{Range | m = {{{range m}}} | ft = {{#expr:ceil({{{range m}}} * 3.280839895)}}}}
     |  <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
     }}
     }}
   |  <dd> {{Range | m = {{#expr:{{{range ft}}} / 3.280839895 round 0}} | ft = {{{range ft}}}}}
   |  <dd> {{Range | {{{range|}}} | m = {{#expr:{{{range ft}}} / 3.280839895 round 0}} | ft = {{{range ft}}}}} </dd>
   }}
   }}
| {{#if: {{{range|}}}
| {{#if: {{{range|}}}
   | <dd> {{Range | {{{range}}} }}
   | <dd> {{Range | {{{range}}} }} </dd>
   }}
   }}
}}{{#if: {{{aoe|}}} |
}}{{#if: {{{aoe|}}} |
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} </dd>
}}{{#if: {{{area|}}} |
}}{{#if: {{{area|}}} |
<dd> {{SmallIcon|Aoe Icon.png}} Creates Area: {{{area}}}
<dd> {{SmallIcon|Aoe Icon.png}} Creates Area: {{{area}}} </dd>
}}{{#if: {{{ritual|}}} |
}}{{#if: {{{ritual|}}} |
<dd> {{Ritual Spell}}
<dd> {{Ritual Spell}} </dd>
}}{{#if: {{{concentration|}}} |
}}{{#if: {{{concentration|}}} |
<dd> {{Concentration}}
<dd> {{Concentration}} </dd>
}}{{trim|{{#if: {{{recharge|}}} |<dd>{{Recharge|{{{recharge}}}}}| {{blank}}}}
}}{{#if: {{{recharge|}}} |  
}}{{trim|{{#if: {{{duration|}}}
<dd> {{Recharge|{{{recharge}}}}} </dd> |
|<dd>{{#ifeq:{{lc:{{{duration|}}}}}| LR
}}{{#if: {{{duration|}}} |
|{{Duration|Until Long Rest}}
<dd>{{#ifeq:{{lc:{{{duration|}}}}} | LR |{{Duration|Until Long Rest}}
|{{#ifeq: {{{duration|}}} |Perm
|{{#ifeq: {{{duration|}}} | Perm |{{Duration|Permanent}}
|{{Duration|Permanent}}
|{{Duration|{{{duration}}}}}
|{{Duration|{{{duration}}}}}
}}}}</dd>
}}
}}{{#if: {{{save|}}} |
}}
<dd> {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}</dd>
|{{blank}}
}}
}}
}}{{trim|{{#if: {{{save|}}}
{{#lvardef: saveicon | }} {{#lvardef: savetext | }}
{{#lvardef: savetype | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}}}
{{#lvardef: saverslt | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|1}} | ""}}}}
| {{#switch: {{lc:{{#lvar: savetype}}}}
| strength | str =  {{#lvardef: saveicon | Strength}} {{#lvardef: savetext | STR}}
| dexterity | dex  = {{#lvardef: saveicon | Dexterity}} {{#lvardef: savetext | DEX}}
| constitution | con | = {{#lvardef: saveicon | Constitution}} {{#lvardef: savetext | CON}}
| intelligence | int | = {{#lvardef: saveicon | Intelligence}} {{#lvardef: savetext | INT}}
| wisdom | wis  = {{#lvardef: saveicon | Wisdom}} {{#lvardef: savetext | WIS}}
| charisma | cha  = {{#lvardef: saveicon | Charisma}} {{#lvardef: savetext | CHA}}
| #default = {{#lvardef: saveicon |Alert}} {{#lvardef: savetext | EDITOR SHOULD CHECK TEMPLATE}}
}}<dd>{{SmallIcon|Saving Throw Icons.png}} [[{{#lvar: saveicon}}|{{#lvar: savetext}}]] [[Saving Throw|Save]] {{#if: {{#pos:{{{save|}}}|,}}
| (On Save: {{#explode:{{{save|}}}|,|1}})
}}| {{blank}}
}}
}}  
}}<!-- end details -->
}}<!-- end details -->
</dl>}}<!-- end properties section -->
</dl>}}<!-- end properties section -->
Line 117: Line 152:
{{{additional}}}| {{blank}}
{{{additional}}}| {{blank}}
}}  
}}  
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}}
{{#if: {{{higher levels|}}} | == At Higher Levels ==}}
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{higher levels|}}} | {{{higher levels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{clear}}</div>
{{clear}}</div>
{{#if: {{{variants|}}} |
{{#if: {{{variants|}}} |
Line 197: Line 232:
}}<!-- / area condition -->
}}<!-- / area condition -->
</div>
</div>
}}<!-- / area --><h2> How to Learn </h2>
}}<!-- / area -->{{#ifeq: {{{common|}}}|yes||<h2> How to learn </h2>
{{#lvardef: how-to-learn-content |
{{#lvardef: how-to-learn-content |
   {{#lvardef: classes-learn-list |
   {{#lvardef: classes-learn-list |
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
* Class Level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
* Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
       }}
       }}
     }}
     }}
Line 208: Line 243:
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}}
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}}
* Character Level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }}
* Character level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }}
       }}
       }}
     }}
     }}
Line 219: Line 254:
{{#lvar:races-learn-list}}
{{#lvar:races-learn-list}}


(Character Level is the sum of all Class Levels for a multi-classed character.)
([[Character level]] is the sum of all class levels for a multi-classed character.)
   }}{{#if: {{{granted by feats|}}} | {{blank}}
   }}{{#if: {{{granted by feats|}}} | {{blank}}


Granted by the Feats:
Granted by feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
   }}{{#if: {{{granted by items|}}} | {{blank}}
   }}{{#if: {{{granted by items|}}} | {{blank}}


Granted by the Items:
Granted by items:
{{#invoke: ParseList | main | {{{granted by items}}} | useTemplate = MdRarityItem }}
{{#invoke: ParseList | main | {{{granted by items}}} | type = htmlList | useTemplate = GrantedByItems/Format }}
   }}{{#if: {{{granted by spells|}}} | {{blank}}
   }}{{#if: {{{granted by spells|}}} | {{blank}}


Granted by the Spells:
Granted by spells:
{{#invoke: ParseList | main | {{{granted by spells}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{granted by spells}}} | makeLinks = yes }}
   }}{{#if: {{{used by creatures|}}} | {{blank}}
   }}{{#if: {{{used by creatures|}}} | {{blank}}


Used by Creatures:
Used by creatures:
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }}
  }}{{#if: {{{variant of|}}} | {{blank}}
 
This action is a variation of:<br>
{{SAI|{{{variant of}}}|w=40}}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
Other ways to learn:
Other ways to learn:


Line 242: Line 282:
}}<div class="bg3wiki-tooltip-box">
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div>{{clear}}
}}{{#if: {{{notes|}}} |
<h2> Notes </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>
}}{{#if: {{{bugs|}}} |
<h2> Bugs </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
</div>
{{clear}}
}}{{#if: {{{video|}}} |
{{#if: {{{notes|}}} | == Notes == }}
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>| {{blank}}}}}}{{#if: {{{video|}}} |
 
<h2> Visuals </h2>
<h2> Visuals </h2>
[[File:{{{video}}}]]
[[File:{{{video}}}]]
 
}}{{#switch: {{{this is an example}}}
| yes =
| #default = {{Main namespace only|{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}{{#if: {{{cost|}}} | | [[Category:Free actions]]}}{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}[[Category:Class actions]]{{#if: {{{cost amount|}}}{{{cost2|}}}{{{cost2 amount|}}}{{{cost3|}}}{{{cost3 amount|}}}{{{hit cost amount|}}}{{{hit cost2|}}}{{{hit cost2 amount|}}}{{{higherlevels|}}} | [[Category:Pages using deprecated parameters]]}}{{#cargo_store:
_table = spells
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| image = {{{image|}}}
| controller_icon = {{#lvar:controllericon}}
| icon = {{#lvar:icon}}
| is_spell = no
| is_weapon_action = no
| aoe = {{{aoe|}}}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| is_npc = {{#if:{{{npc only|}}}|yes}}
| can_upcast = {{#if:{{{higher levels|}}}|yes}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| description = {{{description|}}}
| extra_description = {{{extra description|}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
<!-- A little logic to try to make sure the list of classes only contains unique values. -->
| save = {{{save|}}}
| damage = {{{damage|}}}
| damage_type = {{{damage type|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| condition_duration = {{{condition duration|}}}
| recharge = {{{recharge|}}}
}}
}} }}<!-- End if type is not none --></includeonly><noinclude>
{{documentation}}{{#cargo_attach:
_table = spells
}}
}}
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
{{#if: {{{level|}}} | [[Category:Spells]] {{#ifeq: {{{level}}} | cantrip | [[Category:Cantrips]] | [[Category:Level {{{level}}} Spells]] }}    {{#if: {{{school|}}} | [[Category:{{{school}}} Spells]]}} {{#if: {{{ritual|}}} | [[Category:Ritual Spells]]}}
  {{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Reactions]]
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Free Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Bonus Actions]]
|{{#ifeq: {{#lvar: action}} | 1 |<!--Spells aren't included in Actions-->
| [[Category:Passive Features]]
}}
}}
|}}
|}}
|{{#ifeq: {{#lvar: hasclasslearn}} | 1
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class Actions]][[Category:Reactions]]
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Class Actions]][[Category:Free Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Class Actions]][[Category:Bonus Actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]]
| [[Category:Class Actions]][[Category:Passive Features]]
}}
}}
|}}
|}}
|{{#ifeq: {{#lvar: hasracelearn}} | 1
  |{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Racial Action]][[Category:Reactions]]
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Racial Action]][[Category:Free Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Racial Action]][[Category:Bonus Actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Racial Action]][[Category:Actions]]
| [[Category:Racial Action]][[Category:Passive Features]]
}}
}}
        }}
  |}}
|
}}<!-- End if race can learn -->
}}<!-- End if class can learn -->
}}<!-- End if is a spell -->
}}<!-- End if type is not none -->
</includeonly><noinclude>
{{/doc}}
</noinclude>
</noinclude>

Navigation menu