Template:SkillCode: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (added stealth code)
(attempted update to new skill codes)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}
<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|staff slings|staff sling|sts=Slings|short bow|sb|long bow|longbow|lob|composite bow|cb|bow=Bow|light crossbow|light xbow|lx|heavy crossbow|heavy xbow|hx|xb=Crossbow|short staff|ss=Short Staff|quarter staff|qs=Quarter Staff|staff=Staves|pike|pikes|pi|halberds|halberd|hal|pl=Polearms|light thrown|lt=Light Thrown|heavy thrown|ht=Heavy Thrown|brawling|brawl|br=Brawling|shield|shield usage|su=Shield Usage|leather armor|leather|la|cloth armor|cloth|ca|bone armor|bone|ba|light armor=Light Armor|light chain|lc|nc|neutral chain|heavy chain|hc|chain armor=Chain Armor|light plate|lp|brigandine=Brigandine|heavy plate|hp|plate armor=Plate Armor|primary magic|pm=Primary Magic|harness|harness ability|ha|power perceive|power perception|pp|attunemnet=Attunement|magic devices|magical devices|Magical Devices|md|arcana|ar=Arcana|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
|shield|shield usage|su=Shield Usage|leather armor|leather|la|cloth armor|cloth|ca|bone armor|bone|ba|light armor=Light Armor|light chain|lc|nc|neutral chain|heavy chain|hc|chain armor=Chain Armor|light plate|lp|brigandine=Brigandine|heavy plate|hp|plate armor=Plate Armor|defense|def=Defense|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|small edge|small edged|se=Small 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|small blunt|sb=Small Blunt|heavy blunt|large blunt|hb=Heavy Blunt|twohanded blunt|2handed blunt|thb|2hb=Twohanded Blunt|sling|slings|sl|staff slings|staff sling|sts=Slings
|disarm|disarm traps|dt=Disarm Traps|stalking|sta=Stalking|stealth|sth=Stealth|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 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>
|short bow|sb|long bow|longbow|lob|composite bow|cb|bow=Bow|light crossbow|light xbow|lx|heavy crossbow|heavy xbow|hx|xb=Crossbow|short staff|ss=Short Staff|quarter staff|qs=Quarter Staff|staff|st=Staves|pike|pikes|pi|halberds|halberd|hal|pl=Polearms|light thrown|lt=Light Thrown|heavy thrown|ht=Heavy Thrown|brawling|brawl|br=Brawling|mem=Melee Mastery|mim=Missle Mastery|primary magic|pm=Primary Magic|harness|harness ability|ha|power perceive|power perception|pp|attunemnet=Attunement|magic devices|magical devices|Magical Devices|md|arcana|ar=Arcana|targeted magic|tm=Targeted Magic|evasion|ev=Evasion|climb|climbing|cl|swim|swimming|sw|escape|escaping|es|athletics|ath=Athletics|perception|pe=Perception|scouting|tracking|sc=Scouting|hiding|hi|stalking|sta|stealth|sth=Stealth|disarm|disarm traps|dt|lockpicking|lo=Locksmithing|steal|stealing|ste|thv=Thievery|first aid|fa=First Aid|forage|foraging|fo|animal lore|al|outdoorsmanship|out=Outdoorsmanship|backstab|back stab|backstabbing|back stabbing|bs=Backstab|skin|skinning|sk=Skinning|scholarship|teach|teaching|te|sch=Scholarship|mech lore|mechanical lore|ml=Mechanical Lore|musical theory|mt=Musical Theory|appraise|appraisal|ap=Appraisal|tactics|tac=Tactics|enchanting|enc=Enchanting|outfiting|oft=Outfitting|forging|for=Forging|engineering|eng=Engineering|alchemy|alc=Alchemy|trading|tr=Trading|percussion|percussions|pcn=Percussions|string|strings|str=Strings|wind|winds|wi=Winds|vocal|vocals|vo=Vocals|empathy|transference|em=Empathy|astrology|as=Astrology|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==
{{UpdateDR3}}
{{UpdateDR3}}

Revision as of 13:35, 1 July 2013

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=