Template:Condition: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Pass in type to condition format)
(Add example with type)
Line 94: Line 94:
Result:
Result:
{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }}
{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }}
== Also displays types ==
{{Condition | Feverish }}


</noinclude>
</noinclude>

Revision as of 12:53, 9 October 2023

Use this to display a condition. Examples follow.

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

Base usage

Usage:

{{Condition | Bleeding }}

Result:


Error: No field named "type" found for any of the specified database tables.

With duration

Usage:

{{Condition | Bleeding | duration = 2 }}

Result:


Error: No field named "type" found for any of the specified database tables.

With saving throw

Usage:

{{Condition | Bleeding | save = CON }}

Result:


Error: No field named "type" found for any of the specified database tables.

With duration and saving throw

Usage:

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

Result:


Error: No field named "type" found for any of the specified database tables.

With a border

Use border = 1 to add a border.

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

Result:


Error: No field named "type" found for any of the specified database tables.

Inline-friendly

Usage:

{{Condition | Bleeding | inline = true }}
Result: blabla
Error: No field named "type" found for any of the specified database tables.
blabla

Alternative display name

{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }}

Result:

Error: No field named "type" found for any of the specified database tables.

Also displays types

Error: No field named "type" found for any of the specified database tables.