Editing Template:AbilityInteraction/docGive feedback
Jump to navigation
Jump to search
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 a specific ability interacts with an item or mechanic. It is intended for hero and ability pages, where several boxes are usually stacked together. Each call renders one box: a coloured header and a body. | |||
{{ | 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. The {{code|1=link}} parameter accepts either a bare page name or a full URL. | ||
{ | |||
== Examples == | == Examples == | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = positive | ||
| | | file = Healing Booster.png | ||
| text = | | link = Healing Booster | ||
| title = Healing Booster | |||
| text = The [[Healing]] from this ability is amplified. | |||
}} | }} | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| | | type = positive | ||
| | | file = Healing Booster.png | ||
| text = | | link = Healing Booster | ||
| title = Healing Booster | |||
| text = The [[Healing]] from this ability is amplified. | |||
}} | }} | ||
<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 | ||
}} | }} | ||
</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 | ||
}} | }} | ||
<templatedata> | |||
{ | |||
"description": "Displays a boxed note describing how an ability interacts with an item or mechanic. One call renders one box.", | |||
"params": { | |||
{ | "title": { | ||
"label": "Header title", | |||
"description": "Text shown in the box header.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"text": { | |||
"label": "Body text", | |||
<noinclude>[[Category:Template documentation]]</noinclude> | "description": "Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and <br> for multiple lines.", | ||
"type": "content", | |||
"required": true | |||
}, | |||
"type": { | |||
"label": "Colour preset", | |||
"description": "Header colour: positive (green), negative (red), or info (blue).", | |||
"type": "line", | |||
"suggestedvalues": [ "positive", "negative", "info" ] | |||
}, | |||
"file": { | |||
"label": "Icon file", | |||
"description": "File name of the icon image, without the File: prefix.", | |||
"type": "wiki-file-name", | |||
"example": "Healing Booster.png" | |||
}, | |||
"link": { | |||
"label": "Link target", | |||
"description": "Where the header and icon link. A bare page name (e.g. Healing Booster) or a full URL.", | |||
"type": "string", | |||
"example": "Healing Booster" | |||
}, | |||
"state": { | |||
"label": "State", | |||
"description": "Set to disabled to desaturate the icon.", | |||
"type": "line", | |||
"suggestedvalues": [ "disabled" ] | |||
} | |||
}, | |||
"paramOrder": [ "title", "text", "type", "file", "link", "state" ], | |||
"format": "block" | |||
} | |||
</templatedata><noinclude>[[Category:Template documentation]]</noinclude> | |||