Difference between revisions of "Template:Infobox Ability"

From Idlescape Wiki
Jump to navigation Jump to search
(Updated infobox to singular ability)
(21 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="{{{image}}}" height="auto" width="130">|{{img|{{PAGENAME}}|130}}}}
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="130">|{{#if: {{{title|}}}|{{img|{{{title}}}|130}}|{{img|{{PAGENAME}}|130}}}}}}
  
|  label1  = {{{img|Book|}}}
+
|  label1  = {{{img|Source|}}}
|  data1  = {{{book|}}}
+
|  data1  = {{{source|}}}
 
|  label2  = Attack Style
 
|  label2  = Attack Style
 
|  data2  = {{{atk-type|}}}
 
|  data2  = {{{atk-type|}}}
|  label3  = Attack Speed
+
|  label3 = Ammo
data3 = {{{atk-speed|}}} x weapon attack speed
+
|  data3  = {{{ammo1|}}}
label4 = cooldown
+
|  label4  = Ammo
data4 = {{{cooldown|}}}
+
|  data4  = {{{ammo2|}}}
label5 = Target
+
|  label5  = Ammo
|   data5 = {{{target|}}}
+
|  data5  = {{{ammo3|}}}
| header20 = Damage changes
+
|  label6  = Ammo
|  label21 = Buff
+
|  data6  = {{{ammo4|}}}
|  data21 = {{{buff|}}}
+
|  label7 = Attack Speed
|  label22  = Minimum Damage
+
data7 = {{{atk-speed|}}} x weapon attack speed
data22  = {{{minimum-damage|}}}
+
label8  = Cooldown
label23 = Maximum Damage
+
data8 = {{{cooldown|}}}
data23 = {{{maximum-damage|}}}
+
|   label9 = Max targets
 +
|  data9 = {{{max-targets|}}}
 +
| label10 = AOE
 +
| data10 = {{{aoe-diminishing|}}}
 +
| label11 = Target
 +
|  data11 = {{{target|}}}
 +
|  label21 = Self buff
 +
|  data21 = {{{self-buff|}}}
 +
|  label22 = Target buff
 +
|  data22 = {{{target-buff|}}}
 +
| label25 = Minimum Damage
 +
data25 = {{{minimum-damage|}}}
 +
label26 = Maximum Damage
 +
data26 = {{{maximum-damage|}}}
 
| header40 = Stats
 
| header40 = Stats
 
|  label41 =  
 
|  label41 =  
Line 32: Line 45:
 
|  label45 =  
 
|  label45 =  
 
|  data45 = <div style="display: flex;"><div style="flex: 1; text-align: left;">{{{damage-stat4|}}}</div><div style="flex: 1; text-align: right;">{{{accuracy-stat4|}}}</div></div>
 
|  data45 = <div style="display: flex;"><div style="flex: 1; text-align: left;">{{{damage-stat4|}}}</div><div style="flex: 1; text-align: right;">{{{accuracy-stat4|}}}</div></div>
 +
| header50 = Description
 +
|  label51 =
 +
|  data51 = {{{description|}}}
 
|  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.