Template:SkillCode: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Finished)
m (Updated usage a bit.)
Line 10: Line 10:
In addition, to assist with armor type processing, it will return NC and NP as Neutal Chain and Neutral Plate, and SSH, MSH or LSH as Small Shield, Medium Shield, or Large Shield. To disable this, add <nowiki>|type=n</nowiki> to the variable list.
In addition, to assist with armor type processing, it will return NC and NP as Neutal Chain and Neutral Plate, and SSH, MSH or LSH as Small Shield, Medium Shield, or Large Shield. To disable this, add <nowiki>|type=n</nowiki> to the variable list.


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


<b>Note</b>: All variable contents will be handled on case insensitive basis.
<b>Note</b>: All variable contents will be handled on case insensitive basis.

Revision as of 20:31, 26 May 2008


Usage Documentation

This template will take the skillcodes associated with EXP SKILL and convert them to their skills. Because EXP currently lacks a code for staff sling, use StS.

If |skillset= is defined and not whitespace, the template will only check the given skillset, if it is valid.

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

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:
|type=n
|skillset=
|error=