WoW:API GetTradeSkillItemLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Move page script moved page API GetTradeSkillItemLink to API GetTradeSkillItemLink without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<center>'''GetTradeSkillItemLink''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Gets the link string for a trade skill item.
Gets the link string for a trade skill item.
Line 8: Line 8:
:(skillId)
:(skillId)


:;skillId : Integer - The Id specifying which trade skill's link to get.  Trade Skill window must be open for this to work.  Indexes start at 1 which is the general catagory of the tradeskill, if you have selected a sub-group of trade skills then 1 will be the name of that sub-group.
:;skillId : Integer - The Id specifying which trade skill's link to get.  Trade Skill window must be open for this to work.  Indexes start at 1 which is the general category of the tradeskill, if you have selected a sub-group of trade skills then 1 will be the name of that sub-group.


Example:
Example:
Trade Blacksmithing: (window is open, all catagories shown)
Trade Blacksmithing: (window is open, all catagories shown)
<table>
 
<tr><td>Index</td><td>Name             </td></tr>
{|
<tr><td>1   </td><td>Daggers          </td></tr>
|-----
<tr><td>2   </td><td>Heatseeker        </td></tr>
| Index || Name            
<tr><td>3   </td><td>One-handed Swords </td></tr>
|-----
<tr><td>4   </td><td>Frostguard        </td></tr>
| 1 || Daggers           
</table>
|-----
| 2 || Heatseeker         
|-----
| 3 || One-handed Swords  
|-----
| 4 || Frostguard         
|}


Trade Blacksmithing: (window is open, only trade items are shown)
Trade Blacksmithing: (window is open, only trade items are shown)
<table>
 
<tr><td>Index</td><td>Name                     </td></tr>
{|
<tr><td>1   </td><td>Trade Items              </td></tr>
|-----
<tr><td>2   </td><td>Elemental Sharpening Stone</td></tr>
| Index || Name                    
<tr><td>3   </td><td>Thorium Shield Spike      </td></tr>
|-----
</table>
| 1 || Trade Items               
|-----
| 2 || Elemental Sharpening Stone
|-----
| 3 || Thorium Shield Spike       
|}


=== Returns ===
=== Returns ===
Line 32: Line 43:


:;link : String - An item link string (color coded with href) which can be included in chat messages to represent the item which the trade skill creates.
:;link : String - An item link string (color coded with href) which can be included in chat messages to represent the item which the trade skill creates.
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|GetTradeSkillItemLink]]
[[Category:API Item Functions|GetTradeSkillItemLink]]
[[Category:API TradeSkill Functions|GetTradeSkillItemLink]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetTradeSkillItemLink

Gets the link string for a trade skill item.

link = GetTradeSkillItemLink(skillId)

Parameters[edit]

Arguments[edit]

(skillId)
skillId
Integer - The Id specifying which trade skill's link to get. Trade Skill window must be open for this to work. Indexes start at 1 which is the general category of the tradeskill, if you have selected a sub-group of trade skills then 1 will be the name of that sub-group.

Example: Trade Blacksmithing: (window is open, all catagories shown)

Index Name
1 Daggers
2 Heatseeker
3 One-handed Swords
4 Frostguard

Trade Blacksmithing: (window is open, only trade items are shown)

Index Name
1 Trade Items
2 Elemental Sharpening Stone
3 Thorium Shield Spike

Returns[edit]

link
link
String - An item link string (color coded with href) which can be included in chat messages to represent the item which the trade skill creates.