Template:Condition page: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(add "suppress sources")
(add notes)
Line 15: Line 15:
{{#arrayprint:types|<br>|@|{{Condition Type|@}} }}
{{#arrayprint:types|<br>|@|{{Condition Type|@}} }}
}}</div>
}}</div>
{{#if:{{{notes|}}}|
== Notes ==
{{{notes}}}
}}
{{#if:{{{suppress sources|}}}||
{{#if:{{{suppress sources|}}}||
== Sources of {{#lvar:name}} ==
== Sources of {{#lvar:name}} ==
Line 35: Line 40:
| effects =
| effects =
| type =
| type =
| notes =
}}
}}
</pre>
</pre>
Line 129: Line 135:
"description": "If specified, will not display \"sources of\".",
"description": "If specified, will not display \"sources of\".",
"type": "boolean"
"type": "boolean"
},
"notes": {
"description": "Notes, displayed before the list of sources",
"type": "string"
}
}
}
}
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 12:14, 19 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 =
| notes =
}}

Examples:

Blade Ward (Condition)


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