Template:Condition type: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Shrink icon)
(Make it default to 40 again)
Line 1: Line 1:
<includeonly>{{Icon|Condition Type Icon.png|25}}{{#switch:{{{1}}}
<includeonly>{{Icon|Condition Type Icon.png|{{{size|40}}} }}{{#switch:{{{1}}}
| curse = [[Conditions#Condition_Type|Cursed]]
| curse = [[Conditions#Condition_Type|Cursed]]
| disease = [[Conditions#Condition_Type|Diseased]]
| disease = [[Conditions#Condition_Type|Diseased]]
Line 11: Line 11:


{{Condition/Type|poison}}
{{Condition/Type|poison}}
The optional parameter {{c|size}} specifies the size of the icon, which defaults to 40px.


== Template data ==
== Template data ==
Line 27: Line 29:
],
],
"required": true
"required": true
},
"size": {
"description": "The size of the icon",
"type": "number",
"default": "40"
}
}
}
},
"format": "inline"
}
}
</templatedata>
</templatedata>

Revision as of 13:10, 9 October 2023

Displays the condition icon plus a link to Curse, Disease, or Poison according to the provided type parameter.

Condition Type Icon.pngCursed

Condition Type Icon.pngDiseased

Condition Type Icon.pngPoisoned

The optional parameter size specifies the size of the icon, which defaults to 40px.

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

The type of condition.

Suggested values
disease poison curse
Stringrequired
sizesize

The size of the icon

Default
40
Numberoptional