User:Crashaholic/ActionTemplate: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
m (minor)
(made two params smarter...-ish)
Line 23: Line 23:
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{duration|}}} | * {{Duration|{{{duration}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|
{{#if: {{{duration|}}}
|{{#ifeq:{{{duration|}}}| LR
|* {{Duration|Until Long Rest}}
|{{#ifeq: {{{duration|}}} |Perm
|* {{Duration|Permanent}}
|* {{Duration|{{{duration}}}}}
}}
}}
|{{blank}}
}}
}}
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{save|}}} | * {{SmallIcon|Save Throw Icons.png}}{{{save}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|
{{#if: {{{save|}}}
| * {{SmallIcon|Saving Throw Icons.png}} {{#switch: {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}
| strength | Strength | str | STR = [[Saving Throw|STR Save]]
| dexterity | Dexterity | dex | DEX = [[Saving Throw|DEX Save]]
| constitution | Constitution | con | CON = [[Saving Throw|CON Save]]
| intelligence | Intelligence | int | INT = [[Saving Throw|INT Save]]
| wisdom | Wisdom | wis | WIS = [[Saving Throw|WIS Save]]
| charisma | Charisma | cha | CHA = [[Saving Throw|CHA Save]]
| #default = *[[Saving Throw]]
}}{{#if: {{#pos:{{{save|}}}|,}}
| (On Save: {{#explode:{{{save|}}}|,|1}})
}}| {{blank}}
}}
}}
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}}  
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}}  


Line 67: Line 92:
{| class="wikitable" style="width: 100%;"
{| class="wikitable" style="width: 100%;"
|-
|-
| Parameter Name  
! Parameter Name  
| Description  
! Description  
| Usage  
! Usage  
|-
|-
| {{C|description}}
| {{C|description}}
Line 90: Line 115:
* If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code>
* If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code>
** Result: <code>{{action}}</code>
** Result: <code>{{action}}</code>
* If a skill takes just a class resource like 2{{User:Crashaholic/KiShort}}s: <code><nowiki>| cost = ,2{{User:Crashaholic/KiShort}}s</nowiki></code>
* If a skill takes just a class resource like 2{{User:Tc/Ki}}s: <code><nowiki>| cost = ,2{{User:Tc/Ki}}s</nowiki></code>
** Result: <code>2{{User:Crashaholic/KiShort}}s</code>
** Result: <code>2{{User:Tc/Ki}}s</code>
| <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/>
| <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/>
<code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/>
<code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/>
Line 103: Line 128:


=Example=
=Example=
<pre>{{User:Crashaholic/ActionTemplate
| description = abc
| image = Fly Icon.png
| summary = fly you fools
| cost = action, 2{{User:Tc/Ki}}s
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| recharge = {{Recharge|Long Rest}}
| duration = LR
| save = DEX
| additional = * abcd
| higherlevels = go far
| notes = bar
| learns = {{class|Monk}} 3
}}
</pre>
{{User:Crashaholic/ActionTemplate
{{User:Crashaholic/ActionTemplate
| description = abc
| description = abc
Line 110: Line 150:
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| recharge = {{Recharge|Long Rest}}
| recharge = {{Recharge|Long Rest}}
| duration = Until Long Rest
| duration = LR
| save = DEX
| save = DEX
| additional = * abcd
| additional = * abcd

Revision as of 16:07, 14 August 2023

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

If this is too egregious, do reach out to me on Discord and tell me if there are alternatives instead of using transclusion (which I'm trying to use for custom templates).

Usage

{{User:Crashaholic/ActionTemplate
| description =
| image =
| summary =
| cost =
| concentration =
| damage =
| recharge =
| duration =
| range =
| aoe =
| save =
| additional = 
| higherlevels =
| learns =
| notes =
}}

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

Parameter Name Description Usage
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, Alert Icon.png WILL BE USED INSTEAD!
image = Wiki_Link_To_Image_Here
summary The summary of the action. This will be used as the wiki's description as well as the SEO text. summary = Lorem Ipsum
cost The resource cost of the action. You can use the same parameters as with {{action}}, but you can add an additional resource to it as well.

For example:

  • If a skill takes a {{action|bonus}} and a Superiority Die (D8): | cost = bonus,[[File:Superiority_Die_d8_Icon.png|25px]]
  • If a skill takes an {{action}}: | cost = action
  • If a skill takes just a class resource like 2Ki Points: | cost = ,2{{User:Tc/Ki}}s
    • Result: 2Ki Points
cost = ({{action}} parameters), (text)

cost = ({{action}} parameters)
cost = , (text)

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=

Example

{{User:Crashaholic/ActionTemplate
| description = abc
| image = Fly Icon.png
| summary = fly you fools
| cost = action, 2{{User:Tc/Ki}}s
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| recharge = {{Recharge|Long Rest}}
| duration = LR
| save = DEX
| additional = * abcd
| higherlevels = go far
| notes = bar
| learns = {{class|Monk}} 3
}}
Fly Icon.png

fly you fools

Description

abc

Properties

Action + 2Ki Points

  • abcd

At Higher Levels

go far

How to Learn

Monk 3

Notes

bar