Template:Reaction inline
Jump to navigation
Jump to search
Template documentation
Shortcut
- {{React}}
Similar to {{Reaction}}, but exclusively supports inline usage.
The result is formatted using {{Reaction inline/format}}
Examples
| Example | Markup | Renders as |
|---|---|---|
| Default usage | {{React|Bardic Defence}} | Bardic Defence |
| Alternative name | {{React|Deflect Missiles: Redirect|Redirect}} | Redirect |
| Specify icon width | {{React|Drunkard's Luck|w=40}} | Drunkard's Luck |
| When the reaction doesn't exist | {{React|Non-existent reaction|It's gone}} | It's gone Unknown reaction |
See also
- {{Reaction}} - Large format
- {{Reaction page}} - Page generating template responsible for adding a reaction into the reactions Cargo table so that it can be referenced by this template.
Alternate icon sizes
- {{SmReact}} - sets the default size to 20 instead of 25
- {{MdReact}} - sets the default size to 30 instead of 25
- {{LgReact}} - sets the default size to 40 instead of 25
Template data
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| reaction name | 1 | The name of the reaction as appears in the reactions table. | 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 |


