API GetTradeSkillLine

Returns information about the current tradeskill.
 tradeskillName, currentLevel, maxLevel, skillLineModifier = GetTradeSkillLine()
==Returns==
:;tradeskillName: - Name of the current tradeskill
:;currentLevel: - Current skill level in the current tradeskill
:;maxLevel: - Current maximum skill level for the current tradeskill (based on Journeyman, Expert etc.)
:;skillLineModifier: - Skill modifier from racial abilities etc.
==Details==
This function returns information about the current tradeskill, which is the one currently visible in the Trade Skill frame. If the Trade Skill frame isn't open then 'UNKNOWN' is returned for 'tradeSkillName' and zero for all other values.
Based on use of the function in Blizzard's code, 'tradeSkillName' appears to be a localized name for the tradeskill.