Template:Condition: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Manual revert
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{#if:{{{border|}}}|<div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">||}}{{#cargo_query: tables = conditions
<includeonly><onlyinclude>{{#if:{{{border|}}}|<div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">||}}{{#cargo_query: tables = conditions
| fields = _pageName=page, name, icon, effects, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, condition_name = condition, condition_save, condition_dc, condition2_name = condition2, condition2_save, condition2_dc, condition3_name = condition3, condition3_save, condition3_dc, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w,
| fields = _pageName=page, name, icon, effects, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w,
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}} (Condition)"
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}} (Condition)"
| format = template
| format = template

Latest revision as of 22:15, 13 May 2024

Template documentation

Use this to display a condition. Examples follow.

This template just runs the Cargo query. For the formatting, see: Template:Condition/Format

Base usage

Usage:

{{Condition | Bleeding }}

Result:


Bleeding Bleeding

With duration

Usage:

{{Condition | Bleeding | duration = 2 }}

Result:


Bleeding Bleeding

Duration: 2 turns


With saving throw

Usage:

{{Condition | Bleeding | save = CON }}

Result:


Bleeding Bleeding

Constitution saving throw


With duration and saving throw

Usage:

{{Condition | Bleeding | save = CON | duration = 2 | dc = 15 }}

Result:


Bleeding Bleeding

Duration: 2 turns

DC 15  Constitution saving throw


With a border

Use border = 1 to add a border.

{{Condition | Bleeding | save = CON | duration = 2 | border = 1}}

Result:


Bleeding Bleeding

Duration: 2 turns

Constitution saving throw


Inline-friendly

Usage:

{{Condition | Bleeding | inline = true }}

Result: blabla Bleeding Bleeding blabla

Alternative display name

{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }}

Result:

oh no i'm bleeding oh no i'm bleeding

Duration: 2 turns

Constitution saving throw

Also displays types

Feverish Feverish