Template:Condition inline

From bg3.wiki
Revision as of 23:27, 21 July 2024 by NtCarlson (talk | contribs) (Updated documentation and added category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
Shortcut

This template creates an inline link to a condition page with an accompanying condition icon.

Usage

This template looks up conditions from the conditions Cargo table, and thus the first parameter should match an entry in this table. If provided, the second parameter changes the display name of the condition. Specifying the optional w parameter changes the width of the icon (default 25).

Examples

Markup Renders as
{{Cond|Radiating Orb}}
Radiating Orb Radiating Orb
{{Cond|Bleeding|Bleed}}
Bleed Bleed
{{Cond|Radiating Orb|w = 40}}
Radiating Orb Radiating Orb
{{Cond|Non-existent condition}}
Non-existent condition

See also

  • {{SAI}} - A similar template used for links to spells, abilities, and passives.
  • {{Condition}} - Displays more detailed information about a condition.
  • {{Condition page}} - Page generating template responsible for adding a condition into the condition Cargo table so that it can be referenced by this template.

Template data

Display a link to a condition accompanied by the condition icon.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
condition name1

The name of the condition as appears in the condition table. This should generally be the condition page name with "(Condition)" removed.

Stringrequired
altname2

Alternative display name

Stringoptional
widthw

Size in pixels of the condition icon. Generally, you should stick with the default value.

Default
25
Numberoptional