(Added link to ability) |
No edit summary |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> |
||
⚫ | |||
+ | {{cleanup|[[Template:Ability details]] is not saving abilities on some pages, causing this template the break.}} |
||
− | {{#cargo_query: |
||
+ | </noinclude> |
||
− | table=Abilities |
||
+ | |||
− | |fields=ability_image |
||
⚫ | |||
− | |default=None |
||
+ | -->{{#vardefine:link|{{show|A|{{#var:name}}|_pageName}}#{{#var:name}} }}<!-- |
||
− | |more results text= |
||
+ | -->{{#vardefine:imageOpts|{{{size|{{{3|22px}}} }}} }}<!-- |
||
− | |limit = 1 |
||
+ | -->{{#vardefine:text|{{{text|{{{2|}}} }}} }}<!-- |
||
− | |where=ability_name="{{{1}}} " |
||
⚫ | |||
− | |no html}} |
||
− | }} |
||
− | {{#ifeq: {{#var: icon}} | None | |
||
⚫ | |||
{{Doc}} |
{{Doc}} |
||
[[Category:Templates]] |
[[Category:Templates]] |
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 ...