<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=AddOn_Studio_Wiki%3AAPI_notation_and_conventions</id>
	<title>AddOn Studio Wiki:API notation and conventions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=AddOn_Studio_Wiki%3AAPI_notation_and_conventions"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=AddOn_Studio_Wiki:API_notation_and_conventions&amp;action=history"/>
	<updated>2026-10-08T12:07:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=AddOn_Studio_Wiki:API_notation_and_conventions&amp;diff=4430&amp;oldid=prev</id>
		<title>Bear: Created page with &quot; == Links from World of Warcraft API et al ==  ==== Example API listing ==== * SetMapZoom(continentIndex[, zoneIndex]) &amp;nbsp; - Sets the current world m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=AddOn_Studio_Wiki:API_notation_and_conventions&amp;diff=4430&amp;oldid=prev"/>
		<updated>2020-05-15T01:51:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Links from &lt;a href=&quot;/wiki/World_of_Warcraft_API&quot; class=&quot;mw-redirect&quot; title=&quot;World of Warcraft API&quot;&gt;World of Warcraft API&lt;/a&gt; et al ==  ==== Example API listing ==== * &lt;a href=&quot;/mw1/index.php?title=API_SetMapZoom&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;API SetMapZoom (page does not exist)&quot;&gt;SetMapZoom&lt;/a&gt;(continentIndex[, zoneIndex])   - Sets the current world m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Links from [[World of Warcraft API]] et al ==&lt;br /&gt;
&lt;br /&gt;
==== Example API listing ====&lt;br /&gt;
* [[API SetMapZoom|SetMapZoom]](continentIndex[, zoneIndex]) &amp;amp;nbsp; - Sets the current world map to a specific continent and optionally zone.&lt;br /&gt;
:This function takes one or two arguments. The square brackets indicate that the second argument is optional.&lt;br /&gt;
&lt;br /&gt;
==== Example API with string argument ====&lt;br /&gt;
* [[API SetChannelOwner|SetChannelOwner]](&amp;quot;channel&amp;quot;, &amp;quot;name&amp;quot;) &amp;amp;nbsp; - Sets the channel owner.&lt;br /&gt;
:The quotes around the arguments in this function means that the parameter is a string. It &amp;#039;&amp;#039;&amp;#039;does not&amp;#039;&amp;#039;&amp;#039; mean that the argument is literally &amp;quot;channel&amp;quot; or &amp;quot;name&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Example API with described data type (string) ====&lt;br /&gt;
* [[API TargetUnit|TargetUnit]](&amp;quot;[[API TYPE UnitId|unit]]&amp;quot;) &amp;amp;nbsp; - Selects the specified id as the current target.&lt;br /&gt;
&lt;br /&gt;
==== Example of an UI Object (widget) method ====&lt;br /&gt;
* [[API LayoutFrame SetAllPoints|LayoutFrame:SetAllPoints]](frame or &amp;quot;frameName&amp;quot;) &amp;amp;nbsp; - Set all anchors to match edges of specified frame&lt;br /&gt;
:This example shows that the SetAllPoints() function is called as a method function on a LayoutFrame object. The arguemnt is &amp;#039;&amp;#039;either&amp;#039;&amp;#039; a frame, &amp;#039;&amp;#039;or&amp;#039;&amp;#039; a frame name (string).&lt;br /&gt;
&lt;br /&gt;
==== Link Code Examples ====&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;: [[API SetMapZoom|SetMapZoom]](continentIndex[,zoneIndex])&amp;lt;/nowiki&amp;gt; &amp;amp;amp;nbsp; - Description&lt;br /&gt;
:Pages describing individual API functions are named on the form &amp;quot;API FunctionName&amp;quot; (with no argument information).&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;: [[API LayoutFrame GetHeight|LayoutFrame:GetHeight]]()&amp;lt;/nowiki&amp;gt; &amp;amp;amp;nbsp; - Description&lt;br /&gt;
:Pages describing individual widget methods are named on the form &amp;quot;API ObjectType FunctionName&amp;quot; (with no argument information).&lt;br /&gt;
&lt;br /&gt;
==== Link Prefixes ====&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;PROTECTED&amp;#039;&amp;#039;&amp;#039; - function exists, but is protected for Blizzard only code.&lt;br /&gt;
::: If the page exists, put {{t|protectedapi|version when it was protected|extra info, if appropriate}} at the top&lt;br /&gt;
&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;REMOVED&amp;#039;&amp;#039;&amp;#039; - indicates that the function has been removed from the API.&lt;br /&gt;
::: Removed functions should only be listed in [[:Category:World of Warcraft API/Removed Functions]]&lt;br /&gt;
::: If the page exists, put {{t|removedapi|version when it was removed|what to use instead, if appropriate}} at the top&lt;br /&gt;
&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;UI&amp;#039;&amp;#039;&amp;#039; - indicates that the function is provided by the [[FrameXML]] UI code, rather than the core API.&lt;br /&gt;
::: If the page exists, put {{t|framexmlfunc|FrameXML/FileNameWhereFunctionIs.lua}} at the top &lt;br /&gt;
&lt;br /&gt;
== Data and Argument Types ==&lt;br /&gt;
&lt;br /&gt;
The API uses special values for some function arguments, the commonly used types are:&lt;br /&gt;
&lt;br /&gt;
{{API types}} &amp;lt;!-- Edit API types/List to add new data types! --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[AddOn Studio Wiki:How to edit API pages]]&lt;br /&gt;
[[Category:Interface customization]]&lt;br /&gt;
[[Category:API type references]]&lt;/div&gt;</summary>
		<author><name>Bear</name></author>
	</entry>
</feed>