Difference between revisions of "Template:Infobox Ability"

From Idlescape Wiki
Jump to navigation Jump to search
(Updated infobox to singular ability)
(9 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|}}}
|  data1  = {{{book|}}}
+
|  data1  = {{{source|}}}
 
|  label2  = Attack Style
 
|  label2  = Attack Style
 
|  data2  = {{{atk-type|}}}
 
|  data2  = {{{atk-type|}}}
Line 26: Line 26:
 
|  label11 = Target
 
|  label11 = Target
 
|  data11 = {{{target|}}}
 
|  data11 = {{{target|}}}
| header20 = Damage changes
 
 
|  label21 = Self buff
 
|  label21 = Self buff
 
|  data21 = {{{self-buff|}}}
 
|  data21 = {{{self-buff|}}}
Line 46: 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.