Template:SkillCode: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{uc:{{{1}}}}}|PA=Parry Ability|MO=Multi Opponent|OW=Offhand Weapon|LE=Light Edged|ME=Medium Edged|HE=Heavy Edged|2HE=Twohanded Edged|LB=Light Blunt|MB=Medium Blunt|HB=Heavy Blunt|2HB=Twohanded Blunt|SL=Slings|STS=Staff Sling|SB=Short Bow|LOB=Long Bow|CB=Composite Bow|LX=Light Crossbow|HX=Heavy Crossbow|SS=Short Staff|QS=Quarter Staff|PI=Pikes|HAL=Halberds|LT=Light Thrown|HT=Heavy Thrown|BR=Brawling|SU=Shield Usage|LA=Leather Armor|CA=Cloth Armor|LC=Light Chain|HC=Heavy Chain|LP=Light Plate|HP=Heavy Plate|BA=Bone Armor|PM=Primary Magic|HA=Harness Ability|PP=Power Perception|MD=Magical Devices|TM=Targeted Magic|EV=Evasion|CL=Climbing|PE=Perception|SC=Scouting|HI=Hiding|LO=Lockpicking|DT=Disarm Traps|STA=Stalking|STE=Stealing|FA=First Aid|FO=Foraging|ES=Escaping|BS=Backstab|SK=Skinning|SW=Swimming|SCH=Scholarship|ML=Mechanical Lore|MT=Musical Theory|AP=Appraisal|TE=Teaching|TR=Trading|AL=Animal Lore|PCN=Percussions|STR=Strings|WI=Winds|VO=Vocals|EM=Empathy|AS=Astrology|NC={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Neutral Chain}}|NP={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Neutral Plate}}|SSH={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Small Shield}}|MSH={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Medium Shield}}|LSH={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Large Shield}}|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}|#default=}}}}</includeonly><noinclude>
<includeonly>{{#switch:{{lc:{{{1}}}}}|parry|parry ability|pa=Parry Ability|multi|multi-opponent|multi opponent|mo=Multi Opponent|offhand|offhand weapon|ow=Offhand Weapon|light edge|light edged|le=Light Edged|medium edge|medium edged|me=Medium Edged|heavy edge|heavy edged|he=Heavy Edged|2handed edge|2handed edged|twohanded edge|twohanded edged|the|2he=Twohanded Edged|light blunt|lb=Light Blunt|medium blunt|mb=Medium Blunt|heavy blunt|large blunt|hb=Heavy Blunt|twohanded blunt|2handed blunt|thb|2hb=Twohanded Blunt|sling|slings|sl=Slings|staff slings|staff sling|sts=Staff Sling|short bow|sb=Short Bow|long bow|longbow|lob=Long Bow|composite bow|cb=Composite Bow|light crossbow|light xbow|lx=Light Crossbow|heavy crossbow|heavy xbow|hx=Heavy Crossbow|short staff|ss=Short Staff|quarter staff|staff|qs=Quarter Staff|pike|pikes|pi=Pikes|halberds|halberd|hal=Halberds|light thrown|lt=Light Thrown|heavy thrown|ht=Heavy Thrown|brawling|brawl|br=Brawling|shield|shield usage|su=Shield Usage|leather armor|leather|la=Leather Armor|cloth armor|cloth|ca=Cloth Armor|light chain|lc=Light Chain|heavy chain| hc=Heavy Chain|light plate|lp=Light Plate|heavy plate|hp=Heavy Plate|bone armor|bone|ba=Bone Armor|primary magic|pm=Primary Magic|harness|harness ability|ha=Harness Ability|power perception|pp=Power Perception|magic devices|magical devices|md=Magical Devices|targeted magic|tm=Targeted Magic|evasion|ev=Evasion|climb|climbing|cl=Climbing|perception|pe=Perception|scouting|tracking|sc=Scouting|hiding|hi=Hiding|lockpicking|lo=Lockpicking|disarm|disarm traps|dt=Disarm Traps|stalking|sta=Stalking|steal|stealing|ste=Stealing|first aid|fa=First Aid|forage|foraging|fo=Foraging|escape|escaping|es=Escaping|backstab|back stab|backstabbing|back stabbing|bs=Backstab|skin|skinning|sk=Skinning|swim|swimming|sw=Swimming|scholarship|sch=Scholarship|mech lore|mechanical lore|ml=Mechanical Lore|musical theory|mt=Musical Theory|appraise|appraisal|ap=Appraisal|teach|teaching|te=Teaching|trading|tr=Trading|animal lore|al=Animal Lore|percussion|percussions|pcn=Percussions|string|strings|str=Strings|wind|winds|wi=Winds|vocal|vocals|vo=Vocals|empathy|transference|em=Empathy|astrology|as=Astrology|neutral chain|nc={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Neutral Chain}}|neutral plate|np={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Neutral Plate}}|small shield|ssh={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Small Shield}}|medium shield|msh={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Medium Shield}}|large shield|lsh={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Large Shield}}|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}|#default=}}}}</includeonly><noinclude>
==Usage Documentation==
==Usage Documentation==
This template will take the skillcodes associated with [[Experience command|<tt>EXP SKILL</tt>]] and convert them to their skills. Because EXP currently lacks a code for [[Staff Sling skill|staff sling]], use StS.
This template will take the skillcodes associated with {{com|experience}} and convert them to their skills. Because EXP currently lacks a code for [[Staff Sling skill|staff sling]], use StS.


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>|disableadd=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>|disableadd=n</nowiki> to the variable list.

Revision as of 17:41, 14 June 2008

Usage Documentation

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

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 |disableadd=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:
|disableadd=
|error=