Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Boilerplate:API Function

From WoW Classic Wiki


One line summary description of function. Template:Code/Begin isTrue, retVal1, retVal2 = func("arg1", arg2, ...) Template:Code/End


Parameters

Arguments

("arg1", arg2)
arg1
String - description
arg2
Table - description


Returns

isTrue, retVal1, retVal2
isTrue
Boolean - is it true
retVal1
String - is it true
retVal2
Number - is it true


Triggers Events

  • "WHO_LIST_UPDATE", when your query has finished processing on the server and new "Who" information is available


Example

local a, b, c = func("hi", {1,2,3} )

Result

a = "hi "
b = "hi hi"
c = "hi hi hi"


Details

Does something particularly detailed.