Item Linking with Wowhead

1
Avatar

Arilyn

<Riot Act>
Mal'Ganis

Blood Elf
Death Knight

Here are some examples of working item links (RA: this works for the shoutbox too).

<a href="http://www.wowhead.com/?item=49623" class="orange">Shadowmourne</a

Shadowmourne

<a href="http://www.wowhead.com/?item=21134" class="purple">Dark Edge of Insanity</a

Dark Edge of Insanity

<a href="http://www.wowhead.com/?item=9425" class="blue">Pendulum of Doom</a

Pendulum of Doom

<a href="http://www.wowhead.com/?item=1521" class="green">Lumbering Ogre Axe</a

Lumbering Ogre Axe

<a href="http://www.wowhead.com/?item=41753" class="white">Brunnhildar Great Axe</a

Brunnhildar Great Axe

<a href="http://www.wowhead.com/?item=25398" class="gray">Stone Reaper</a

Stone Reaper

<a href="http://www.wowhead.com/?item=42943" class="gold">Bloodied Arcanite Reaper</a

Bloodied Arcanite Reaper

1
Avatar

Casagrande

<Riot Act>
Anetheron

Tauren
Druid

Are you using the wowhead widget? http://www.wowhead.com/?powered
I thought it does coloring automatically.

Tehm whos bare durids, can B 4 tank

2
Avatar

Arilyn

<Riot Act>
Mal'Ganis

Blood Elf
Death Knight

We’re using that, yes. However, even Wowhead links require a CSS class in order to show color. They just use q1-q5 instead.

To color your item tooltip links based on item quality, put “class=q#” in the <a> tag, where # is the number of the quality level of the item:

5 is legendary (orange), 4 is epic (purple), 3 is rare (blue), 2 is uncommon (green), 1 is common (white), 0 is poor (gray). Example:

<class="q5" href="http://www.wowhead.com/?item=19019[b]">ThunderfuryBlessed Blade of the Windseeker</a
   
 

Latest Blog Entries

Hot Threads

About Riot Act

Formed in early 2009, Riot Act is a high-end World of Warcraft raiding guild on Anetheron US-PvP. Be sure to check our frequently updated gaming journal while you're here.

Think you have what it takes to raid with us? Check out our recruitment requirements and application procedure on our Apply page.