Template:Passive list: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Fixed escaping)
Line 1: Line 1:
<includeonly><includeonly>{{#lvardef:}}<dd>{{#if:{{{custom|}}}|{{SmIconLink|{{{custom}}}|{{{2}}}|{{{1}}}}}|{{#if:{{{item|}}}|{{#cargo_query:
<includeonly><includeonly>{{#lvardef:}}<dd>{{#if:{{{custom|}}}|{{SmIconLink|{{{custom}}}|{{{2}}}|{{{1}}}}}|{{#if:{{{item|}}}|{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{{item}}}')
|fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{#replace:{{{item}}}|'|\'}}')
|where=item_icon._pageName='{{#replace:{{{item}}}|&#39;|\'}}'
|where=item_icon._pageName='{{#replace:{{{item}}}|'|\'}}'
|limit=1
|limit=1
|order by=item_icon._pageName
|order by=item_icon._pageName
Line 32: Line 32:
{{InfoBlob|<nowiki>{{PAS|Authority|item=Cloth of Authority}}</nowiki>}}
{{InfoBlob|<nowiki>{{PAS|Authority|item=Cloth of Authority}}</nowiki>}}


{{PAS|Authority|item=Cloth of Authority}}
{{PAS|Defy Villainy|item=Jhannyl's Gloves}}


If you need a custom iconlink use:
If you need a custom iconlink use:

Revision as of 08:42, 13 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}}
Defy Villainy
If you need a custom iconlink use: {{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}}
Balance Balance