Template:Passive inline/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (Add default passive icon)
m (Modify to remove display name)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap">{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | Generic Feature Icon.webp}}|{{{link}}}|{{{name|{{{link}}}}}}|w={{{w|25}}}|h={{{w|25}}}}}</span></includeonly><noinclude>
<includeonly>{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | {{#if: {{{item|}}} | {{#cargo_query: tables = item_icon
      | fields = icon
      | where = _pageName = "{{{item}}}"
      | format = template
      | template = trim
      }} | Generic Feature Icon.webp }} }}|{{{link}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{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:


Usage:
<pre>
{{Passive inline/Format
{{Passive inline/Format
| name = High Spellcasting
| link = High Spellcasting (+1)
| link = High Spellcasting +1
| altname =
}}</pre>
 
Result:
{{Passive inline/Format
| link = High Spellcasting (+1)
| altname =
}}
}}


----
<pre>
{{Passive inline/Format
| link = Winter's Clutches (passive feature)
| altname = Winter's Clutches
}}</pre>
Result:
{{Passive inline/Format
{{Passive inline/Format
| name = Sparkswall Armour
| link = Winter's Clutches (passive feature)
| altname = Winter's Clutches
}}
 
----
 
Usage:
<pre>{{Passive inline/Format
| link = Sparkswall Armour
| link = Sparkswall Armour
| icon =
| item = The Protecty Sparkswall
}}</pre>
 
Result:
{{Passive inline/Format
| link = Sparkswall Armour
| item = The Protecty Sparkswall
}}
}}
----
<pre>{{Passive inline/Format
| name = Arcane Battery
| link = Arcane Battery
| icon = Arcane Battery Icon.webp
}}</pre>


{{Passive inline/Format
{{Passive inline/Format
Line 31: Line 73:
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"name": {
        "altname": {
"description": "Alternative display name for the passive feature link",
            "description": "Alternative display name that will override the name",
"type": "string"
            "type": "string"
}
        },
        "item": {
            "description": "If an item icon is to be shown instead, specify it here.",
            "type": "string"
        }
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 16:35, 6 August 2024

Meant to be used with a Cargo query. Preview:

Usage:

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

Result: High Spellcasting (+1) High Spellcasting (+1)


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

Result: Winter's Clutches Winter's Clutches


Usage:

{{Passive inline/Format
| link = Sparkswall Armour
| item = The Protecty Sparkswall
}}

Result: Sparkswall Armour Sparkswall Armour


{{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
altnamealtname

Alternative display name that will override the name

Stringoptional
itemitem

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

Stringoptional