Editing Template:AbilityInteraction/docGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
{{tl|AbilityInteraction}} displays a boxed note describing how | {{tl|AbilityInteraction}} displays a boxed note describing how a specific ability interacts with an item or mechanic. | ||
The header colour is set by the {{code|1=type}} parameter ({{code|positive}}, {{code|negative}}, or {{code|info}}). Setting {{code|1=state=disabled}} desaturates the icon to mark an interaction that does not apply. | |||
== Parameters == | == Parameters == | ||
| Line 11: | Line 11: | ||
"description": "", | "description": "", | ||
"params": { | "params": { | ||
" | "title": { | ||
"description": " | "description": "Text shown in the box header.", | ||
"type": "string", | |||
"required": true | |||
}, | |||
"type": { | |||
"description": "Header colour: positive (green), negative (red), or info (blue).", | |||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"example": " | "suggestedvalues": [ "positive", "negative", "info" ] | ||
" | }, | ||
"file": { | |||
"description": "File name of the icon image, without the File: prefix.", | |||
"type": "string", | |||
"example": "Healing Booster.png", | |||
"required": true | |||
}, | |||
"link": { | |||
"description": "Where the header and icon link. A bare page name (e.g. Healing Booster) or a full URL.", | |||
"type": "string", | |||
"example": "Healing Booster", | |||
"required": true | |||
}, | }, | ||
"text": { | "text": { | ||
"description": "Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and | "description": "Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and <br> for multiple lines.", | ||
"type": "content" | "type": "content" | ||
}, | }, | ||
"state": { | "state": { | ||
"description": " | "description": "Set to disabled to desaturate the icon.", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ "disabled" ] | ||
} | } | ||
}, | }, | ||
"paramOrder": [ " | "paramOrder": [ "title", "text", "type", "file", "link", "state" ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
| Line 36: | Line 51: | ||
== Examples == | == Examples == | ||
=== | === Positive Interaction === | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = positive | ||
| text = | | file = Melee Charge.png | ||
| link = Melee Charge | |||
| title = Melee | |||
| text = This ability benefits from Melee damage bonuses and triggers relevant item effects. | |||
}} | }} | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = positive | ||
| text = | | file = Melee Charge.png | ||
| link = Melee Charge | |||
| title = Melee | |||
| text = This ability benefits from Melee damage bonuses and triggers relevant item effects. | |||
}} | }} | ||
=== | === Negative Interaction === | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = negative | ||
| | | file = Debuff Reducer.png | ||
| text = | | link = Debuff Reducer | ||
| title = Debuff Resist | |||
| text = The duration of movement slow and accuracy debuff can be shortened with [[Debuff Resist]]. | |||
}} | }} | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = negative | ||
| | | file = Debuff Reducer.png | ||
| text = | | link = Debuff Reducer | ||
| title = Debuff Resist | |||
| text = The duration of movement slow and accuracy debuff can be shortened with [[Debuff Resist]]. | |||
}} | }} | ||
=== | === Neutral interaction with disabled state === | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = info | ||
| | | file = Slowing Hex.png | ||
| link = Slowing Hex | |||
| title = Slowing Hex | |||
| text = This ability is '''not''' interrupted by [[Slowing Hex]]. | |||
| | |||
| | |||
| text = | |||
| state = disabled | | state = disabled | ||
}} | }} | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = info | ||
| file = Slowing Hex.png | |||
| link = Slowing Hex | |||
| title = Slowing Hex | |||
| text = This ability is '''not''' interrupted by [[Slowing Hex]]. | |||
| state = disabled | | state = disabled | ||
}} | }} | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||