Difference between revisions of "Template:EnemyAttributes/doc"

From Stoneshard wiki
Jump to navigation Jump to search
(Created page with "{{Doc/start}} This template can be used to return an Enemy's attributes. It loads a given enemy's data from the respective Enemy data page and returns the selected attribute value. Template requires at least one parameter - the attribute to return. *STR *AGL *PRC *VIT *WIL If you don't specify an attribute (or input something else), the template will always return zero. Examples: ==Enemy Pages== <nowiki> {{EnemyAttributes|AGL}}</nowiki> On Ringleader_(...")
 
 
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
This template can be used to return an [[Enemy]]'s attributes. It loads a given enemy's data from the respective [[Enemy data]] page and returns the selected attribute value.
This template can be used to return an [[Enemies|Enemy]]'s attributes. It loads a given enemy's data from the respective [[Enemy data]] page and returns the selected attribute value.


Template requires at least one parameter - the attribute to return.  
Template requires at least one parameter - the attribute to return.  

Latest revision as of 12:11, 17 July 2023

Template-info.png Documentation

This template can be used to return an Enemy's attributes. It loads a given enemy's data from the respective Enemy data page and returns the selected attribute value.

Template requires at least one parameter - the attribute to return.

  • STR
  • AGL
  • PRC
  • VIT
  • WIL

If you don't specify an attribute (or input something else), the template will always return zero.

Examples:

Enemy Pages

{{EnemyAttributes|AGL}}

On Ringleader_(Sword) page, returns the Agility of the Ringleader.

Outside of Enemy Pages

If you are on a wikipage that isn't an enemy page, the template also returns zero.

{{EnemyAttributes|AGL}}

0

You can specify a wikipage name of an enemy to load attributes from that enemy, for example:

{{EnemyAttributes|AGL|Ringleader (Sword)}}

This will return the Agility of Ringleader_(Sword).

20