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>{{#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 = '{{trim| {{{1}}} }}'
| where = name = '{{#replace: {{{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 00:04, 1 August 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