Template:Condition/Format: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
m (Undo on the Nbts as it didn't work)
Tag: Undo
(nowrap if inline)
Line 1: Line 1:
<includeonly>{{#lvardef:text|[[{{{page}}}|{{#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>{{#lvardef:text|[[{{{page}}}|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}<span
class="bg3wiki-condition"
{{#if:{{{inline|}}}|style="white-space:nowrap"}}
>[[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}}}}} }}
{{InfoBlob| {{Duration|{{{duration}}}}} }}
}}{{#if: {{{save|}}} |
}}{{#if: {{{save|}}} |
Line 5: Line 8:
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }}{{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{types|}}}|{{clear}}
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }}{{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{types|}}}|{{clear}}
{{Condition Type|{{{types|}}} }}
{{Condition Type|{{{types|}}} }}
  }} }}</includeonly><noinclude>
  }} }}</span></includeonly><noinclude>
Meant to be used with a Cargo query.  Preview:
Meant to be used with a Cargo query.  Preview:


Line 129: Line 132:
| types = diseased
| types = diseased
}}. Blablabla.
}}. Blablabla.
Should not wrap.
<div style="width:10px">{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| inline = true
| types = diseased
}}</div>


[[Category:Condition templates]]
[[Category:Condition templates]]

Revision as of 16:36, 4 December 2023

Meant to be used with a Cargo query. Preview:

Single effect description

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

Duration only

BleedingBleeding
Duration: 3 turns
Inflicts damage every turn.

Save only

BleedingBleedingInflicts damage every turn.

Effect listing

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

Duration only

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

Save only

BleedingBleeding
  • Inflicts damage every turn.
  • Cured by healing.

Icon and name only

BleedingBleeding

Alternative display name

BleedingOh no I'm bleeding

  • Inflicts damage every turn.
  • Cured by healing.

Condition with a type

BleedingBleeding

  • Oof owie ouch

Condition Type Icon.pngDiseased

Condition with multiple types

BleedingBleeding

  • Oof owie ouch

Condition Type Icon.pngDiseasedProne

Inline condition with a type

Should not show the type. BleedingBleeding. 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