Template:Condition/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (Added w as size parameter)
(added non-breaking space between icon and)
Line 2: Line 2:
class="bg3wiki-condition"
class="bg3wiki-condition"
{{#if:{{{inline|}}}|style="white-space:nowrap"}}
{{#if:{{{inline|}}}|style="white-space:nowrap"}}
>[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]]{{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}}{{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} |
>[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]]&nbsp;{{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}}{{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} |
{{InfoBlob| {{Duration|{{{duration}}}}} }}
{{InfoBlob| {{Duration|{{{duration}}}}} }}
}}{{#if: {{{save|}}} |
}}{{#if: {{{save|}}} |

Revision as of 16:10, 12 February 2024

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 BleedingInflicts 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
  • 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

  • Oof owie ouch

Condition Type Icon.pngDiseased

Condition with multiple types

Bleeding Bleeding

  • Oof owie ouch

Condition Type Icon.pngDiseasedProne

Inline condition with a type

Should not show the type. Bleeding Bleeding. Blablabla.

Should not wrap.

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