Template:Passive list: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added the ability to cargo query an item icon)
mNo edit summary
Line 5: Line 5:
|limit=1
|limit=1
|order by=item_icon._pageName
|order by=item_icon._pageName
|default={{SmIconLink|{{{item}}} Unfaded Icon.png|{{{2|{{{1}}}}}}}}
|default={{SmIconLink|{{#replace:{{#replace:{{#replace:{{#replace:{{{item}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Unfaded Icon.png|{{{2|{{{1}}}}}}}}
|more results text=
|more results text=
|format=template
|format=template

Revision as of 22:37, 12 December 2023

A version of Template:SAI that adds <dd>-list around it.

Useful for PAS-sive features on infoboxes.

Example:

{{PAS|Opportunity Attack}}{{PAS|Fey Ancestry}}{{PAS|Evasion|t=1}}{{PAS|Darkvision (passive feature)|Darkvision|honour=1}}

Opportunity Attack Opportunity Attack
Fey Ancestry Fey Ancestry
Evasion EvasionTTactician
Darkvision DarkvisionHHonour
To specify an item that grants this passive and to use its icon, use: {{PAS|Authority|item=Cloth of Authority}}
Authority Authority
If you need a custom iconlink use: {{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}}
Balance Balance