Template:Condition page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Add multiple type support.)
(Add condition template category)
Line 75: Line 75:
}}
}}


[[Category:Page generating templates]]
[[Category:Page generating templates]][[Category:Condition templates]]


{{#cargo_declare: _table = conditions
{{#cargo_declare: _table = conditions

Revision as of 12:06, 12 October 2023

If the page title is Blah (Condition), then you don't have to provide the name parameter. Likewise, if the icon for the condition is called Blah Condition Icon.webp then you don't have to provide the icon parameter.

If a condition has multiple types, separate them with a semicolon.

{{ConditionPage
| effects =
| type =
}}

Examples:

Blade Ward (Condition)

Bone Chilled (Condition)

Flesh Rot (Condition)

Condition Type Icon.pngDiseased

Multiple types example

Condition Type Icon.pngDiseased
Condition Type Icon.pngCursed
Condition Type Icon.pngIncapacitated
Condition Type Icon.pngProne
Condition Type Icon.pngCharmed

This template defines the table "conditions". View table.

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
namename

If specified, overrides the name.

Default
Uses the name of the page, minus (Condition).
Stringoptional
iconicon

If specified, overrides the icon.

Default
Uses the "name" plus Condition.webp
Fileoptional
diseasedisease

If specified, sets the type to be disease

Booleandeprecated
typetype

The type or types of the condition. If multiple, separate the types with commas.

Stringoptional
effectseffects

The description of the condition.

Contentsuggested
this is an examplethis is an example

If specified, does not insert into the Conditions table.

Booleanoptional