Template:Condition: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#cargo_query: tables = conditions | fields = name, icon, description, "{{{save|}}}" = save, "{{{duration|}}}" = duration | where name = {{{name}}} | format = template | template = Condition/Format | named args = yes }}</includeonly><noinclude> Use this to display a condition, like so: <pre> WIP </pre> </noinclude>")
 
No edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = conditions
<includeonly>{{#cargo_query: tables = conditions
| fields = name, icon, description, "{{{save|}}}" = save, "{{{duration|}}}" = duration
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration
| where name = {{{name}}}
| where = name = '{{{1}}}'
| format = template
| format = template
| template = Condition/Format
| template = Condition/Format
| named args = yes
| named args = yes
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Use this to display a condition, like so:
Use this to display a condition.  Examples follow.
 
----
 
Usage:
 
<pre>
{{Condition|bleeding}}
</pre>
 
Result:
----
{{Condition|bleeding}}
----
 
Usage:
 
<pre>
{{Condition|bleeding|duration = 2}}
</pre>
 
Result:
----
{{Condition|bleeding|duration = 2}}
----
 
Usage:


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

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