Template:Passive inline: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (HiddenDragon moved page Template:Pass to Template:Passive inline)
(Cleanup.)
Line 1: Line 1:
<includeonly><includeonly>{{#if:{{{item|}}}|{{#cargo_query:
<includeonly>{{#if: {{{item|}}} |
{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{#replace:{{{item}}}|'|\'}}')
|fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{#replace:{{{item}}}|'|\'}}')
Line 9: Line 10:
|format=template
|format=template
|template=ItemIcon Internal
|template=ItemIcon Internal
}} [[{{{1}}}|{{{2|{{{1}}}}}}]]|{{IconLink
}}&nbsp;[[{{{1}}}|{{{2|{{{1}}}}}}]]
|
{{IconLink
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp
| {{{1}}}
| {{{1}}}
| {{{2|{{{1}}} }}}
| {{{2| {{{1}}} }}}
| size = {{{w|24}}}
| size = {{{w|24}}}
| w = {{{w|}}}
| w = {{{w|}}}

Revision as of 19:56, 27 March 2024

Template documentation
Shortcut

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

{{Pass|Opportunity Attack}}

Opportunity Attack Opportunity Attack

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

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

 Defy Villainy

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