6,944 Pages

This template contains various independently retrievable data items about Basic attack in the form of parameter values of a variable template of choice, in a standardized fashion.

See also

Preview

League of Legends icon nav.png
League of Legends content
Basic Attack.png
Basic attack

The basic attack (or auto-attack) is the most basic means of a unit to deal damage to another unit, usually dealing Attack damage icon.png 100% AD. It has a brief cooldown based on the caster's current Attack speed icon.png attack speed.


All basic attacks are normally unit-targeted with their range limited by the caster's Range icon.png attack range, and have a brief attack windup. Damage is then dealt depending on the caster's range type:

  • Melee role.png Melee and some projectile-less ranged attacks deal damage immediately.
  • Ranged role.png Ranged attacks usually send a projectile that follows the target and deals damage upon striking them. Projectiles can be intercepted by certain Projectile.png blocking effects.
The damage event will trigger Wit's End item.png on-hit effects from buffs the caster may hold. If damage cannot be dealt, on-hit effects will not be triggered. Pix, Faerie Companion.png On-attack effects will always trigger when the attack's windup completes.


Parameters

Parameter Value Description
1 Basic attack Necessary: Used for identification.
disp_name Display Name
Only necessary if the value differs from Basic attack.
link Basic attack Link
Only necessary if it should link to a different page.
description The basic attack (or auto-attack) is the most basic means of a unit to deal damage to another unit, usually dealing Attack damage icon.png 100% AD. It has a brief cooldown based on the caster's current Attack speed icon.png attack speed. Description
description2 All basic attacks are normally unit-targeted with their range limited by the caster's Range icon.png attack range, and have a brief attack windup. Damage is then dealt depending on the caster's range type:
  • Melee role.png Melee and some projectile-less ranged attacks deal damage immediately.
  • Ranged role.png Ranged attacks usually send a projectile that follows the target and deals damage upon striking them. Projectiles can be intercepted by certain Projectile.png blocking effects.

The damage event will trigger Wit's End item.png on-hit effects from buffs the caster may hold. If damage cannot be dealt, on-hit effects will not be triggered.

Pix, Faerie Companion.png On-attack effects will always trigger when the attack's windup completes.

Description2
type Buzzword Type
image
Basic Attack.png
Basic Attack.png
Image, including filetype.
image2
image3
interrupts Interrupts (CC)
reduction Reduction (CC)
resist Resist (CC)
removal Removal (CC)
footer Description that is placed at the bottom of all other things.

All tip data templates use the same parameter.

Retrieval of data items

{{data Basic attack|pst2|interrupts}}, using parameter selection template Template:Pst2, gives the parameter interrupts, etc.

For retrieval of more data items it is more efficient to prepare a template for that, to be used as follows:

{{data Basic attack|template name|..|..|..|..}}

so that this data template needs to be called only once.[1] The default template is Template:Tip data, producing this page.

The four parameters are optional, they are passed on to the prepared template as parameters 2-5.

A parameter being undefined or empty typically means the same, see below. {{data ..|pst2|..}} gives the empty string and the text "{{{..}}}", respectively. Therefore, an application checking the parameter has to check both. Checking whether a result is equal to e.g. the text "{{{popinc}}}" cannot be done directly with #ifeq in a template which itself has also a parameter with that name, because if that is defined, there would be a comparison with the value instead of the text itself. Instead, it can be checked whether the first character of the result is "{", e.g.: {{#ifeq:{{padleft:|1|{{data {{{continent}}}|pst2|popinc}}}}|{|..|..}}. Until here the documentation is automatically generated by Template:Tip data.

References

  1. See the first two rows of the first table in m:Help:Array#Summary of counts for template limits.
Community content is available under CC-BY-SA unless otherwise noted.