Template:Action table
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
- {{Action table/row}}, the template responsible for formatting each row
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 actiontype
- The classification (e.g. level 2 spell, weapon action) of the actionlevel
- Liketype
, except in a more compact form that assumes the actions are spells with levelscost
- The resource cost in expressed in compact iconsrecharge
- The recharge or cooldown time of the actioncost-recharge
- The cost and/or recharge time of the action in a merged columnrange
- The range of the actionaoe
- The area of effect of the actionrange-aoe
- The range and/or area of effect of the action in a merged columnroll
- The attack roll and/or saving throw of the actiondamage
- The damage dealt by the actionconditions
- The conditions applied or inflicted by the actionsummons
- The creatures summoned by the actioneffects
- 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
Template data
Display a table of actions queried from the corresponding Cargo table
Parameter | Description | Type | Status | |
---|---|---|---|---|
Columns | columns | 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.
| String | optional |
Where | where | 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.
| String | required |
Title | title | A title to display on the table | Unknown | suggested |