Template:Action page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
mNo edit summary
(spell level support + change type to this is an example)
Line 47: Line 47:
{{#ifeq: {{#lvar: hasaction}} | 1 |
{{#ifeq: {{#lvar: hasaction}} | 1 |
<dt> Cost:
<dt> Cost:
<dd> {{#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|ar|{{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|bi|{{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|cd|{{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|co|{{#lvar: co}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|ki|{{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|lh|{{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|rg|{{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|sd|{{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|wp|{{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|ws|{{#lvar: ws}}}}}}
<dd> {{#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 | +}}}} {{#if: {{{level|}}} |
}}
{{#switch: {{{level}}}
        | cantrip =
        | #default = {{SmallIcon|Spell Slot Icon.png}} Level {{{level}}} Spell Slot
}} | {{#ifexpr: {{#lvar: ar}} > 0|{{R|ar|{{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|bi|{{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|cd|{{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|co|{{#lvar: co}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|ki|{{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|lh|{{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|rg|{{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|sd|{{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|wp|{{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|ws|{{#lvar: ws}}}}}}
}}<!-- End if/if not level spell -->
}} <!-- End if/if not hasaction -->
}}{{#if: {{{damage|}}} {{{damage2|}}} |
}}{{#if: {{{damage|}}} {{{damage2|}}} |
<dt> Damage:
<dt> Damage:
Line 193: Line 198:
{{{notes}}}
{{{notes}}}
</div>| {{blank}}}}}}
</div>| {{blank}}}}}}
<!-- CATEGORIES -->{{#ifeq: {{lc:{{{type|}}}}} |none ||
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
{{#ifeq: {{#lvar: hasclasslearn}} | 1  
{{#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: action}} | 1 |<!--Spells aren't included in Actions-->
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Bonus Actions]]
| [[Category:Passive Features]]
}}
|}}
|}}
|{{#ifeq: {{#lvar: hasclasslearn}} | 1  
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class Actions]][[Category:Reactions]]
|{{#ifeq: {{#lvar: reaction}} | 1 |[[Category:Class Actions]][[Category:Reactions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]]
Line 213: Line 226:
  }} <!-- End if race can learn -->
  }} <!-- End if race can learn -->
}}<!-- End if class can learn -->
}}<!-- End if class can learn -->
}}<!-- End if is a spell -->
}}<!-- End if type is not none -->
}}<!-- End if type is not none -->
</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>]]
</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>]]
Line 219: Line 233:
<pre>
<pre>
{{User:MetalPlateMage/ActionTemplate
{{User:MetalPlateMage/ActionTemplate
| type =  
| this is an example =  
| summary =
| summary =
| description =
| description =
Line 256: Line 270:
! Usage  
! Usage  
|-
|-
| {{C|type}}
| {{C|this is an example}}
| Type of page. This is used for categorization. Currently categorization is auto-detected so there is no need to worry about this parameter unless you don't want categories. Current types:
| If this is an example and you don't want the page to be categorized and related.
* none: No categories or specific magic will happen
| <code>this is an example =</code>
| <code>type = none</code>
<code>this is an example = OF COURSE!</code>
|-
|-
| {{C|summary}}
| {{C|summary}}
Line 349: Line 363:
=Example=
=Example=
<pre>{{User:MetalPlateMage/ActionTemplate
<pre>{{User:MetalPlateMage/ActionTemplate
| type = none
| this is an example = yes
| description = abc
| description = abc
| image = Fly Icon.png
| image = Fly Icon.png
Line 369: Line 383:
}}</pre>
}}</pre>
{{User:MetalPlateMage/ActionTemplate
{{User:MetalPlateMage/ActionTemplate
| type = none
| this is an example = yes
| description = abc
| description = abc
| image = Fly Icon.png
| image = Fly Icon.png

Revision as of 17:44, 6 September 2023

This is a page to transclude to generate action pages. It is generally for pages that do not fit the {{SpellPage}} Template

Usage

{{User:MetalPlateMage/ActionTemplate
| this is an example = 
| summary =
| description =
| image =
| cost =
| concentration =
| damage =
| damage2 =
| recharge =
| duration =
| save =
| attack roll = 
| ritual =
| range =
| range m = 
| range ft = 
| aoe =
| aoe m =
| aoe ft =
| condition =
| condition duration = 
| condition save = 
| additional = 
| higherlevels =
| X learns at level X =
| notes =
}}

The following is a table to further explain what each parameter takes, and how to use them.

Parameter Name Description Usage
this is an example If this is an example and you don't want the page to be categorized and related. this is an example =

this is an example = OF COURSE!

summary The summary of the action. This will be used as the wiki's description as well as the SEO text. summary = Lorem Ipsum
description The in-game description of the action. This description is NOT for SEO 'See: summary'. description = Lorem ipsum
image The image that will be used in the page's SEO and be the page's main image.
IF THIS IS LEFT EMPTY, NoImage Icon.webp WILL BE USED INSTEAD!
image = Wiki_Link_To_Image_Here
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
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. concentration = This action is a concentration!

concentration=

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
damage2 The secondary damage of the action. Will be output as damage + damage2. Same params as damage.
recharge If this skill recharges at a certain point recharge = Until Long Rest
duration Duration in turns
save Stat used for saving
attack roll If it uses the attack roll (can put yes or whatnot if so)
ritual If it is a ritual
range
range m
range ft
range of the skill. Either m+ft or range are required, but not both at the same time. See SpellPage.
aoe
aoe m
aoe ft
AOE. All are required. aoe is the shape, m meters, ft feet.
condition
condition duration
condition save
includes CONDITION (Condition). Duration is how many turns it lasts. Save is the stat for it.
additional Any additional properties that are not covered by template go here additional = { { Attack Roll } }

additional=

higherlevels If the skills changes at higher levels, put info about that here
X learns at level X Which class/race/feat learns this class learns at level 3 = Monk

race learns at level 5 = Wood Elf

notes Any notes about the skill. This goes in its own bottom section.

Example

{{User:MetalPlateMage/ActionTemplate
| this is an example = yes
| description = abc
| image = Fly Icon.png
| summary = fly you fools
| cost = ki:2, action
| damage = amounttext: 1d4+1, type:Bludgeoning
| damage2 = amount: 1d6, type: Fire
| recharge = Long Rest
| range = melee
| duration = LR
| save = DEX, abc
| additional = * abcd
| condition = Flight
| condition duration = 1
| higherlevels = go far
| notes = * bar
| class learns at level 3 = Monk
| race learns at level 5 = Wood Elf
}}
Fly Icon.png

fly you fools

Description

abc

Properties

Cost:
Action + 2Ki Points
Damage:
1d4+1 Damage TypesBludgeoning +
D6 Fire.png 1d6 (1~6) Damage TypesFire damage
Details:
 Melee: 1.5 m / 5  ft
Recharge: Long rest
Duration: LR turns
DexterityDEX Save (On Save: abc)
  • abcd

At Higher Levels

go far

Condition: Flight

Flight Flight

Duration: 1 turn

  • Fly up to target position, up to 18 m / 60 ft each turn using your Movement Speed.

How to Learn

Classes:

Races:

(Character Level is the sum of all Class Levels for a multi-classed character.)

Notes

  • bar