Template:Passive list: Difference between revisions
Jump to navigation
Jump to search
TTactician
To specify an item that grants this passive and to use its icon, use:
HHonour{{PAS|Authority|item=Cloth of Authority}}
Authority
If you need a custom iconlink use:
{{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}}
HiddenDragon (talk | contribs) (Show the generic icon if can't find an item) |
HiddenDragon (talk | contribs) (Switch to ItemIcon Internal and link just the icon to the item instead) |
||
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(' | |fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{{item}}}') | ||
|where=item_icon._pageName="{{{item}}}" | |where=item_icon._pageName="{{{item}}}" | ||
|limit=1 | |limit=1 | ||
Line 8: | Line 8: | ||
|more results text= | |more results text= | ||
|format=template | |format=template | ||
|template= | |template=ItemIcon Internal | ||
}}|{{IconLink | }} [[{{{1}}}|{{{2|{{{1}}}}}}]]|{{IconLink | ||
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp | | {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp | ||
| {{{1}}} | | {{{1}}} |
Revision as of 22:55, 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}}