Difference between revisions of "Template:Infobox Ability"

From Idlescape Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
| title          = {{{title|{{PAGENAME}}}}}
 
| title          = {{{title|{{PAGENAME}}}}}
 
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
 
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
|  label1  = {{{img|Book|}}}
+
|  label1  = {{{img|Source|}}}
 
|  data1  = {{{book|}}}
 
|  data1  = {{{book|}}}
 
|  label2  = Attack Style
 
|  label2  = Attack Style

Revision as of 19:54, 18 May 2023

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.