Template:Condition: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = conditions
<includeonly><div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">{{#cargo_query: tables = conditions
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
Line 5: Line 5:
| template = Condition/Format
| template = Condition/Format
| named args = yes
| named args = yes
}}</includeonly><noinclude>
}}</div></div></includeonly><noinclude>
Use this to display a condition.  Examples follow.
Use this to display a condition.  Examples follow.



Revision as of 09:38, 17 September 2023

Use this to display a condition. Examples follow.

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


Usage:

{{Condition | Bleeding }}

Result:


Bleeding [[{{{page}}}|Bleeding]]

Usage:

{{Condition | Bleeding | duration = 2 }}

Result:


Bleeding [[{{{page}}}|Bleeding]]

Duration: 2 turns


Usage:

{{Condition | Bleeding | save = CON }}

Result:


Bleeding [[{{{page}}}|Bleeding]]

Constitution saving throw


Usage:

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

Result:


Bleeding [[{{{page}}}|Bleeding]]

Duration: 2 turns

Constitution saving throw