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|Defy Villainy|item=Jhannyl's Gloves}}
Defy Villainy
If you need a custom iconlink use:
{{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}}
HiddenDragon (talk | contribs) (Switch to ItemIcon Internal and link just the icon to the item instead) |
HiddenDragon (talk | contribs) (Add documentation template) |
||
(5 intermediate revisions by the same user not shown) | |||
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= | |where=item_icon._pageName='{{#replace:{{{item}}}|'|\'}}' | ||
|limit=1 | |limit=1 | ||
|order by=item_icon._pageName | |order by=item_icon._pageName | ||
|default={{ | |default={{ItemIcon Internal|Generic Feature Icon.webp|25|||{{{item}}}}} | ||
|more results text= | |more results text= | ||
|format=template | |format=template | ||
Line 18: | Line 18: | ||
| gap = {{{gap|}}} | | gap = {{{gap|}}} | ||
| block = true | | block = true | ||
}}}}}}{{#if:{{{t|}}}|{{Tactician}}|}}{{#if:{{{honour|}}}|{{Honour}}|}}</dd></includeonly><noinclude>A version of [[Template:SAI]] that adds {{InfoBlob|<nowiki><dd></nowiki>}}-list around it. | }}}}}}{{#if:{{{t|}}}|{{Tactician}}|}}{{#if:{{{honour|}}}|{{Honour}}|}}</dd></includeonly><noinclude>{{documentation|content= | ||
{{shortcut|PAS}} | |||
A version of [[Template:SAI]] that adds {{InfoBlob|<nowiki><dd></nowiki>}}-list around it. | |||
Useful for '''PAS'''-sive features on infoboxes. | Useful for '''PAS'''-sive features on infoboxes. | ||
Line 30: | Line 32: | ||
To specify an item that grants this passive and to use its icon, use: | To specify an item that grants this passive and to use its icon, use: | ||
{{InfoBlob|<nowiki>{{PAS| | {{InfoBlob|<nowiki>{{PAS|Defy Villainy|item=Jhannyl's Gloves}}</nowiki>}} | ||
{{PAS| | {{PAS|Defy Villainy|item=Jhannyl's Gloves}} | ||
If you need a custom iconlink use: | If you need a custom iconlink use: | ||
Line 39: | Line 41: | ||
{{PAS|Balance|Leather Armour +2|custom=Leather Armour PlusTwo Icon.png}} | {{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:18, 4 January 2024
Template documentation
Shortcut
- {{PAS}}
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}}
See also
- {{passive}}
- {{passive inline}}
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
passive name | 1 | no description | String | required |
item | 2 | specifies the item for which the icon should be pulled from | String | optional |