Template:Condition page: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Revert for now)
Tag: Manual revert
(Use multiple types)
Line 6: Line 6:
<!--backwards compat for disease-->
<!--backwards compat for disease-->
| {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }}
| {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }}
}}{{#arraydefine:types|{{#lvar:type}}|,}}{{PageSeo
}}{{PageSeo
| title = {{PAGENAME}}
| title = {{PAGENAME}}
| image = {{#lvar:icon}}
| image = {{#lvar:icon}}
Line 13: Line 13:


{{{effects|}}} {{#if: {{#lvar:type}} | <br>
{{{effects|}}} {{#if: {{#lvar:type}} | <br>
{{#arrayprint:types|<br>|@|{{Condition Type|@}} }}
{{Condition type|{{#lvar:type}} }}
}}</div><references/>
}}</div><references/>
{{#if:{{{notes|}}}|
{{#if:{{{notes|}}}|
Line 36: Line 36:


<pre>
<pre>
{{ConditionPage
{{Condition Page
| effects =
| effects =
| type =
| type =

Revision as of 15:06, 27 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.

{{Condition Page
| 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.pngDiseasedCursedIncapacitatedProneCharmed

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