User:Crashaholic/ActionTemplate: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(make the divs look look like spellpage and weaponaction - still needs some tweaks)
(port over X learns at from SpellPage)
Line 108: Line 108:
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
</div>
</div>
{{#if: {{{learns|}}} | == How to Learn ==}}
== How to Learn ==
{{trim|{{#if: {{{learns|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">{{{learns|}}}</div>}}}} <!-- TODO: make this a bit smarter -->
{{#lvardef: how-to-learn-content |
  {{#lvardef: classes-learn-list |
    {{#loop: level | 1 | 20 |
      {{#if: {{{ class learns at level {{#var:level}} |}}} | {{blank}}
* Class Level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
      }}
    }}
  }}{{#lvardef: races-learn-list |
    {{#loop: level | 1 | 20 |
      {{#if: {{{ race learns at level {{#var:level}} |}}} | {{blank}}
* Character Level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }}
      }}
    }}
  }}{{#if: {{#lvar:classes-learn-list}} |
Classes:
{{#lvar:classes-learn-list}}
  }}{{#if: {{#lvar:races-learn-list}} | {{blank}}
 
Races:
{{#lvar:races-learn-list}}
 
(Character Level is the sum of all Class Levels for a multi-classed character.)
  }}{{#if: {{{granted by feats|}}} | {{blank}}
 
Feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
  }}
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div>
{{clear}}
{{clear}}
{{#if: {{{notes|}}} | == Notes == }}
{{#if: {{{notes|}}} | == Notes == }}
Line 175: Line 203:
| <code>concentration = This action is a concentration!</code>
| <code>concentration = This action is a concentration!</code>
<code>concentration=</code>
<code>concentration=</code>
|-
| {{C|learns}}
| Which class/race/feat learns this
| <code>class learns at level 3 = Monk</code>
<code>race learns at level 5 = Wood Elf</code>
|}
|}


Line 198: Line 231:
| higherlevels = go far
| higherlevels = go far
| notes = bar
| notes = bar
| learns = {{class|Monk}} 3
| class learns at level 3 = Monk
}}
}}
</pre>
</pre>
Line 221: Line 254:
| higherlevels = go far
| higherlevels = go far
| notes = bar
| notes = bar
| learns = {{class|Monk}} 3
| class learns at level 3 = Monk
| race learns at level 5 = Wood Elf
}}
}}
</noinclude>
</noinclude>

Revision as of 22:26, 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=

learns Which class/race/feat learns this class learns at level 3 = Monk

race learns at level 5 = Wood Elf

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
| class learns at level 3 = Monk
}}
Fly Icon.png

fly you fools

Description

abc

Properties

D4 Physical.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

Classes:

  • Class Level 3: Monk Monk

Races:

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

Notes

bar