Flickering19966@legacy41540688 (talk | contribs) m (Added category link) |
mNo edit summary |
||
(34 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} __NOTOC__ |
||
− | <center>'''Title''' ''-Documentation by [[user:Author|Author]]-''</center> |
||
⚫ | |||
− | |||
+ | One line summary description of function. |
||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> |
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | Description of function. |
||
− | |||
− | ---- |
||
⚫ | |||
− | |||
<!-- List each argument, together with its type --> |
<!-- List each argument, together with its type --> |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | :("arg1", arg2) |
||
+ | :isTrue, retVal1, retVal2 <!-- Include this line ONLY IF there are multiple return values and a large number of arguments --> |
||
⚫ | |||
⚫ | |||
− | |||
− | ---- |
||
⚫ | |||
− | |||
<!-- List each return value, together with its type --> |
<!-- List each return value, together with its type --> |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | == Triggers Events == |
||
− | :isTrue, retVal1, retVal2 |
||
+ | <!-- If this function triggers an event, name it here. If not, remove the entire section. --> |
||
⚫ | |||
+ | * {{api|t=e|WHO_LIST_UPDATE}}, when your query has finished processing on the server and new "Who" information is available |
||
⚫ | |||
⚫ | |||
− | |||
− | ---- |
||
⚫ | |||
⚫ | |||
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> |
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
+ | c = "hi hi hi" |
||
⚫ | |||
− | |||
− | hi |
||
⚫ | |||
⚫ | |||
− | |||
− | ---- |
||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | ---- |
||
⚫ | |||
− | {{Template:WoW API}} |
||
+ | REMOVE the section if you're just going to restate the intro line! --> |
||
− | [[Category:API Functions]] |
||
⚫ | |||
+ | <noinclude>[[ru:Справка:Статьи о функциях API/Предварительная загрузка]]</noinclude> |
Revision as of 11:39, 9 June 2010
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
One line summary description of function.
isTrue, retVal1, retVal2 = func("arg1", arg2, ...)
Arguments
- 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.
ru:Справка:Статьи о функциях API/Предварительная загрузка