Template:PAS: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Add documentation template)
Tags: Removed redirect Reverted
m (Oops)
Tags: New redirect Manual revert
 
Line 1: Line 1:
<includeonly><includeonly>{{#lvardef:}}<dd>{{#if:{{{custom|}}}|{{SmIconLink|{{{custom}}}|{{{2}}}|{{{1}}}}}|{{#if:{{{item|}}}|{{#cargo_query:
#REDIRECT [[Template:Passive list]]
tables=item_icon
|fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{#replace:{{{item}}}|'|\'}}')
|where=item_icon._pageName='{{#replace:{{{item}}}|'|\'}}'
|limit=1
|order by=item_icon._pageName
|default={{ItemIcon Internal|Generic Feature Icon.webp|25|||{{{item}}}}}
|more results text=
|format=template
|template=ItemIcon Internal
}} [[{{{1}}}|{{{2|{{{1}}}}}}]]|{{IconLink
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp
| {{{1}}}
| {{{2|{{{1}}} }}}
| size = {{{w|24}}}
| w = {{{w|}}}
| h = {{{h|}}}
| gap = {{{gap|}}}
| block = true
}}}}}}{{#if:{{{t|}}}|{{Tactician}}|}}{{#if:{{{honour|}}}|{{Honour}}|}}</dd></includeonly><noinclude>{{documentation|content=
A version of [[Template:SAI]] that adds {{InfoBlob|<nowiki><dd></nowiki>}}-list around it.
 
Useful for '''PAS'''-sive features on infoboxes.
 
Example:
 
{{InfoBlob|<nowiki>{{PAS|Opportunity Attack}}{{PAS|Fey Ancestry}}{{PAS|Evasion|t=1}}{{PAS|Darkvision (passive feature)|Darkvision|honour=1}}</nowiki>}}
 
{{PAS|Opportunity Attack}}{{PAS|Fey Ancestry}}{{PAS|Evasion|t=1}}{{PAS|Darkvision|honour=1}}
 
To specify an item that grants this passive and to use its icon, use:
 
{{InfoBlob|<nowiki>{{PAS|Defy Villainy|item=Jhannyl's Gloves}}</nowiki>}}
 
{{PAS|Defy Villainy|item=Jhannyl's Gloves}}
 
If you need a custom iconlink use:
 
{{InfoBlob|<nowiki>{{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}}</nowiki>}}
{{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}}
 
 
== See also ==
* {{t link|passive}}
* {{t link|passive inline}}
 
 
== Template data ==
 
<templatedata>
{
"params": {
"1": {
"label": "passive name",
"type": "string",
"required": true
},
"2": {
"label": "item",
"description": "specifies the item for which the icon should be pulled from",
"type": "string"
}
},
"format": "inline"
}
</templatedata>}}</noinclude>

Latest revision as of 21:17, 4 January 2024