<?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%3AAPI_GetItemGem</id>
	<title>WoW:API GetItemGem - 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%3AAPI_GetItemGem"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetItemGem&amp;action=history"/>
	<updated>2026-06-02T00:26:05Z</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:API_GetItemGem&amp;diff=17422&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page API GetItemGem to WoW:API GetItemGem without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetItemGem&amp;diff=17422&amp;oldid=prev"/>
		<updated>2023-08-15T04:46:02Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:API_GetItemGem&quot; title=&quot;WoW:API GetItemGem&quot;&gt;API GetItemGem&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:API_GetItemGem&quot; title=&quot;WoW:API GetItemGem&quot;&gt;API GetItemGem&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:46, 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:API_GetItemGem&amp;diff=17421&amp;oldid=prev</id>
		<title>WoWWiki&gt;Starlightblunder: /* Common usage */ eat section duplicating function signature</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetItemGem&amp;diff=17421&amp;oldid=prev"/>
		<updated>2010-03-29T23:02:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Common usage: &lt;/span&gt; eat section duplicating function signature&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:02, 29 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: If you have never seen the item that belongs to the Item ID or Item Link it will return &amp;#039;&amp;#039;nil&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: If you have never seen the item that belongs to the Item ID or Item Link it will return &amp;#039;&amp;#039;nil&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Using the name may be ambiguous if you have more than one of the named item.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Using the name may be ambiguous if you have more than one of the named item.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Common usage ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;local gemName, gemLink = GetItemGem(itemLink, index)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Starlightblunder</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_GetItemGem&amp;diff=17420&amp;oldid=prev</id>
		<title>WoWWiki&gt;Siz: New page: {{wowapi}}__NOTOC__ Takes an item with a gem in it, and an index from 1-3, and returns the name and link for the gem at that index.  itemName, itemLink = GetItemGem(&quot;name&quot;|&quot;itemlink&quot;, inde...</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetItemGem&amp;diff=17420&amp;oldid=prev"/>
		<updated>2007-08-20T04:57:18Z</updated>

		<summary type="html">&lt;p&gt;New page: {{wowapi}}__NOTOC__ Takes an item with a gem in it, and an index from 1-3, and returns the name and link for the gem at that index.  itemName, itemLink = GetItemGem(&amp;quot;name&amp;quot;|&amp;quot;itemlink&amp;quot;, inde...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{wowapi}}__NOTOC__&lt;br /&gt;
Takes an item with a gem in it, and an index from 1-3, and returns the name and link for the gem at that index.&lt;br /&gt;
 itemName, itemLink = GetItemGem(&amp;quot;name&amp;quot;|&amp;quot;itemlink&amp;quot;, index) &lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
:(itemName or &amp;quot;[[itemLink]]&amp;quot;, index)&lt;br /&gt;
&lt;br /&gt;
:;itemName : String - The Name of the Item, ex: &amp;quot;Hearthstone&amp;quot; (the item must be equiped or in your Inventory for this to work).&lt;br /&gt;
:;&amp;quot;[[itemLink]]&amp;quot; : String - The itemLink, when Shift-Clicking items.&lt;br /&gt;
:;index : Number - The index of the desired gem. 1, 2, or 3&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
:itemName, itemLink&lt;br /&gt;
&lt;br /&gt;
:;itemName : String - The name of the gem at the specified index.&lt;br /&gt;
:;[[itemLink]] : String - The gem&amp;#039;s item Link; you will see the clickable Link instead of the string. (String, such as: &amp;quot;|cff0070dd|Hitem:24033:0:0:0:0:0:0:0|h[Solid Star of Elune]|h|r&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 local itemLink = &amp;quot;|cff0070dd|Hitem:27773:3010:2729:2729:2739:0:0:0|h[Barbaric Legstraps]|h|r&amp;quot;&lt;br /&gt;
 local gem1name, gem1Link = GetItemGem(itemLink, 1)&lt;br /&gt;
 local gem2name, gem2Link = GetItemGem(itemLink, 2)&lt;br /&gt;
 local gem3name, gem3Link = GetItemGem(itemLink, 3)&lt;br /&gt;
 if gem1name then&lt;br /&gt;
   DEFAULT_CHAT_FRAME:AddMessage(&amp;quot;Gem 1: &amp;quot;..gem1name..&amp;quot;, Link: &amp;quot;..gem1Link)&lt;br /&gt;
 end&lt;br /&gt;
 if gem2name then&lt;br /&gt;
   DEFAULT_CHAT_FRAME:AddMessage(&amp;quot;Gem 2: &amp;quot;..gem2name..&amp;quot;, Link: &amp;quot;..gem2Link)&lt;br /&gt;
 end&lt;br /&gt;
 if gem3name then&lt;br /&gt;
   DEFAULT_CHAT_FRAME:AddMessage(&amp;quot;Gem 3: &amp;quot;..gem3name..&amp;quot;, Link: &amp;quot;..gem3Link)&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
====Result====&lt;br /&gt;
: As long as {{loot|rare|Barbaric Legstraps}}, {{loot|rare|Bright Living Ruby}}, and {{loot|rare|Shifting Nightseye}} all exist in your local cache, you will see the following lines in your chat frame:&lt;br /&gt;
: Gem 1: Bright Living Ruby, Link: {{loot|rare|Bright Living Ruby}}&lt;br /&gt;
: Gem 2: Bright Living Ruby, Link: {{loot|rare|Bright Living Ruby}}&lt;br /&gt;
: Gem 3: Shifting Nightseye, Link: {{loot|rare|Shifting Nightseye}}&lt;br /&gt;
&lt;br /&gt;
==Details==&lt;br /&gt;
: This function will &amp;#039;&amp;#039;&amp;#039;ONLY&amp;#039;&amp;#039;&amp;#039; retrieve data that is in your local cache.&lt;br /&gt;
: If you have never seen the item that belongs to the Item ID or Item Link it will return &amp;#039;&amp;#039;nil&amp;#039;&amp;#039;.&lt;br /&gt;
: Using the name may be ambiguous if you have more than one of the named item.&lt;br /&gt;
&lt;br /&gt;
== Common usage ==&lt;br /&gt;
&lt;br /&gt;
local gemName, gemLink = GetItemGem(itemLink, index)&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Siz</name></author>
	</entry>
</feed>