Template:Condition/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(sorry sky! revert this if it breaks stuff)
Tag: Reverted
(nahhh)
Tag: Undo
Line 1: Line 1:
<includeonly>{{#arraydefine:types|{{{types|}}}|,}}{{#lvardef:text|[[{{{name}}} (Condition)|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|25px|30px}}|link=|{{{name}}}]] {{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}} {{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} |
<includeonly>{{#arraydefine:types|{{{types|}}}|,}}{{#lvardef:text|[[{{{name}}} (Condition)|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|25px|30px}}|link=|{{{name}}}]] {{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}} {{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} |
{{InfoBlob| {{Duration|{{{duration}}}}} {{#if: {{{limit|}}} | ''(max turn limit: {{{limit|}}})'' | }} }}
{{InfoBlob| {{Duration|{{{duration}}}}} }}
}} {{#if: {{{save|}}} |
}} {{#if: {{{save|}}} |
{{InfoBlob| {{SavingThrow|{{{save}}}}} }}
{{InfoBlob| {{SavingThrow|{{{save}}}}} }}
Line 24: Line 24:
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
| duration = 3
| duration = 3
| effects = Inflicts damage every turn.
}}
== With maximum duration limit ==
{{Condition/Format
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| duration = 3
| limit = 6
| effects = Inflicts damage every turn.
| effects = Inflicts damage every turn.
}}
}}
Line 145: Line 136:
},
},
"duration": {},
"duration": {},
"limit": {},
"save": {},
"save": {},
"effects": {},
"effects": {},

Revision as of 23:36, 16 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

  • Oof owie ouch

Condition Type Icon.pngDiseased

Condition with multiple types

Bleeding Bleeding

  • Oof owie ouch

Condition Type Icon.pngDiseased
Condition Type Icon.pngProne

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