Template:Reaction inline

From bg3.wiki
Jump to navigation Jump to search
Template documentation
Shortcut

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 DefenceBardic Defence
Alternative name
{{React|Deflect Missiles: Redirect|Redirect}}
RedirectRedirect
Specify icon width
{{React|Drunkard's Luck|w=40}}
Drunkard's LuckDrunkard'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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
reaction name1

The name of the reaction as appears in the reactions table.

Stringrequired
altname2

Alternative display name

Stringoptional
Widthw

Override the width of the image.

Numberoptional
Heighth

Override the height of the image.

Numberoptional
Sizesize

Set the size of the image to this by this.

Numberoptional
Blockblock

Whether to wrap the icon and link in a container HTML element.

Stringoptional
Gapgap

If 'block' is set, the exact gap to use between the icon and link.

Numberoptional
Nowrapnowrap

If specified, will add the nowrap css style to the span.

Stringoptional