Template:Passive inline: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Can now specify the width of the icon)
mNo edit summary
Line 2: Line 2:
tables=passives
tables=passives
|fields=name, _pageName = link, icon, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{item|}}}|'|\'}}') = item, CONCAT('{{{w|25}}}') = w
|fields=name, _pageName = link, icon, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{item|}}}|'|\'}}') = item, CONCAT('{{{w|25}}}') = w
|where=_pageName = "{{#replace:{{{1}}}|'|\'}}"
|where=_pageName = "{{#replace:{{{1}}}|'|\'}}" OR _pageName = "{{#replace:{{{1}}}|'|\'}} (passive feature)"
|limit=1
|limit=1
|format=template
|format=template

Revision as of 18:15, 20 June 2024

Template documentation
Shortcut

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

{{Pass|Darkvision}}

Darkvision Darkvision

With an alternative name

{{Pass|Cat's Grace (passive feature)|Catty Grace}}

Catty Grace Catty Grace

To specify an item that grants this passive and to use its icon, use:

{{Pass|Defy Villainy|item=Ketheric's Shield}}

Defy Villainy Defy Villainy

Specify icon width:

{{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}}

High Spellcasting (+1) High Spellcasting (+1)

When the passive doesn't exist:

{{Pass|Non-existant passive|It's gone}}

It's gone

See also

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
passive name1

no description

Stringrequired
item2

specifies the item for which the icon should be pulled from

Stringoptional