WoW:API SetItemRef: Difference between revisions

Added link for ItemLink and fixed itemstrings in examples for wow 2.0
(→‎Notes: Wikify table and make it actually readable)
(Added link for ItemLink and fixed itemstrings in examples for wow 2.0)
Line 3: Line 3:
<center>'''SetItemRef''' ''-Documentation by [[user:Deathshadow|Deathshadow]]-''</center>
<center>'''SetItemRef''' ''-Documentation by [[user:Deathshadow|Deathshadow]]-''</center>


Handles Links in Chat, orginally just Itemlinks but now also handles PlayerLinks.
Handles Links in Chat, originally just [[ItemLink]]s but now also handles PlayerLinks.
  SetItemRef(link, text, button);
  SetItemRef(link, text, button);


== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
:;link : String - Link to Use, (eg 'item:3577:0:0:276308480' is a [Gold Bar], 'player:Kaso' is [Kaso]).
:;link : String - Link to Use, (eg 'item:3577:0:0:0:0:0:0:276308480' is a [Gold Bar], 'player:Kaso' is [Kaso]).
:;text : String - The Text of the link, including Text Colour Infomation and itemlinks (eg The previous two examples :  
:;text : String - The Text of the link, including Text Colour Infomation and itemlinks (eg The previous two examples :  
:::'|cff1eff00|Hitem:3577:0:0:276308480|h[Gold Bar]|h|r'
:::'|cff1eff00|Hitem:3577:0:0:0:0:0:0:276308480|h[Gold Bar]|h|r'
:::'|Hplayer:Kaso|h[Kaso]|h'
:::'|Hplayer:Kaso|h[Kaso]|h'


Anonymous user