Template:Condition: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = conditions
<includeonly>{{#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 = '{{{1}}}'
| where = name = '{{trim| {{{1}}} }}'
| format = template
| format = template
| template = Condition/Format
| template = Condition/Format
Line 13: Line 13:


<pre>
<pre>
{{Condition|bleeding}}
{{Condition | bleeding }}
</pre>
</pre>


Result:
Result:
----
----
{{Condition|bleeding}}
{{Condition | bleeding }}
----
----


Line 24: Line 24:


<pre>
<pre>
{{Condition|bleeding|duration = 2}}
{{Condition | bleeding | duration = 2 }}
</pre>
</pre>


Result:
Result:
----
----
{{Condition|bleeding|duration = 2}}
{{Condition | bleeding | duration = 2 }}
----
----


Line 35: Line 35:


<pre>
<pre>
{{Condition|bleeding|save = CON}}
{{Condition | bleeding | save = CON }}
</pre>
</pre>


Result:
Result:
----
----
{{Condition|bleeding|save = CON}}
{{Condition | bleeding | save = CON }}
----
----


Line 46: Line 46:


<pre>
<pre>
{{Condition|bleeding|save = CON|duration = 2}}
{{Condition | bleeding | save = CON | duration = 2 }}
</pre>
</pre>


Result:
Result:
----
----
{{Condition|bleeding|save = CON|duration = 2}}
{{Condition | bleeding | save = CON | duration = 2 }}
----
----
</noinclude>
</noinclude>

Revision as of 03:14, 25 July 2023

Use this to display a condition. Examples follow.


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