Template:Condition/Format

From bg3.wiki
< Template:Condition
Revision as of 23:24, 21 July 2024 by NtCarlson (talk | contribs) (Updated documentation and added category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation

Template responsible for formatting {{Condition}}. This is intended for internal use by the parent template only.

Examples

Markup
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| effects = Bleeds you out.
}}
Renders as
Bleeding Bleeding

Bleeds you out.

Markup
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| save = CON
| dc = 13
| effects = Inflicts damage every turn.
| duration = Saving Throw
}}
Renders as
Bleeding Bleeding

Duration: Until successful Saving Throw

DC 13  Constitution saving throw

Inflicts damage every turn.

Markup
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| effects =
* Inflicts damage every turn.
* Cured by healing.
| altname = Oh no I'm bleeding
| types = Diseased
| duration = 
}}
Renders as
Oh no I'm bleeding Oh no I'm bleeding
  • Inflicts damage every turn.
  • Cured by healing.
Markup
Inline example: {{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| inline = true
| types = diseased
}}. Blah blah blah.
Renders as

Inline example: Bleeding Bleeding. Blah blah blah.

Template data

Display a block of information about a condition.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
namepage

Condition page to link to.

Page namerequired
namename

Name of the condition.

Stringrequired
iconicon

Icon file of the condition.

Filerequired
altnamealtname

An alternative display name for the condition link.

Stringoptional
durationduration

Duration of the condition. This is generally a number of turns, but refer to Template:Duration for special values.

Suggested values
Long rest Permanent Saving Throw Whilst on surface
Example
10
Stringoptional
savesave

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)

Suggested values
STR DEX CON INT WIS CHA
Example
Strength
Stringoptional
dcdc

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.

Suggested values
caster weapon action
Example
15
Stringoptional
typestypes

Any condition types the condition belongs to.

Example
Diseased
Stringoptional
radius mradius m

Radius of the condition in metres. This is rarely used.

Numberoptional
inlineinline

Whether the condition should be formatted inline. See also Template:Condition inline.

Booleandeprecated