Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API TYPE enchantLink
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapitype}} An 'enchantLink' link string type for enchants and recipes. == Details == Enchant links are returned by several functions, like {{api|GetCraftItemLink}}() and others. In essence, they are {{api|enchantString|t=t}}s with additional formatting to make in-game text controls display them as clickable hyperlinks. The same as {{api|itemString|t=t}}s are with {{api|itemLink|t=t}}s. |cffffffff|Henchant:20024|h[Enchant Boots - Spirit]|h|r Broken up in its components: * <tt>"'''|cffffffff'''"</tt> – Colorizes the link with a white color (Enchant Boots - Spirit is a trainer recipe) ** The first two characters after pipe-c may be the alpha level, where <code>ff</code> is fully opaque. ** 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>"'''enchant:20024'''"</tt> – Read more at {{api|enchantString|t=t}}. * <tt>"'''|h'''"</tt> – "End of link, text follows" * <tt>"'''[Enchant Boots - Spirit]'''"</tt> – The actual text displayed * <tt>"'''|h'''"</tt> – "End of hyperlink" * <tt>"'''|r'''"</tt> – Restores color to normal You can extract the enchantString from a given enchantLink with the following LUA-code: local found, _, enchantString = string.find(enchantLink, "^|%x+|H(.+)|h%[.+%]") EnchantLinks are also used in profession/craft links; for example: |cffffffff|Henchant:44157|h[Engineering: Turbo-Charged Flying Machine]|h|r where 44157 is the spellId used to create the product of crafting.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Wowapi
(
edit
)
Template:Wowapitype
(
edit
)