<?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=WoW%3AUSERAPI_SetAddOnDetail</id>
	<title>WoW:USERAPI SetAddOnDetail - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AUSERAPI_SetAddOnDetail"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SetAddOnDetail&amp;action=history"/>
	<updated>2026-05-22T12:31:06Z</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=WoW:USERAPI_SetAddOnDetail&amp;diff=18384&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page USERAPI SetAddOnDetail to WoW:USERAPI SetAddOnDetail without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SetAddOnDetail&amp;diff=18384&amp;oldid=prev"/>
		<updated>2023-08-15T04:49:14Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:USERAPI_SetAddOnDetail&quot; title=&quot;WoW:USERAPI SetAddOnDetail&quot;&gt;USERAPI SetAddOnDetail&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:USERAPI_SetAddOnDetail&quot; title=&quot;WoW:USERAPI SetAddOnDetail&quot;&gt;USERAPI SetAddOnDetail&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:49, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SetAddOnDetail&amp;diff=18383&amp;oldid=prev</id>
		<title>WoWWiki&gt;Norganna: Creation of the user API function SetAddOnDetail</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:USERAPI_SetAddOnDetail&amp;diff=18383&amp;oldid=prev"/>
		<updated>2008-10-09T23:08:41Z</updated>

		<summary type="html">&lt;p&gt;Creation of the user API function SetAddOnDetail&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{userapi}}&lt;br /&gt;
&lt;br /&gt;
The intent of this page is to provide a simple, consistent API for modular AddOn inclusions to register their details. Currently in WoW, there are functions to query details of loaded AddOns. However for embedded AddOns, they don&amp;#039;t appear anywhere. Any addons that are interested in registering their details are asked to call the following function, and any addons that are interested in what addons are loaded are asked to hook the following function:&lt;br /&gt;
&lt;br /&gt;
 SetAddOnDetail(name, detail)&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
:;name : String - The name of the AddOn being defined (should be the same as the name would be if running standalone)&lt;br /&gt;
:;detail : Table - Contains the detail for the various pieces of detail about the addon.&lt;br /&gt;
&lt;br /&gt;
==== The detail table structure ====&lt;br /&gt;
The detail table contains optional pieces of information in the same meaning and sense that they are used in the [[The TOC Format|TOC File]] (except in lowercase), including but not limited to:&lt;br /&gt;
&lt;br /&gt;
:;version : The version of the AddOn.&lt;br /&gt;
:;title : This text is what is displayed in the AddOns list located during user selection.&lt;br /&gt;
:;notes : The message that appears under the AddOn name when you mouseover the name of the AddOn in the WoW AddOns list.&lt;br /&gt;
&lt;br /&gt;
== Hooking Procedure ==&lt;br /&gt;
For addons that want to monitor the submitted details, the following code is the recommended procedure to create the function:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
-- Define a blank stub if the function doesn&amp;#039;t exist.&lt;br /&gt;
if not _G[&amp;#039;SetAddOnDetail&amp;#039;] then&lt;br /&gt;
	_G[&amp;#039;SetAddOnDetail&amp;#039;] = function(name, detail) end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Define my functions to process the information.&lt;br /&gt;
local myRegistry = {}&lt;br /&gt;
local function myAddOnDetail(name, detail)&lt;br /&gt;
	myRegisty[name] = detail&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Post hook the global SetAddOnDetail function.&lt;br /&gt;
hooksecurefunc(&amp;quot;SetAddOnDetail&amp;quot;, myAddOnDetail)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example Code ==&lt;br /&gt;
The following code snippets illustrate how to register your AddOn&amp;#039;s details via the SetAddOnDetail function.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
if SetAddOnDetail then&lt;br /&gt;
	SetAddOnDetail(&amp;quot;myAddOn&amp;quot;, {&lt;br /&gt;
		version = &amp;quot;1.0&amp;quot;,&lt;br /&gt;
		title = &amp;quot;My AddOn&amp;quot;,&lt;br /&gt;
		notes = &amp;quot;An addon to demonstrate the use of the SetAddOnDetail() function&amp;quot;,&lt;br /&gt;
	})&lt;br /&gt;
end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Addons ==&lt;br /&gt;
&lt;br /&gt;
This function is implemented by the following addons:&lt;br /&gt;
* Swatter of the [[Auctioneer (AddOn)|Auctioneer]] [[AddOns]] by [http://auctioneeraddon.com/ The Auctioneer AddOns Team].&lt;br /&gt;
&lt;br /&gt;
AddOns using this function:&lt;br /&gt;
* All of the [[Auctioneer (AddOn)|Auctioneer]] [[AddOns]] by [http://auctioneeraddon.com/ The Auctioneer AddOns Team].&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Norganna</name></author>
	</entry>
</feed>