m (Fix whitespace after link) |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> |
||
+ | {{cleanup|[[Template:Ability details]] is not saving abilities on some pages, causing this template the break.}} |
||
+ | </noinclude> |
||
+ | |||
<includeonly>{{#vardefine:name|{{{name|{{{1|}}} }}} }}<!-- |
<includeonly>{{#vardefine:name|{{{name|{{{1|}}} }}} }}<!-- |
||
-->{{#vardefine:link|{{show|A|{{#var:name}}|_pageName}}#{{#var:name}} }}<!-- |
-->{{#vardefine:link|{{show|A|{{#var:name}}|_pageName}}#{{#var:name}} }}<!-- |
||
− | -->{{#vardefine:imageOpts|{{{size|{{{3| |
+ | -->{{#vardefine:imageOpts|{{{size|{{{3|22px}}} }}} }}<!-- |
-->{{#vardefine:text|{{{text|{{{2|}}} }}} }}<!-- |
-->{{#vardefine:text|{{{text|{{{2|}}} }}} }}<!-- |
||
-->[[File:{{show|A|{{#var:name}}|ability_image}}|middle|link={{#var:link}}|{{#var:imageOpts}}]]{{Space}}{{#if:{{{icononly|}}}||[[{{#var:link}}{{!}}{{#if:{{#var:text}}|{{#var:text}}|{{#var:name}} }}]] }}</includeonly><noinclude> |
-->[[File:{{show|A|{{#var:name}}|ability_image}}|middle|link={{#var:link}}|{{#var:imageOpts}}]]{{Space}}{{#if:{{{icononly|}}}||[[{{#var:link}}{{!}}{{#if:{{#var:text}}|{{#var:text}}|{{#var:name}} }}]] }}</includeonly><noinclude> |
Revision as of 19:53, 24 October 2020
|
Documentation
[purge]
Alias:{{Al}}
Usage & parameters
Adds an inline link to a hero ability with optional ability icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Ability Name | name 1 | The exact name of the hero ability to show an icon for.
| String | required |
Display text | text 2 | Text to be displayed instead of displaying the ability name | String | optional |
Icon size | size 3 | Size to display ability icon
| String | optional |
Icon only | icononly | Setting this to any value will return just the icon | Unknown | optional |
Dependencies
Uses template {{show}} to fetch ability details from cargo.
Examples
Reins
Earthshatter hits everyone in front of it.
The Viper is one of the only semi-auto weapons in the game.
You can override the display text for
EMP using {{{2}}} like this
{{{3}}} is passed directly to [[File]]. Most often used to override the image size.
- Ability links also are inline in bulleted lists. You can talk about
Biotic Grasp and
- Some abilities share names with other pages, like
- Does not add any extra space before or after the link ...