WoW:API GetSpellLink: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__


<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Get chat-link for a spell.
Get chat-link for a spell.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  link = GetSpellLink(spellId or spellName)
  link = GetSpellLink(spellId or spellName)




== Arguments ==
== Arguments ==
<!-- List each argument, together with its type -->
(spellId/spellName, spellRank)
(spellId/spellName, spellRank)
:;spellId : Integer - The global spell number, found on wowhead or through [[API_COMBAT_LOG_EVENT|COMBAT_LOG_EVENT]].
:;spellId : Integer - The global spell number, found on wowhead or through [[API_COMBAT_LOG_EVENT|COMBAT_LOG_EVENT]].
Line 18: Line 15:


== Returns ==
== Returns ==
<!-- List each return value, together with its type -->
:;link: String - A link to the spell
 
:;TradeSkillLink: String - A link to the tradeskill if available, otherwise nil. (3.0.1+)
:;link: String - A link to the spell, can be outputed directly though AddMessage()


== Details ==
== Details ==
Anonymous user