Template:Passive inline/Format: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
m (Add default passive icon)
mNo edit summary
(2 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><span style="white-space: nowrap">{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | Generic Feature Icon.webp}}|{{{link}}}|{{{altname|{{{name|{{{link}}}}}}}}}|w={{{w|25}}}|h={{{w|25}}}}}</span></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
| name = High Spellcasting
| link = High Spellcasting +1
}}</pre>
Result:
{{Passive inline/Format
{{Passive inline/Format
| name = High Spellcasting
| name = High Spellcasting
Line 7: Line 15:
}}
}}


----
Usage:
<pre>{{Passive inline/Format
| name = Sparkswall Armour
| link = Sparkswall Armour
| icon =
| altname = Sparky Feature
}}</pre>
Result:
{{Passive inline/Format
{{Passive inline/Format
| name = Sparkswall Armour
| name = Sparkswall Armour
| link = Sparkswall Armour
| link = Sparkswall Armour
| icon =
| icon =
| altname = Sparky Feature
}}
}}
----
<pre>{{Passive inline/Format
| name = Arcane Battery
| link = Arcane Battery
| icon = Arcane Battery Icon.webp
}}</pre>


{{Passive inline/Format
{{Passive inline/Format
Line 32: Line 60:
},
},
"name": {
"name": {
"description": "Alternative display name for the passive feature link",
"description": "Display name for the passive feature link",
"type": "string"
"type": "string"
}
},
        "altname": {
            "description": "Alternative display name that will override the name",
            "type": "string"
        }
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 21:02, 9 May 2024

Meant to be used with a Cargo query. Preview:

Usage:

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

Result: High Spellcasting High Spellcasting


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