Template:Passive inline: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Categorize missing passives)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#cargo_query:
<includeonly>{{#cargo_query:
tables=passives
tables=passives
|fields=name, _pageName = link, {{#if: {{{2|}}} | CONCAT('{{#replace:{{{2}}}|'|\'}}') = altname, }}{{#if: {{{item|}}} | CONCAT('{{#cargo_query:
|fields=name, _pageName = link, {{#if: {{{2|}}} | CONCAT('{{#replace:{{{2}}}|'|\'}}') = altname, }}{{#if: {{{item|}}} | CONCAT("{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=icon
|fields=icon
Line 10: Line 10:
|template=Trim
|template=Trim
|more results text=
|more results text=
}}') = icon | icon}}
}}") = icon | icon}}
|where=_pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
|where=_pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
|limit=1
|limit=1
Line 35: Line 35:
{{InfoBlob|<nowiki>{{Pass|Defy Villainy|item=Jhannyl's Gloves}}</nowiki>}}
{{InfoBlob|<nowiki>{{Pass|Defy Villainy|item=Jhannyl's Gloves}}</nowiki>}}


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


When the passive doesn't exist:
When the passive doesn't exist:

Revision as of 07:08, 10 May 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=Jhannyl's Gloves}}

File:Ketheric& Defy Villainy

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