Template:Passive inline/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
m (nowrap)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap">{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | {{#if: {{{item|}}} | {{#cargo_query: tables = item_icon
<includeonly>{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | {{#if: {{{item|}}} | {{#cargo_query: tables = item_icon
       | fields = icon
       | fields = icon
       | where = _pageName = "{{{item}}}"
       | where = _pageName = "{{{item}}}"
       | format = template
       | format = template
       | template = trim
       | template = trim
       }} | Generic Feature Icon.webp }} }}|{{{link}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{name|{{{link}}}}}} }}|w={{{w|25}}}|h={{{w|25}}}}}</span></includeonly><noinclude>
       }} | Generic Feature Icon.webp }} }}|{{{link}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{name|{{{link}}}}}} }}|w={{{w|25}}}|h={{{w|25}}}|nowrap=y}}</includeonly><noinclude>
Meant to be used with a Cargo query.  Preview:
Meant to be used with a Cargo query.  Preview:



Revision as of 05:44, 30 July 2024

Meant to be used with a Cargo query. Preview:

Usage:

{{Passive inline/Format
| name = High Spellcasting
| link = High Spellcasting +1
| altname =
}}

Result: High Spellcasting High Spellcasting


{{Passive inline/Format
| name = Winter's Clutches
| link = Winter's Clutches (passive feature)
| altname =
}}

Result: Winter's Clutches Winter's Clutches


Usage:

{{Passive inline/Format
| name = Sparkswall Armour
| link = Sparkswall Armour
| icon =
| altname = Sparky Feature
}}

Result: Sparky Feature Sparky Feature


{{Passive inline/Format
| name = Arcane Battery
| link = Arcane Battery
| icon = Arcane Battery Icon.webp
}}

Arcane Battery Arcane Battery

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
linklink

The page of the passive feature.

Stringrequired
iconicon

The icon of the passive feature. If not specified, will default to Generic Feature Icon.webp

Fileoptional
namename

Display name for the passive feature link

Stringoptional
altnamealtname

Alternative display name that will override the name

Stringoptional
itemitem

If an item icon is to be shown instead, specify it here.

Stringoptional