API C TradeSkillUI.GetTradeSkillLine

Returns information about the currently-open tradeskill in the trade skill frame, or nil if the frame is closed. skillLineID, skillLineDisplayName, skillLineRank, skillLineMaxRank, skillLineModifier, parentSkillLineID, parentSkillLineDisplayName = C_TradeSkillUI.GetTradeSkillLine

Returns

 * skillLineID : number (TradeSkillLineID) - The ID of the tradeskill
 * skillLineDisplayName : string - The localized name of the tradeskill
 * skillLineRank : number - The current skill level of the tradeskill
 * skillLineMaxRank : number - The max skill level of the tradeskill
 * skillLineModifier : number - Modifiers to the tradeskill rank (such as +mining, +cooking, etc)
 * parentSkillLineID : number (TradeSkillLineID, nilable) - The ID of the parent tradeskill, such as Alchemy if this skill is Legion Alchemy
 * parentSkillLineDisplayName : string (nilable) - The localized name of the parent tradeskill