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><div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">{{#cargo_query: tables = conditions
<includeonly>{{#if:{{{border|}}}|<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
}}</div></div></includeonly><noinclude>
}}{{#if:{{{border|1}}}|</div></div>||}}</includeonly><noinclude>
Use this to display a condition.  Examples follow.
Use this to display a condition.  Examples follow.


Line 54: Line 54:
----
----
{{Condition | Bleeding | save = CON | duration = 2 }}
{{Condition | Bleeding | save = CON | duration = 2 }}
----
Use {{InfoBlob|<nowiki>border = 1</nowiki>}} to add a border.
<pre>
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}}
</pre>
Result:
----
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}}
----
----
</noinclude>
</noinclude>

Revision as of 09:42, 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


Use border = 1 to add a border.

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

Result:


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

Duration: 2 turns

Constitution saving throw