User:Crashaholic/ActionTemplate: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (swap to lvar and lvardef usage)
(make the divs look look like spellpage and weaponaction - still needs some tweaks)
Line 4: Line 4:
}}
}}
__NOTOC__
__NOTOC__
[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
{{{summary}}}
{{{summary}}}
Line 107: Line 107:
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}}
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}}
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
</div>
{{#if: {{{learns|}}} | == How to Learn ==}}
{{#if: {{{learns|}}} | == How to Learn ==}}
{{trim|{{#if: {{{learns|}}} | {{{learns|}}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{learns|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">{{{learns|}}}</div>}}}} <!-- TODO: make this a bit smarter -->
{{clear}}
{{clear}}
{{#if: {{{notes|}}} | == Notes == }}
{{#if: {{{notes|}}} | == Notes == }}
{{trim|{{#if: {{{notes|}}} | {{{notes}}}| {{blank}}}}}}</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>]]
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">{{{notes}}}</div>| {{blank}}}}}}</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=
=Usage=

Revision as of 22:12, 4 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:Crashaholic/ActionTemplate
| description =
| image =
| summary =
| cost =
| concentration =
| damage =
| damage2 =
| 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, NoImage Icon.webp 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
damage The damage of the action. REWRITE PENDING
damage2 The damage of the action. REWRITE PENDING
cost The resource cost of the action. REWRITE PENDING
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=

additional Any additional information that does not fit the template goes here! concentration = This action is a concentration!

concentration=

Example

{{User:Crashaholic/ActionTemplate
| description = abc
| image = Fly Icon.png
| summary = fly you fools
| cost = ki:2, action
| damage = amount: 1d4+1, type:Bludgeoning
| damage2 = amount: 1d6, type: Fire
| recharge = Long Rest
| distance = melee
| duration = LR
| save = DEX, abc
| additional = * abcd
{{User:Tc/FXBox
| name = Fly
| icon = Fly Icon.png
| effect = go on, fly
| duration = 1
}}
| higherlevels = go far
| notes = bar
| learns = {{class|Monk}} 3
}}
Fly Icon.png

fly you fools

Description

abc

Properties

D4 Bludgeoning.png 1d4 + 1 (2~5) Damage TypesBludgeoning
+
D6 Fire.png 1d6 (1~6) Damage TypesFire

Action + 2UNDEFINED
Recharge: Long rest
Duration: LR turns
1.5 m / 5 ft
DexterityDEX Save (On Save: abc)

  • abcd

At Higher Levels

go far

How to Learn

Monk Monk 3

Notes

bar