no edit summary
m (Added LUA code to extract the itemString) |
No edit summary |
||
| Line 3: | Line 3: | ||
== itemLink API Type (String) == | == itemLink API Type (String) == | ||
itemLinks are returned by several functions, e.g. [[API GetAuctionItemLink|GetAuctionItemLink]](), [[API GetContainerItemLink | itemLinks are returned by several functions, e.g. [[API GetAuctionItemLink|GetAuctionItemLink]](), [[API GetContainerItemLink|GetContainerItemLink]](), [[API GetInventoryItemLink|GetInventoryItemLink]](), etc. | ||
In essence, they are [[itemString]]s with additional formatting to make in-game text controls display them as clickable hyperlinks. | In essence, they are [[itemString]]s with additional formatting to make in-game text controls display them as clickable hyperlinks. | ||
|cff9d9d9d|Hitem:7073:0:0:0|h[Broken Fang]|h|r | |cff9d9d9d|Hitem:7073:0:0:0:0:0:0:0|h[Broken Fang]|h|r | ||
Broken up in its components: | Broken up in its components: | ||
| Line 15: | Line 15: | ||
** The next three sets of two characters represent the red, green, and blue levels, just like HTML. | ** The next three sets of two characters represent the red, green, and blue levels, just like HTML. | ||
* <tt>"'''|H'''"</tt> – "Hyperlink link data starts here" | * <tt>"'''|H'''"</tt> – "Hyperlink link data starts here" | ||
* <tt>"'''item:7073:0:0:0'''"</tt> – Read more at [[itemString]]. | * <tt>"'''item:7073:0:0:0:0:0:0:0'''"</tt> – Read more at [[itemString]]. | ||
* <tt>"'''|h'''"</tt> – "End of link, text follows" | * <tt>"'''|h'''"</tt> – "End of link, text follows" | ||
* <tt>"'''[Broken Fang]'''"</tt> – The actual text displayed | * <tt>"'''[Broken Fang]'''"</tt> – The actual text displayed | ||