Template:Condition inline
- {{Cond}}
This template creates an inline link to a condition page with an accompanying condition icon formatted using Template:Condition inline/format.
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}} | |
{{Cond|Bleeding|Bleed}} | |
{{Cond|Radiating Orb|w = 40}} | |
{{Cond|Non-existent condition}} | Non-existent condition |
See also
- {{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.
Alternate icon sizes
- {{SmCond}} - sets the default size to 20 instead of 25
- {{MdCond}} - sets the default size to 30 instead of 25
- {{LgCond}} - sets the default size to 40 instead of 25
Template data
Display a link to a condition accompanied by the condition icon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| condition name | 1 | The name of the condition as appears in the condition table. This should generally be the condition page name with "(Condition)" removed. | String | required |
| altname | 2 | Alternative display name | String | optional |
| Width | w | Override the width of the image. | Number | optional |
| Height | h | Override the height of the image. | Number | optional |
| Size | size | Set the size of the image to this by this. | Number | optional |
| Block | block | Whether to wrap the icon and link in a container HTML element. | String | optional |
| Gap | gap | If 'block' is set, the exact gap to use between the icon and link. | Number | optional |
| Nowrap | nowrap | If specified, will add the nowrap css style to the span. | String | optional |