Template:Condition/Format: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine:types_conditionformat|{{{types|}}}|,}}{{#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
{{InfoBlob| {{Duration|{{{duration}}}}} }}
class="bg3wiki-condition"
{{#if:{{{inline|}}}|style="white-space: nowrap"}}
>[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]]&nbsp;{{#if: {{{inline|}}}
| {{#lvar:text}}
| <strong>{{#lvar:text}}</strong>
}}{{#if: {{{duration|}}} |
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p>
}}{{#if: {{{save|}}} |
}}{{#if: {{{save|}}} |
{{InfoBlob| {{SavingThrow|{{{save}}}|dc={{{dc|}}}}} }}
<p>{{InfoBlob | {{SavingThrow | {{{save}}} | dc = {{{dc|}}} }} }}</p>
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }}{{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{types|}}}|{{clear}}
}}{{#if: {{{inline|}}} | |
{{#arrayprint:types_conditionformat|<br>|@|{{Condition Type|@}} }}
<div>
}} }}</includeonly><noinclude>
{{{effects}}}
</div>
{{#if: {{{types|}}} |
<div>{{Condition Type | {{{types|}}} }}</div>
}}
}}</span></includeonly><noinclude>
Meant to be used with a Cargo query.  Preview:
Meant to be used with a Cargo query.  Preview:


Line 77: Line 88:
}}
}}


== Icon and name only ==
== Name and icon only, inline ==


{{Condition/Format
{{Condition/Format
Line 87: Line 98:
* Cured by healing.
* Cured by healing.
| inline = true
| inline = true
}}
== Name, icon, effects only ==
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| effects = Bleeds you out.
}}
== Name, icon, effects, types ==
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| effects = Bleeds you out.
| types = Diseased
}}
}}


== Alternative display name ==
== Alternative display name ==
{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| page = Bleeding (Condition)
Line 101: Line 132:


== Condition with a type ==
== Condition with a type ==
{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| page = Bleeding (Condition)
Line 111: Line 143:


== Condition with multiple types ==
== Condition with multiple types ==
{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| page = Bleeding (Condition)
Line 121: Line 154:


== Inline condition with a type ==
== Inline condition with a type ==
Should not show the type.
Should not show the type.
{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| page = Bleeding (Condition)
Line 129: Line 164:
| 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 12:04, 15 April 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 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

DC 16  Constitution saving throw

  • Inflicts damage every turn.
  • Cured by healing.

Name and icon only, inline

Bleeding Bleeding

Name, icon, effects only

Bleeding Bleeding

Bleeds you out.

Name, icon, effects, types

Bleeding Bleeding

Bleeds you out.

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 with multiple types

Bleeding Bleeding
  • Oof owie ouch

Inline condition with a type

Should not show the type.

Bleeding Bleeding. Blablabla.

Should not wrap.

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