WoW:ItemLink: Difference between revisions

15 bytes added ,  31 December 2006
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||GetContainerItemLink]](), [[API GetInventoryItemLink|GetInventoryItemLink]](), etc.
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> &ndash; "Hyperlink link data starts here"
* <tt>"'''|H'''"</tt> &ndash; "Hyperlink link data starts here"
* <tt>"'''item:7073:0:0:0'''"</tt> &ndash; Read more at [[itemString]].
* <tt>"'''item:7073:0:0:0:0:0:0:0'''"</tt> &ndash; Read more at [[itemString]].
* <tt>"'''|h'''"</tt> &ndash; "End of link, text follows"
* <tt>"'''|h'''"</tt> &ndash; "End of link, text follows"
* <tt>"'''[Broken Fang]'''"</tt> &ndash; The actual text displayed
* <tt>"'''[Broken Fang]'''"</tt> &ndash; The actual text displayed
Anonymous user