Template:SkillCode: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(updated to 3.0, more or less)
(Fixed typo with outfitting)
 
(22 intermediate revisions by 6 users not shown)
Line 6: Line 6:
|heavy plate|hp|plate armor=Plate Armor
|heavy plate|hp|plate armor=Plate Armor
|defense|def=Defense
|defense|def=Defense
|defending|multi|multi-opponent|multi opponent|mo=Defending
|conviction|conv=Conviction
|parry|parry ability|pa=Parry Ability
|parry|parry ability|pa=Parry Ability
|multi|multi-opponent|multi opponent|mo=Multi Opponent
|offhand|offhand weapon|ow=Offhand Weapon
|offhand|offhand weapon|ow=Offhand Weapon
|light edge|light edged|le=Light Edged
|light edge|light edged=Light Edged
|le={{#switch:{{{t}}}|s=Large Edged|Light Edged}}
|medium edge|medium edged|me=Medium Edged
|medium edge|medium edged|me=Medium Edged
|small edge|small edged|se=Small Edged
|small edge|small edged|se=Small Edged
Line 16: Line 18:
|light blunt|lb=Light Blunt
|light blunt|lb=Light Blunt
|medium blunt|mb=Medium Blunt
|medium blunt|mb=Medium Blunt
|small blunt|sb=Small Blunt
|small blunt=Small Blunt
|sb={{#switch:{{{t}}}|s=Small Blunt|Short Bow}}
|heavy blunt|large blunt|hb=Heavy Blunt
|heavy blunt|large blunt|hb=Heavy Blunt
|twohanded blunt|2handed blunt|thb|2hb=Twohanded Blunt
|twohanded blunt|2handed blunt|thb|2hb=Twohanded Blunt
|sling|slings|sl|staff slings|staff sling|sts=Slings
|sling|slings|sl|staff slings|staff sling|sts=Slings
|short bow|sb|long bow|longbow|lob|composite bow|cb|bow=Bow
|short bow|shb=Short Bow
|long bow|longbow|lob={{#switch:{{{t}}}|s=Bow|Long Bow}}
|light crossbow|light xbow|lx|heavy crossbow|heavy xbow|hx|xb=Crossbow
|composite bow|cb={{#switch:{{{t}}}|s=Bow|Composite Bow}}
|short staff|ss=Short Staff
|bow=Bow
|quarter staff|qs=Quarter Staff
|light crossbow|light xbow|lx={{#switch:{{{t}}}|s=Crossbow|Light Crossbow}}
|staff|st=Staves
|heavy crossbow|heavy xbow|hx={{#switch:{{{t}}}|s=Crossbow|Heavy Crossbow}}
|Crossbow|xb=Crossbow
|short staff|ss={{#switch:{{{t}}}|s=Staves|Short Staff}}
|quarter staff|qs={{#switch:{{{t}}}|s=Staves|Quarter Staff}}
|staff|staves|st=Staves
|pike|pikes|pi|halberds|halberd|hal|pl=Polearms
|pike|pikes|pi|halberds|halberd|hal|pl=Polearms
|light thrown|lt=Light Thrown
|light thrown|lt=Light Thrown
Line 30: Line 38:
|brawling|brawl|br=Brawling
|brawling|brawl|br=Brawling
|melee mastery|mem=Melee Mastery
|melee mastery|mem=Melee Mastery
|missile mastery|mim=Missle Mastery
|missile mastery|mim=Missile Mastery
|lunar magic|holy magic|life magic|elemental magic|inner magic|inner fire|primary magic|pm=Primary Magic
|lunar magic|holy magic|life magic|elemental magic|inner magic|inner fire|primary magic|pm=Primary Magic
|harness|harness ability|ha|power perceive|power perception|pp|attunemnet=Attunement
|harness|harness ability|ha|power perceive|power perception|pp|attunement=Attunement
|magic devices|magical devices|md|arcana|ar=Arcana
|magic devices|magical devices|md|arcana|ar=Arcana
|targeted magic|tm=Targeted Magic
|targeted magic|tm=Targeted Magic
|augmentation|aug=Augmentation
|debilitation|deb|debil=Debilitation
|utility|util=Utility
|warding|ward=Warding
|sorcery|sorc=Sorcery
|evasion|ev=Evasion
|evasion|ev=Evasion
|climb|climbing|cl|swim|swimming|sw|escape|escaping|es|athletics|ath=Athletics
|climb|climbing|cl|swim|swimming|sw|escape|escaping|es|athletics|ath=Athletics
Line 40: Line 53:
|scouting|tracking|sc=Scouting
|scouting|tracking|sc=Scouting
|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|locksmithing|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
Line 47: Line 60:
|skin|skinning|sk=Skinning
|skin|skinning|sk=Skinning
|scholarship|teach|teaching|te|sch=Scholarship
|scholarship|teach|teaching|te|sch=Scholarship
|mech lore|mechanical lore|ml=Mechanical Lore
|mech lore|mechanical lore|ml|engineer|engineering|eng=Engineering
|musical theory|mt=Musical Theory
|bardic lore|bl|musical theory|mt=Bardic Lore
|appraise|appraisal|ap=Appraisal
|appraise|appraisal|ap=Appraisal
|tactics|tac=Tactics
|tactics|tac=Tactics
|enchanting|enc=Enchanting
|enchanting|enc=Enchanting
|outfiting|oft=Outfitting
|outfitting|oft=Outfitting
|forging|for=Forging
|forging|for=Forging
|engineering|eng=Engineering
|alchemy|alc=Alchemy
|alchemy|alc=Alchemy
|trading|tr=Trading
|trading|tr=Trading
|percussion|percussions|pcn|string|strings|str|wind|winds|wi|vocal|vocals|vo=Performance
|percussion|percussions|pcn|string|strings|str|wind|winds|wi|vocal|vocals|vo|performance=Performance
|empathy|transference|em=Empathy
|empathy|transference|em=Empathy
|thanatology|than|th=Thanatology
|astrology|as=Astrology
|astrology|as=Astrology
|neutral plate|np={{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}|}}
|neutral plate|np={{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}|}}
Line 64: Line 77:
|medium shield|msh={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Medium 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}}
|large shield|lsh={{#Ifeq:{{lc:{{{disableadd}}}}}|n|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}}}|Large Shield}}
|rock=Rock
|arrow=Arrow
|bolt=Bolt
|dart=Dart
|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}
|{{#If:{{{error}}}|{{#If:{{{error|}}}|{{{error}}}|SKILLCODE ERROR}}
|#default=}}}}</includeonly><noinclude>
|#default=}}}}</includeonly><noinclude>
Line 71: Line 88:
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 <nowiki>|disableadd=n</nowiki> to the variable list.
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 <nowiki>|disableadd=n</nowiki> 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.
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 the code for neutral plate is added, as it no longer exists, it will spit out an error code.
Line 84: Line 101:


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

Latest revision as of 12:30, 21 February 2022

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=