WoW:ItemLink: Difference between revisions

160 bytes added ,  15 December 2006
m
Added LUA code to extract the itemString
(added color theory)
m (Added LUA code to extract the itemString)
Line 20: Line 20:
* <tt>"'''|h'''"</tt> &ndash; "End of hyperlink"
* <tt>"'''|h'''"</tt> &ndash; "End of hyperlink"
* <tt>"'''|r'''"</tt> &ndash; Restores color to normal
* <tt>"'''|r'''"</tt> &ndash; Restores color to normal
You can extract the itemString from a given itemLink with the following LUA-code:
local found, _, itemString = string.find(itemLink, "^|%x+|H(.+)|h%[.+%]")


== Printing links for debug ==
== Printing links for debug ==
Anonymous user