Template:Action table

From bg3.wiki
Jump to navigation Jump to search

Query and display spells and other actions from the action Cargo table into a nicely formatted table suitable for inclusion on wiki pages.

See also

Usage

The actions displayed in the table are determined by the where clause which follows normal SQL syntax. Refer to the Mediawiki documentation for more details.

The displayed columns can be optionally defined by the column parameter which is a comma separated list of column names. The following columns are available:

  • name - The name and icon of the action
  • type - The classification (e.g. level 2 spell, weapon action) of the action
  • level - Like type, except in a more compact form that assumes the actions are spells with levels
  • cost - The resource cost in expressed in compact icons
  • recharge - The recharge or cooldown time of the action
  • cost-recharge - The cost and/or recharge time of the action in a merged column
  • range - The range of the action
  • aoe - The area of effect of the action
  • range-aoe - The range and/or area of effect of the action in a merged column
  • roll - The attack roll and/or saving throw of the action
  • damage - The damage dealt by the action
  • conditions - The conditions applied or inflicted by the action
  • summons - The creatures summoned by the action
  • effects - A merged column that combines damage, conditions, and summons. Best for general purpose tables that hold a wide variety of actions.

By default, the displayed columns are name, type, cost-recharge, range-aoe, roll, and effects.

A title can be optionally set with the title parameter.

The maximum number of rows defaults to 50, but this can be increased with limit parameter. Be wary of template inclusion limits with giant tables.

Examples

#switch:list

Template data

Display a table of actions queried from the corresponding Cargo table

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Columnscolumns

The columns to be displayed in this table. This is a comma separated list of column names. If omitted, the table will use the default column layout.

Suggested values
name, type, level, cost, recharge, cost-recharge, range, aoe, range-aoe, roll, damage, conditions, summons, effects
Default
name, type, cost-recharge, range-aoe, roll, effect
Auto value
name, type, cost-recharge, range-aoe, roll, effect
Stringoptional
Wherewhere

The SQL WHERE clause for the table query. This follows ordinary SQL syntax with operators like AND, OR, NOT, HOLDS, or LIKE. Refer to the "actions" cargo table for the fields available.

Example
name LIKE "Arcane Shot%"
Stringrequired
Titletitle

A title to display on the table

Unknownsuggested