Difference between revisions of "Template:Ability link"

From Overwatch Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
  +
{{cleanup|[[Template:Ability details]] is not saving abilities on some pages, causing this template the break.}}
{{cleanup|The ability link template broke after the recent migration.}}
 
 
</noinclude>
 
</noinclude>
   

Latest revision as of 19:53, 24 October 2020

Cleanup.svg This article needs cleanup to meet quality standards.
Please help improve this page if you can. The talk page may contain suggestions.

Reason: "Template:Ability details is not saving abilities on some pages, causing this template the break."




Template-info.png Documentation

Alias:{{Al}}

Adds an inline link to a hero ability with optional ability icon.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Ability Namename 1

The exact name of the hero ability to show an icon for.

Example
EMP, Earthshatter, The Viper
Stringrequired
Display texttext 2

Text to be displayed instead of displaying the ability name

Stringoptional
Icon sizesize 3

Size to display ability icon

Default
30px
Example
15px
Stringoptional
Icon onlyicononly

Setting this to any value will return just the icon

Unknownoptional

Examples: Reins

Ability-reinhardt5.png Earthshatter hits everyone in front of it.

Ability-ashe1.png The Viper is one of the only semi-auto weapons in the game.

You can override the display text for

Ability Sombra EMP.png EMP using {{{2}}} like this

Ability Sombra EMP.png This text is shown instead

{{{3}}} is passed directly to [[File]]. Most often used to override the image size.


Ability-ashe2.png


Ability-ana2.png Display text


Ability-ana2.png Sleep Dart


Ability-ana2.png

  • Ability links also are inline in bulleted lists. You can talk about

Ability Moira Biotic Grasp Alt fire.png Biotic Grasp and

Ability-ana1.png Biotic Rifle

  • Some abilities share names with other pages, like

[[File:Lua error in Module:Show at line 31: attempt to index field '?' (a nil value).|middle|link=Lua error in Module:Show at line 31: attempt to index field '?' (a nil value).#Blizzard|22px]] [[Lua error in Module:Show at line 31: attempt to index field '?' (a nil value).#Blizzard|Blizzard]].

  • Does not add any extra space before or after the link ...

Ability-Junkrat2.png Concussion Mine...