Template:Condition/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Add altname)
(Add type and examples.)
Line 3: Line 3:
}} {{#if: {{{save|}}} |
}} {{#if: {{{save|}}} |
{{InfoBlob| {{SavingThrow|{{{save}}}}} }}
{{InfoBlob| {{SavingThrow|{{{save}}}}} }}
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }} {{#if:{{{inline|}}}||{{{effects}}} }}</includeonly><noinclude>
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }} {{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{type|}}}|{{clear}}
* {{Condition/Type|{{{type}}} }} }} }}</includeonly><noinclude>
Meant to be used with a Cargo query.  Preview:
Meant to be used with a Cargo query.  Preview:


Line 89: Line 90:
}}
}}


== Condition with a type ==
{{Condition/Format
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| effects =
* Oof owie ouch
| type = disease
}}
== Inline condition with a type ==
Should not show the type.
{{Condition/Format
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| inline = true
| type = disease
}}


== Template data ==
== Template data ==

Revision as of 12:52, 9 October 2023

Meant to be used with a Cargo query. Preview:

Single effect description

Bleeding Bleeding
Duration: 3 turns Constitution saving throw
Inflicts damage every turn.

Duration only

Bleeding Bleeding
Duration: 3 turns
Inflicts damage every turn.

Save only

Bleeding Bleeding
Constitution saving throw
Inflicts damage every turn.

Effect listing

Bleeding Bleeding
Duration: 3 turns Constitution saving throw
  • Inflicts damage every turn.
  • Cured by healing.

Duration only

Bleeding Bleeding
Duration: 3 turns
  • Inflicts damage every turn.
  • Cured by healing.

Save only

Bleeding Bleeding
Constitution saving throw
  • Inflicts damage every turn.
  • Cured by healing.

Icon and name only

Bleeding Bleeding

Alternative display name

Bleeding Oh no I'm bleeding

  • Inflicts damage every turn.
  • Cured by healing.

Condition with a type

Bleeding Bleeding

Inline condition with a type

Should not show the type. Bleeding Bleeding

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
namename

The name of the condition.

Stringoptional
iconicon

The icon of the condition

Fileoptional
inlineinline

Whether the condition should be formatted inline

Booleanoptional
durationduration

no description

Unknownoptional
savesave

no description

Unknownoptional
effectseffects

no description

Unknownoptional
altnamealtname

An alternative display name for the condition link.

Stringoptional