Ad placeholder

Template:Action page: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
(150 intermediate revisions by 10 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}}}
| description = {{{summary}}}
| yes =
| image = {{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}
| #default = {{PageSeo
}}
| description = {{{plain summary|{{{summary}}}}}}
| 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}}}
== Description ==
<h2> Description </h2>
{{{description}}}
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
{{#lvardef: hasprop | {{#if: {{{damage|}}} | 1}}{{#if: {{{cost|}}} | 1}}{{#if: {{{concentration|}}} | 1}}{{#if: {{{recharge|}}} | 1}}{{#if: {{{distance|}}} | 1}}{{#if: {{{aoe|}}} | 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 ==
{{trim|
<dl class="bg3wiki-property-list">
{{#if: {{{damage|}}} |
{{#if: {{{cost|}}} |
{{#lvardef: amt|}}{{#lvardef: typ|}}{{#lvardef: mod|}}{{#lvardef: per|}}{{#lvardef: sav|}}{{#lvardef: sfx|}}
<dt> Cost: </dt>
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amounttext:}}||| {{#lvardef: amttxt|{{#rmatch: {{{damage|}}}|amounttext:\s?([^\s][^,]*)|$1|caseless=0}}}}}}
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}||| {{#lvardef: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
}} {{#if: {{{hit cost|}}} |
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|||{{#lvardef: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
<dt> Cost on hit: </dt>
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|||{{#lvardef: mod|{{#rmatch: {{{damage|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|||{{#lvardef: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
}} {{#if: {{{damage type|}}} |
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|||{{#lvardef: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
<dt> Damage:</dt>
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|||{{#lvardef: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
<dd> {{DamageInfo
{{#lvardef: dmg1|{{#if: {{#lvar: amttxt}}|{{DamageText|{{#lvar: amttxt}} |{{#lvar: typ}}}}|{{DamageInfo|{{#lvar: amt}}|{{#lvar: typ}}}}|modifier = {{#lvar:mod}}|per = {{#lvar: dot}}|save = {{#lvar: sav}}|save effect = {{#lvar: sfx}}}}}}}}
    | {{{damage}}}
{{#if: {{{damage2|}}} |
    | {{{damage type}}}
{{#lvardef: amttxt|}}{{#lvardef: amt|}}{{#lvardef: typ|}}{{#lvardef: mod|}}{{#lvardef: per|}}{{#lvardef: sav|}}{{#lvardef: sfx|}}
    | modifier = {{{damage modifier|}}}
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amounttext:}}||| {{#lvardef: amttxt|{{#rmatch: {{{damage2|}}}|amounttext:\s?([^\s][^,]*)|$1|caseless=0}}}}}}
    | save = {{{damage save|}}}
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amount:}}||| {{#lvardef: amt|{{#rmatch: {{{damage2|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
    | save effect = {{{damage save effect|}}}
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|type:}}|||{{#lvardef: typ|{{#rmatch: {{{damage2|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
    | save dc = {{{damage save dc|}}}
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|mod:}}|||{{#lvardef: mod|{{#rmatch: {{{damage2|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
    | con = {{{damage con|}}}
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|per:}}|||{{#lvardef: dot|{{#rmatch: {{{damage2|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
    | per = {{{damage per|}}}
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|||{{#lvardef: sav|{{#rmatch: {{{damage2|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
    }}</dd>
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|||{{#lvardef: sfx|{{#rmatch: {{{damage2|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
| {{#if: {{{damage|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
{{#lvardef: dmg2|{{#if: {{#lvar: amttxt}}|{{DamageText|{{#lvar: amttxt}} |{{#lvar: typ}}}}|{{DamageInfo|{{#lvar: amt}}|{{#lvar: typ}}}}|modifier = {{#lvar:mod}}|per = {{#lvar: dot}}|save = {{#lvar: sav}}|save effect = {{#lvar: sfx}}}}}}}}
<dt> Damage: </dt>
{{#if: {{{damage|}}}| {{#if:{{{damage2|}}}| {{InfoBlob|{{#lvar: dmg1}} + {{#lvar: dmg2}}}} | {{#lvar: dmg1}}}}|{{blank}}}}
<dd> {{DamageBlob|{{{damage|}}}}} </dd>
     {{#if: {{#lvar: amttxt}}|<p>|}}
}} {{#if: {{{damage2|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<dd> + {{DamageBlob|{{{damage2|}}}}} </dd>
}} {{#if: {{{damage3|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<dd> + {{DamageBlob|{{{damage3|}}}}} </dd>
}} {{#if: {{{damage4|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}}
<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|}}} |
<dt> Details: </dt><!-- If you add any further detail fields below, make sure to extend the list above as well. -->
{{#if: {{{attack roll|}}} |
<dd> {{Attack Roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}</dd>
}}{{#if: {{{range m|}}} {{{range ft|}}}
| {{#if: {{{range m|}}} |  
    {{#if: {{{range ft|}}} | <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
     |  <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
    }}
  |  <dd> {{Range | {{{range|}}} | m = {{#expr:{{{range ft}}} / 3.280839895 round 0}} | ft = {{{range ft}}}}} </dd>
  }}
| {{#if: {{{range|}}}
  | <dd> {{Range | {{{range}}} }} </dd>
  }}
}}{{#if: {{{aoe|}}} |
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} </dd>
}}{{#if: {{{area|}}} |
<dd> {{SmallIcon|Aoe Icon.png}} Creates Area: {{{area}}} </dd>
}}{{#if: {{{ritual|}}} |
<dd> {{Ritual Spell}} </dd>
}}{{#if: {{{concentration|}}} |
<dd> {{Concentration}} </dd>
}}{{#if: {{{recharge|}}} |
<dd> {{Recharge|{{{recharge}}}}} </dd> |
}}{{#if: {{{duration|}}} |
<dd>{{#ifeq:{{lc:{{{duration|}}}}} | LR |{{Duration|Until Long Rest}}
|{{#ifeq: {{{duration|}}} | Perm |{{Duration|Permanent}}
|{{Duration|{{{duration}}}}}
}}}}</dd>
}}{{#if: {{{save|}}} |
<dd> {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}</dd>
}}
}}
{{trim|<!--DONT DO HACKS AT HOME KIDS-->
}}<!-- end details -->
{{#lvardef:action|0}}
</dl>}}<!-- end properties section -->
{{#lvardef:bonus|0}}
{{#if: {{{additional|}}} |
{{#lvardef:reaction|0}}
{{{additional}}}| {{blank}}
{{#lvardef:movement|0}}
}}  
{{#lvardef:ar|0}}
{{#if: {{{higher levels|}}} | == At Higher Levels ==}}
{{#lvardef:bi|0}}
{{trim|{{#if: {{{higher levels|}}} | {{{higher levels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{#lvardef:cd|0}}
{{clear}}</div>
{{#lvardef:co|0}}
{{#if: {{{variants|}}} |
{{#lvardef:ki|0}}
== Variants ==
{{#lvardef:lh|0}}
 
{{#lvardef:nr|0}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{#lvardef:rg|0}}
{{#invoke: ParseList | main | {{{variants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }}
{{#lvardef:sd|0}}
</div>
{{#lvardef:wp|0}}
 
{{#lvardef:ws|0}}
{{#lvardef:hasaction|0}}
{{#lvardef:hasmovemt|0}}
{{#lvardef:hasothers|0}}
{{#rmatch: {{{cost|}}}|action|{{#lvardef:action|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Action-->
{{#rmatch: {{{cost|}}}|bonus|{{#lvardef:bonus|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus-->
{{#rmatch: {{{cost|}}}|reaction|{{#lvardef:reaction|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction-->
{{#rmatch: {{{cost|}}}|movement|{{#lvardef:movement|1}} {{#lvardef:hasmovemt|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement-->
{{#rmatch: {{{cost|}}}|arcrec|{{#lvardef:ar|{{#rmatch:{{{cost|}}}|arcrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Arcane Recovery-->
{{#rmatch: {{{cost|}}}|barins|{{#lvardef:bi|{{#rmatch:{{{cost|}}}|barins:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Bardic Inspiration-->
{{#rmatch: {{{cost|}}}|chadiv|{{#lvardef:cd|{{#rmatch:{{{cost|}}}|chadiv:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Channel Divinity-->
{{#rmatch: {{{cost|}}}|chaoat|{{#lvardef:co|{{#rmatch:{{{cost|}}}|chaoat:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Channel Oath-->
{{#rmatch: {{{cost|}}}|ki|{{#lvardef:ki|{{#rmatch:{{{cost|}}}|ki:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Ki-->
{{#rmatch: {{{cost|}}}|layonh|{{#lvardef:lh|{{#rmatch:{{{cost|}}}|layonh:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Lay On Hands-->
{{#rmatch: {{{cost|}}}|natrec|{{#lvardef:nr|{{#rmatch:{{{cost|}}}|natrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Natural Recovery-->
{{#rmatch: {{{cost|}}}|rage|{{#lvardef:rg|{{#rmatch:{{{cost|}}}|rage:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Rage-->
{{#rmatch: {{{cost|}}}|supdie|{{#lvardef:sd|{{#rmatch:{{{cost|}}}|supdie:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Superiority Die-->
{{#rmatch: {{{cost|}}}|warpri|{{#lvardef:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--War Priest-->
{{#rmatch: {{{cost|}}}|wldshp|{{#lvardef:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}} <!--Wild Shape-->
<!--if you think i know what im doing, ymmv-->
{{#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: hasothers}} | 1 | +}}}} {{#ifexpr: {{#lvar: ar}} > 0|{{R|name=ar|count={{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|name=bi|count={{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|name=cd|count={{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|name=co|count={{#lvar: co}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|name=ki|count={{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|name=lh|count={{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|name=rg|count={{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|name=sd|count={{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|name=wp|count={{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|name=ws|count={{#lvar: ws}}}}}}
}}
}}
{{trim|{{#if: {{{concentration|}}} |<br/>{{Concentration}} | {{blank}}}}}}
{{trim|{{#if: {{{recharge|}}} |<br/>{{Recharge|{{{recharge}}}}}| {{blank}}}}}}
{{trim|
{{#if: {{{duration|}}}
|<br/>{{#ifeq:{{lc:{{{duration|}}}}}| LR
|{{Duration|Until Long Rest}}
|{{#ifeq: {{{duration|}}} |Perm
|{{Duration|Permanent}}
|{{Duration|{{{duration}}}}}
}}
}}
|{{blank}}
}}
}}{{#if: {{{range|}}} |
<br> {{Range | {{{range}}} }}
}} {{#if: {{{range m|}}} {{{range ft|}}} |
<br> {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
}} {{#if: {{{aoe|}}} |
<br> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
}} {{#if: {{{area|}}} |
<br> {{SmallIcon|Aoe Icon.png}} Creates Area: {{{area}}}
}}
{{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}}
}}<br/>{{SmallIcon|Saving Throw Icons.png}} [[File:{{#lvar: saveicon}} icon.png|frameless|25px|{{#lvar: saveicon}}]][[{{#lvar: saveicon}}|{{#lvar: savetext}}]] [[Saving Throw|Save]] {{#if: {{#pos:{{{save|}}}|,}}
| (On Save: {{#explode:{{{save|}}}|,|1}})
}}| {{blank}}
}}
}}
{{trim|{{#if: {{{additional|}}} | <br> {{{additional}}}| {{blank}}}}}}
}}
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}}
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{clear}}</div>
{{#if: {{{condition|}}} |
{{#if: {{{condition|}}} |


Line 124: Line 170:
{{Condition | {{{condition}}}
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| save = {{{condition save|}}}
| dc = {{{condition dc|}}}
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|sai}}}}
</div>
</div>
{{#if: {{{condition2|}}} |


}} {{#if: {{{condition 2|}}} |
== Condition: {{{condition2}}} ==
 
== Condition: {{{condition 2}}} ==


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition 2}}}
{{Condition | {{{condition2}}}
| save = {{{condition 2 save|}}}
| save = {{{condition2 save|}}}
| duration = {{{condition 2 duration|}}}
| dc = {{{condition2 dc|}}}
| duration = {{{condition2 duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai}}}}
</div>
</div>


}}
  }}
== How to Learn ==
}}{{#if: {{{area|}}} |
 
<h2> Area: {{{area}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
</div>
}}<!-- / 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}} |}}} | {{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 }}
       }}
       }}
     }}
     }}
   }}{{#lvardef: races-learn-list |
   }}{{#lvardef: races-learn-list |
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{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 162: Line 218:
{{#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}}


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}}
}}<div class="bg3wiki-tooltip-box">
 
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
Granted by items:
</div>
{{#invoke: ParseList | main | {{{granted by items}}} | type = htmlList | useTemplate = GrantedByItems/Format }}
{{clear}}
  }}{{#if: {{{granted by spells|}}} | {{blank}}
{{#if: {{{notes|}}} | == Notes == }}
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>| {{blank}}}}}}
{{#ifeq: {{lc:{{{type|}}}}} |passive
|[[Category:Passive Features]]
|{{#ifeq: {{lc:{{{type|}}}}} |classaction|[[Category:Class Actions]][[Category:Actions]]
|{{#ifeq: {{lc:{{{type|}}}}} |classbonusaction|[[Category:Bonus Actions]]
|{{#ifeq: {{lc:{{{type|}}}}} |action|[[Category:Actions]]
|{{#ifeq: {{lc:{{{type|}}}}} |classreaction|[[Category:Class Actions]][[Category:Reactions]]
    |}}
                                |}}
|}}
|}}}}
</includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]]


=Usage=
Granted by spells:
<pre>
{{#invoke: ParseList | main | {{{granted by spells}}} | makeLinks = yes }}
{{User:MetalPlateMage/ActionTemplate
  }}{{#if: {{{used by creatures|}}} | {{blank}}
| description =
| image =
| summary =
| cost =
| concentration =
| damage =
| damage2 =
| recharge =
| duration =
| range =
| aoe =
| save =
| additional =
| higherlevels =
| X learns at level X =
| notes =
}}
</pre>


The following is a table to further explain what each parameter takes, and how to use them.
Used by creatures:
{{#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}}


{| class="wikitable" style="width: 100%;"
Other ways to learn:
|-
! Parameter Name
! Description
! Usage
|-
| {{C|description}}
| The in-game description of the action. This description is NOT for SEO 'See: summary'.
| <code>description = Lorem ipsum</code>
|-
| {{C|image}}
| The image that will be used in the page's SEO and be the page's main image.<br/>IF THIS IS LEFT EMPTY, [[File:NoImage Icon.webp|x40px]] WILL BE USED INSTEAD!
| <code>image = Wiki_Link_To_Image_Here</code>
|-
| {{C|summary}}
| The summary of the action. This will be used as the wiki's description as well as the SEO text.
| <code>summary = Lorem Ipsum</code>
|-
| {{C|damage}}
| The damage of the action.
* amount: amount in number or die like 1d8
* amounttext: if your amount is text instead of a number or die you need to do this instead
* type: damage type, i.e. Healing
|-
| {{C|damage2}}
| The secondary damage of the action. Will be output as damage + damage2. Same params as damage.
|-
| {{C|cost}}
| The resource cost of the action. Format is {Resource}:{Amount}, {"action" if action etc.}. Resource types:
* Arcane Recovery: barins
* Channel Divinity: chadiv
* Channel Oath: chaoat
* Ki: ki
* Lay On Hands: layonh
* Natural Recovery: natrec
* Rage: rage
* Superiority Die: supdie
* War Priest: warpri
* Wild Shape: wldshp
|-
| {{C|concentration}}
| If this skill is a concentration, type something here. Can be any value you want. Otherwise, leave it blank or delete the field entirely.
| <code>concentration = This action is a concentration!</code>
<code>concentration=</code>
|-
| {{C|additional}}
| Any additional information that does not fit the template goes here!
| <code>concentration = This action is a concentration!</code>
<code>concentration=</code>
|-
| {{C|X learns at level X}}
| Which class/race/feat learns this
| <code>class learns at level 3 = Monk</code>
<code>race learns at level 5 = Wood Elf</code>
|}


=Example=
{{{other ways to learn}}} }}
<pre>{{User:MetalPlateMage/ActionTemplate
}}<div class="bg3wiki-tooltip-box">
| description = abc
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
| image = Fly Icon.png
</div>{{clear}}
| summary = fly you fools
}}{{#if: {{{notes|}}} |
| cost = ki:2, action
<h2> Notes </h2>
| damage = amount: 1d4+1, type:Bludgeoning
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
| damage2 = amount: 1d6, type: Fire
{{{notes}}}
| recharge = Long Rest
</div>
| range = melee
}}{{#if: {{{bugs|}}} |
| duration = LR
<h2> Bugs </h2>
| save = DEX, abc
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
| additional = * abcd
{{{bugs}}}
{{User:Tc/FXBox
{{Main namespace only|[[Category:Bugs]]}}
| name = Fly
</div>
| icon = Fly Icon.png
}}{{#if: {{{video|}}} |
| effect = go on, fly
<h2> Visuals </h2>
| duration = 1
[[File:{{{video}}}]]
}}
}}{{#if: {{{area category|}}}{{{area turn start damage|}}}{{{area turn end damage|}}}{{{area condition|}}}{{{area condition 2|}}}{{{area condition 3|}}}{{{area condition 4|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}} }}{{#switch: {{{this is an example}}}
| higherlevels = go far
| yes =
| notes = bar
| #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:
| class learns at level 3 = Monk
_table = spells
| race learns at level 5 = Wood Elf
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
}}
| image = {{{image|}}}
</pre>
| controller_icon = {{#lvar:controllericon}}
{{User:MetalPlateMage/ActionTemplate
| icon = {{#lvar:icon}}
| description = abc
| is_spell = no
| image = Fly Icon.png
| is_weapon_action = no
| summary = fly you fools
| aoe = {{{aoe|}}}
| cost = ki:2, action
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| damage = amounttext: 1d4+1, type:Bludgeoning
| is_npc = {{#if:{{{npc only|}}}|yes}}
| damage2 = amount: 1d6, type: Fire
| can_upcast = {{#if:{{{higher levels|}}}|yes}}
| recharge = Long Rest
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| range = melee
| description = {{{description|}}}
| duration = LR
| extra_description = {{{extra description|}}}
| save = DEX, abc
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| additional = * abcd
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
{{User:Tc/FXBox
<!-- A little logic to try to make sure the list of classes only contains unique values. -->
| name = Fly
| save = {{{save|}}}
| icon = Fly Icon.png
| damage = {{{damage|}}}
| effect = go on, fly
| damage_type = {{{damage type|}}}
| duration = 1
| extra_damage = {{{extra damage|}}}
}}
| extra_damage_type = {{{extra damage type|}}}
| higherlevels = go far
| damage_save = {{{damage save|{{{condition save|}}} }}}
| notes = * bar
| condition_duration = {{{condition duration|}}}
| class learns at level 3 = Monk
| recharge = {{{recharge|}}}
| race learns at level 5 = Wood Elf
}}
{{User:MetalPlateMage/ActionTemplate
| description = Call upon your Oath to let nature heal all nearby allies. Allies immediately gain <code>Proficiency Bonus + Paladin Level + Charisma Modifier <span style="color:#33cccc">hit points</span></code>, and will regain the same amount at the start of your next turn.
| image = Healing Radiance Icon.png
| summary = '''Healing Radiance''' is a Bonus Action available to [[Paladin]]s who have taken the [[Oath of the Ancients]]. This ability allows these Paladins to channel their oath to heal allies in an area.
| cost = chaoat:1, bonus
| concentration =
| damage = amounttext:Proficiency Bonus + Paladin Level + Charisma Modifier, type:Healing
| damage2 =
| recharge =
| duration = Until Long Rest
| condition = Holy Rebuke
| condition duration = 2
| range = self
| aoe = sphere
| aoe m = 3
| aoe ft = 10
| save =
| additional = Restores an additional {{DamageText|Proficiency Bonus + Paladin Level + Charisma Modifier|Healing}} at the beginning of your next turn
| higherlevels =
| class learns at level 2 = Life Domain
| notes =
| type = classaction
}}
}}
{{ up to date | 2023-09-04 }} <!-- Date format is YEAR-MONTH-DAY, like 2023-08-07. -->{{User:MetalPlateMage/ActionTemplate
}} }}<!-- End if type is not none --></includeonly><noinclude>
| type = classreaction
{{documentation}}{{#cargo_attach:
| image = Divine Health Icon.png
_table = spells
| summary = '''Divine Health''' is a Class Feature of [[Paladin]]s that makes them immune to [[disease]].
| description = The divine magic flowing within you prevents disease from affecting you.
| cost =
| concentration =
| damage =
| damage2 =
| recharge =
| duration =
| range =
| aoe =
| aoe m =
| aoe ft =
| save =
| condition =
| additional =
| higherlevels =
| class learns at level 3 = Paladin
| notes =
}}
}}
</noinclude>
</noinclude>

Navigation menu