Template:Condition page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
(Revert for now)
Tag: Manual revert
Line 12: Line 12:
}}<!--Actual display starts here-->{{NoExcerpt | {{icon| {{#lvar:icon}} |30}} '''{{#lvar:name}}''' }}
}}<!--Actual display starts here-->{{NoExcerpt | {{icon| {{#lvar:icon}} |30}} '''{{#lvar:name}}''' }}


{{{effects|}}}
{{{effects|}}} {{#if: {{#lvar:type}} | <br>
{{#if: {{{grants|}}} |
Grants:
{{#invoke: ParseList | main | {{{grants}}} | type = htmlList | useTemplate = SAI/fixed }}
}} {{#if: {{#lvar:type}} | <br>
{{#arrayprint:types|<br>|@|{{Condition Type|@}} }}
{{#arrayprint:types|<br>|@|{{Condition Type|@}} }}
}}</div><references/>
}}</div><references/>
Line 43: Line 39:
| effects =
| effects =
| type =
| type =
| grants =
| notes =
| notes =
}}
}}
Line 96: Line 91:
| suppress sources = true
| suppress sources = true
}}
}}
== Grants example ==
{{ConditionPage
| icon = Dread Ambusher Icon.webp
| name = Dread Ambusher
| effects = * [[Movement speed]] increased by 10ft. Affected entity can make a weapon attack as a bonus action that deals an additional 1d8 damage.
| grants = Dread Ambusher (Melee), Dread Ambusher (Ranged)
}}


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

Revision as of 04:05, 14 November 2023

Template documentation

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 =
| notes =
}}

Examples:

Blade Ward (Condition)

Notes

  • note 1
  • note 2

Sources of Blade Ward


Bone Chilled (Condition)

Sources of Bone Chilled


Flesh Rot (Condition)

Condition Type Icon.pngDiseased

Sources of Flesh Rot


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
suppress sourcessuppress sources

If specified, will not display "sources of".

Booleanoptional
notesnotes

Notes, displayed before the list of sources

Stringoptional