Template:Condition: Difference between revisions
(Updated documentation and added category) |
m (Added border param to templatedata) |
||
Line 80: | Line 80: | ||
"type": "number" | "type": "number" | ||
}, | }, | ||
"border": { | |||
"description": "Display a border around the condition box.", | |||
"type": "boolean" | |||
}, | |||
"inline": { | "inline": { | ||
"description": "Whether the condition should be formatted inline. See also Template:Condition inline.", | "description": "Whether the condition should be formatted inline. See also Template:Condition inline.", |
Latest revision as of 00:26, 22 July 2024
Use this to display detailed information about a condition.
This template just runs the Cargo query. For the formatting, see: Template:Condition/Format.
Examples
{{Condition | Bleeding }}Renders as
- Creature takes 2
Slashing damage at the start of each turn and has
Disadvantage on Constitution
Saving throws.
- Removed by healing.
{{Condition | Bleeding | altname=oh no i'm bleeding | duration = 2 | save = CON }}Renders as
Duration: 2 turns
- Creature takes 2
Slashing damage at the start of each turn and has
Disadvantage on Constitution
Saving throws.
- Removed by healing.
{{Condition | Bleeding | save = Constitution | duration = 2 | dc = weapon action | border = 1 }}Renders as
Duration: 2 turns
Weapon action DC Constitution saving throw
- Creature takes 2
Slashing damage at the start of each turn and has
Disadvantage on Constitution
Saving throws.
- Removed by healing.
{{Condition | Feverish | radius m = 3 | duration = Long rest}}Renders as
Duration: Until Long rest
Radius: 3 m / 10 ft
- Increasingly feverish.
Disadvantage on
Ability checks and
Saving throws using Strength.
- When the duration ends, make a DC 15
Constitution saving throw. Failing will inflict the condition .
Inline example
This template can also be used inline, but refer to {{Condition inline}} for a template designed for that.
Markup | Renders as |
---|---|
{{Condition | Bleeding | inline = true }} | |
{{Cond|Bleeding}} |
See also
- {{Condition/Format}} - An internal template actually responsible for formatting this template.
- {{Condition inline}} - Similar template that just displays the icon of the condition. For use in inline text.
- {{Condition page}} - Page generating template responsible for adding a condition into the condition Cargo table so that it can be referenced by this template.
Template parameters
Display a block of information about a condition.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | Name of the condition. This should match an entry in the conditions Cargo table. | String | required |
altname | altname | An alternative display name for the condition link. | String | optional |
duration | duration | Duration of the condition. This is generally a number of turns, but refer to Template:Duration for special values.
| String | optional |
save | save | Ability used for the saving throw to resist this condition. Accepts abilities in either the shorthand (e.g. STR) or long form (e.g. Strength)
| String | optional |
dc | dc | The difficulty class of the saving throw to resist this condition. This is either a fixed number or a special value like "caster". Refer to Template:Saving Throw for these special values.
| String | optional |
radius m | radius m | Radius of the condition in metres. This is rarely used. | Number | optional |
border | border | Display a border around the condition box. | Boolean | optional |
inline | inline | Whether the condition should be formatted inline. See also Template:Condition inline. | Boolean | deprecated |