Template:Condition/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Rearranged for clarity and make use of IconLink template)
Line 1: Line 1:
<includeonly>{{#lvardef:text|[[{{{page}}}|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}<span
<includeonly>{{#if:{{{inline|}}}|<span class="bg3wiki-condition" style="white-space: nowrap">{{IconLink|{{{icon}}}|{{{page}}}|{{{name|{{{page}}}}}}|w={{{w|25}}}}}</span>|
class="bg3wiki-condition"
<div class="bg3wiki-condition"><strong>{{IconLink|{{{icon}}}|{{{page}}}|{{{name|{{{page}}}}}}|w={{{w|30}}}}}</strong>
{{#if:{{{inline|}}}|style="white-space: nowrap"}}
{{#if: {{{duration|}}} |
>[[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>
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p>
}}{{#if: {{{save|}}} |
}}{{#if: {{{save|}}} |
<p>{{InfoBlob | {{SavingThrow | {{{save}}} | dc = {{{dc|}}} }} }}</p>
<p>{{InfoBlob | {{SavingThrow | {{{save}}} | dc = {{{dc|}}} }} }}</p>
}}{{#if: {{{inline|}}} | |
}}
<div>
<div>
{{{effects}}}
{{{effects}}}
Line 16: Line 12:
<div>{{Condition Type | {{{types|}}} }}</div>
<div>{{Condition Type | {{{types|}}} }}</div>
}}
}}
}}</span></includeonly><noinclude>
}}</div></includeonly><noinclude>
Meant to be used with a Cargo query.  Preview:
Meant to be used with a Cargo query.  Preview:



Revision as of 17:07, 9 May 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 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