Difference between revisions of "Template:Infobox Ability"

From Idlescape Wiki
Jump to navigation Jump to search
(Updated infobox to singular ability)
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
| autoheaders    = y
 
| autoheaders    = y
 
| title          = {{{title|{{PAGENAME}}}}}
 
| title          = {{{title|{{PAGENAME}}}}}
|  image        = {{#if: {{{image|}}}|<img src="https://www.play.idlescape.com{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="130">|{{#if: {{{title|}}}|{{img|{{{title}}}|130}}|{{img|{{PAGENAME}}|130}}}}}}
  
 
|  label1  = {{{img|Source|}}}
 
|  label1  = {{{img|Source|}}}
Line 16: Line 16:
 
|  label6  = Ammo
 
|  label6  = Ammo
 
|  data6  = {{{ammo4|}}}
 
|  data6  = {{{ammo4|}}}
| header20 = Damage
+
| label7  = Attack Speed
 +
|  data7  = {{{atk-speed|}}} x weapon attack speed
 +
|  label8  = Cooldown
 +
|  data8  = {{{cooldown|}}}
 +
|  label9 = Max targets
 +
|  data9  = {{{max-targets|}}}
 +
|  label10 = AOE
 +
|  data10  = {{{aoe-diminishing|}}}
 +
|  label11 = Target
 +
|  data11 = {{{target|}}}
 
|  label21 = Self buff
 
|  label21 = Self buff
 
|  data21 = {{{self-buff|}}}
 
|  data21 = {{{self-buff|}}}
 
|  label22 = Target buff
 
|  label22 = Target buff
 
|  data22 = {{{target-buff|}}}
 
|  data22 = {{{target-buff|}}}
label23 = Minimum Damage
+
label25 = Minimum Damage
data23 = {{{minimum-damage|}}}
+
data25 = {{{minimum-damage|}}}
label24 = Maximum Damage
+
label26 = Maximum Damage
data24 = {{{maximum-damage|}}}
+
data26 = {{{maximum-damage|}}}
|  label25  = Attack Speed
 
|  data25  = {{{atk-speed|}}} x weapon attack speed
 
|  label26  = Cooldown
 
|  data26  = {{{cooldown|}}}
 
|  label27 = Max targets
 
|  data27  = {{{max-targets|}}}
 
|  label28 = AOE
 
|  data28  = {{{aoe-diminishing|}}}
 
|  label29 = Target
 
|  data29 = {{{target|}}}
 
 
| header40 = Stats
 
| header40 = Stats
 
|  label41 =  
 
|  label41 =  
Line 51: Line 50:
 
|  label60 = Note
 
|  label60 = Note
 
|  data60 = {{{note|}}}
 
|  data60 = {{{note|}}}
 
+
[[Category:Ability]]
 
}}</includeonly>
 
}}</includeonly>
 
<noinclude>{{Template:Infobox Ability/doc}}</noinclude>
 
<noinclude>{{Template:Infobox Ability/doc}}</noinclude>

Revision as of 19:04, 25 April 2025

Infobox Ability
Infobox Ability
Attack Speedx weapon attack speed
Stats
Damage
Accuracy

The template automatically creates an infobox for an ability.

Usage

The template takes optional parameters:

  • name, title The name of the ability to get data of. Defaults to the page name.
  • sources The additional sources of the ability, seperated by commas. The module automatically add sources found in Talents, Ability Books and Equipment.
  • item Item name. If given, creates a list of infoboxes for every ability granted by the item.

Example

Input

{{Infobox Ability|name=Bulwark}}
The same output is achieved by {{Infobox Ability}} if called from the page Bulwark.