Template:Passive inline

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

Similar to Template:Passive, but exclusively supports inline usage.

The result is formatted using Template:Passive inline/format

Examples

Example Markup Renders as
Default usage
{{Pass|Darkvision}}
DarkvisionDarkvision
Alternative name
{{Pass|Cat's Grace (passive feature)|Catty Grace}}
Catty GraceCatty Grace
Using an item's icon
{{Pass|Defy Villainy|item=Ketheric's Shield}}
Defy VillainyDefy Villainy
Specify icon width
{{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}}
High SpellcastingHigh Spellcasting
When the passive doesn't exist
{{Pass|Non-existant passive|It's gone}}
It's gone

See also

  • {{Passive}} - Large format
  • {{Passive feature page}} - Page generating template responsible for adding a passive into the passives Cargo table so that it can be referenced by this template.
  • {{Passive minimal}} - Displays just the description field of the passive

Alternate icon sizes

  • {{SmPass}} - sets the default size to 20 instead of 25
  • {{MdPass}} - sets the default size to 30 instead of 25
  • {{LgPass}} - 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
passive name1

The name of the passive as appears in the passives table.

Stringrequired
altname2

Alternative display name

Stringoptional
itemitem

specifies the item for which the icon should be pulled from

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