Template:SkillCode: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added support for darts)
No edit summary
Line 48: Line 48:
|hiding|hi|stalking|sta|stealth|sth=Stealth
|hiding|hi|stalking|sta|stealth|sth=Stealth
|disarm|disarm traps|dt|lockpicking|lo=Locksmithing
|disarm|disarm traps|dt|lockpicking|lo=Locksmithing
|steal|stealing|ste|thv=Thievery
|steal|stealing|ste|thievery|thv=Thievery
|first aid|fa=First Aid
|first aid|fa=First Aid
|forage|foraging|fo|animal lore|al|outdoorsmanship|out=Outdoorsmanship
|forage|foraging|fo|animal lore|al|outdoorsmanship|out=Outdoorsmanship

Revision as of 18:31, 9 July 2020

Usage Documentation

This template will take the skillcodes associated with EXPERIENCE and convert them to their skills.

In addition, to assist with armor type processing, it will return and SSH, MSH or LSH as Small Shield, Medium Shield, or Large Shield. To disable this, add |disableadd=n to the variable list.

In the case of most items, the 2.0 codes will be returned as the 3.0 codes, with the exception of the weapons which still have size restrictions, such as Medium/Light edges for offhand and backstabbing. If "t=" is set to "s" then it will return the skill used for the weapon, while otherwise it will return the weapon type.

If the code for neutral plate is added, as it no longer exists, it will spit out an error code.

If there are no matches, this template will return SKILLCODE ERROR, unless the variable |error= is included. If error is set to empty or to whitespace, nothing will be returned on error, otherwise the given string will be returned.

Note: All variable contents will be handled on case insensitive basis.

Syntax

{{SkillCode|code}}

Additional options are:
|t=
|disableadd=
|error=