Template talk:Loot

From Wowpedia
Jump to: navigation, search
Past discussions archived to...


Im trying to include this Template in my wiki, but isnt work, it dont know the command urlencode. Where it is declared?

Thanks. --GraBR 20:22, 16 September 2007 (UTC)

urlencode is a standard magic word found on Mediawiki wikis after v. 1.7. Do you have that version installed? --Sky (t · c · w) 20:29, 16 September 2007 (UTC)
hum.. v.1.6.10, ill upgrade and try again. Thanks --GraBR 00:50, 17 September 2007 (UTC)

Please fix

Please add appropriate code so the article "An article that will never exist" is never linked. Simple, creative use of the #if tag will allow this. --Pcj (TC) 23:03, 8 July 2007 (UTC)

Still fixing is needed --Dyna18 15:04, 12 August 2007 (UTC)


Could an icon option be added for this template? Or is there an existing similar template with an icon option? I'm basically looking to improve the item references as objectives or rewards on quest pages. --Reacheround 14:44, 26 July 2007 (UTC)

No, this is just to link to the item page. Icons should go on the respective item page, using {{Tooltip}}. If you need to show the whole tooltip, simply include the item page. --Pcj (TC) 15:40, 26 July 2007 (UTC)
Fair enought :) --Reacheround 15:51, 26 July 2007 (UTC)

Quest items?

What can I do to link to, for example, items of this class? PhilHibbs 16:16, 22 September 2007 (UTC)

the new tooltip

its great !, however, the "blabla is a rare quality item" yellow tooltip should no longer be displayed as it overlaps the bigger and better tooltip. User:CrazyJack/Sig 07:58, 3 October 2007 (UTC)

color doesnt appear

I`m trying to add this template to my wiki. I`ve added source from this site, but there is no colored names. It`s only internal link with red or blue highlight. Help me plz. wiki ver. 1.10

Drdead 12:56, 16 October 2007 (UTC)

MediaWiki:Common.css has CSS classes that are called. Kirkburn  talk  contr 15:00, 16 October 2007 (UTC)
I get it, tnx! Drdead 18:55, 16 October 2007 (UTC)

Beast Lord Cuirass

Beast Lord Armor
Inv helmet 19.png [Beast Lord Helm] Inv shoulder 23.png [Beast Lord Mantle]
Inv gauntlets 10.png [Beast Lord Handguards]

In the Beast Lord Cuirass template there is an error that causes the number set to be "?" instead of "5" (last line in yellow) but i don't know how to modify it. --N'Nanz 11:05, 21 October 2007 (UTC)

Fixed. If you see any others, feel free to fix those too. :P --Sky (t · c · w) 03:47, 24 October 2007 (UTC)


So I was wondering if there's any way to add a line to the template which allows an id=xxxx field in the template. This would only be useful for items which have no page on the wiki, but would set the four miniature elinks to link directly to the appropriate page. Some items just don't need an article here, but a direct elink might be a nice replacement :)

Example: [Twilight Lexicon - Chapter 3]

Sorry for the ugliness in the code here, I had to subst the template in order to make my example :) Hekirou 14:04, 25 November 2007 (UTC)

Include item icons?

I don't know how enormous a suggestion this is, but I know that people can write some crazy stuff. For instance, I don't even know how this template works. Anyways, how about setting up where the icon is included with the link? Perhaps it should be a different template for certain cases where people don't want to include loot icons for whatever reason. Feasible? Schmidt 02:45, 19 December 2007 (UTC)

See Wowpedia talk:Village pump#Loot links for my input (and hopefully other's to come) on this. --   13:49, 19 December 2007 (UTC)

Removed ifexist

I understand the reason for this, but it should have been mentioned here after doing. Longtime users of this template expect loot links that don't exist locally to give helpful item DB search links. Now that doesn't work anymore. --Gengar orange 22x22.png Fandyllic (talk · contr) 1:34 PM PST 7 Jun 2008

I might be able to cook something up using JS. Stand by. --PcjWowpedia wiki manager (TDrop me a line!C207,729 contributions and counting) 22:02, 7 June 2008 (UTC)
This is now implemented using JavaScript. [blah] and whatnot. --PcjWowpedia wiki manager (TDrop me a line!C207,729 contributions and counting) 00:57, 8 June 2008 (UTC)

Support for Wrath of the Lich King βeta DBs

Pcj added support to the {{loot}} template to use JS to create search links for missing items in the new Wrath of the Lich King DBs for Wowhead and Thottbot.

To point a loot link to the new Wrath of the Lich King βeta DBs, just add |db=wtolk to your template wikicode, like so...

Missing item with search links:

Item we have (|db=wtolk not really needed):

So until the expansion is released, we can use these links. --Gengar orange 22x22.png Fandyllic (talk · contr) 2:06 PM PST 9 Aug 2008

Parentheses Bug

These seem to cause problems with the mouseover. [Reins of the Ice Mammoth (Alliance)] and [Reins of the Ice Mammoth]. [Ebonweave] works just fine even though it doesn't even have an icon. Howbizr (talk) 16:20, 21 September 2008 (UTC)

That's because you were not using |disambigpage=. g0urra[T҂C] 16:37, 21 September 2008 (UTC)

Wowhead merged WOTLK database since 3.0 patch

Note that wotlk.wowhead.com links redirect to www.wowhead.com now. -Howbizr (talk) 16:52, 15 October 2008 (UTC)

I was apparently somewhat mistaken. For items that are coming out only for Wrath, they still require "wotlk". However, the majority of items are now working with "www.wowhead.com." For example [Reins of the Wooly Mammoth] will not work with "www", but [Spellweave Gloves] will render with either "www" or "wotlk." For this interim period, there is auto-redirecting from "wotlk" to "www" for all items that are in both areas. -Howbizr (talk) 16:23, 20 October 2008 (UTC)

Mouseover Problem?

But I have NO idea why. [Glyph of the Wise] Everything looks identical to [Glyph of Lay on Hands] and it's fine.

Ideas? I discovered the problem: Paladin glyphs. -Howbizr (talk) 16:43, 18 October 2008 (UTC)

That was because [Glyph of the Wise] had an incorrect name on its tooltip. g0urra[T҂C] 16:50, 18 October 2008 (UTC)

Missing item search links use label and not item name, has plural problem

I noticed this awhile back, but I'm not sure what we should do about it. Try out the DB links for the following (at least one should not have been entered yet):

{{loot|<poor>|<Argent Lance>|<Argent Lances>}}
[Argent Lances]
{{loot|<uncommon>|<Prismatic Black Diamond>|<Prismatic Black Diamonds>}}
[Prismatic Black Diamonds]
{{loot|<epic>|<Greater Inscription of the Axe>|<Greater Inscriptions of the Axe>}}
[Greater Inscriptions of the Axe]

All I did was use a plural label, but the search DB links use the label instead of the item name, so they don't work.

I think we should have the search use the item name, but there is a drawback. The search link also breaks if you have an item name that is disambiguated and missing like (the Wowhead link below works, but the Thottbot one doesn't):

{{loot|<rare>|<Medallion of the Horde (Death Knight)>}}
[Medallion of the Horde (Death Knight)]

No one took the time to make class specific Medallions of the Horde, I guess.

Should I still ask Pcj to have the search links use the item name? --Gengar orange 22x22.pngBeware the sneaky smile! Fandyllic (talk · contr) 10:49 PM PST 5 Apr 2009

The "searching by label instead of item name" could probably be fixed. Your second example about the insignia search is because Thottbot searches for the whole argumentt, while Wowhead doesn't search for things within brackets (compare "(Death knight)" and "(Death knight)" searches. And about the medallions not being class specific is because there is little to no difference - the insignias for all classes provides the same stats, and the only thing that sets them apart is the "Classes:" text. There shouldn't be a need to create articles for each individual version. --g0urra[T҂C] 07:02, 6 April 2009 (UTC)
Well, Mr. Pcj seem to have to fix the label search thing, as it's on MediaWiki:Tooltips.js, and it's way out of my league. --g0urra[T҂C] 07:36, 6 April 2009 (UTC)
I looked at Pcj's changes and they don't seem to be related to the search, he just appears to be optimizing his code. Also, his last changes were on March 30th. --Gengar orange 22x22.pngBeware the sneaky smile! Fandyllic (talk · contr) 5:59 PM PST 7 Apr 2009
Looking more at Pcj's code, I think I know the problem, but I'm not a good enough javascript whiz to fix it without potentially screwing things up royally.
He appears to be picking out the name to use for search from the HTML source, but is picking the label, because it doesn't have underscores.
Here is some example HTML for a missing item {{loot}} link:
<a href="/index.php?title=Prismatic_Black_Diamond&action=edit&amp;redlink=1" class="new" title="Prismatic Black Diamond (not yet written)" rel="nofollow"><span class="itemlink qc-uncommon" title="Prismatic Black Diamonds is an uncommon quality item."><span class="bracket">&#91;</span>Prismatic Black Diamonds<span class="bracket">&#93;</span></span></a>
From what I can parse of his code, he's grabbing the Prismatic Black Diamonds, instead of Prismatic_Black_Diamond or Prismatic Black Diamond. It must be because that is the easiest name to grab without having to remove underscores or chop of the parenthetical stuff. I'll put a note on his talk page to look at this discussion. --Gengar orange 22x22.pngBeware the sneaky smile! Fandyllic (talk · contr) 6:23 PM PST 7 Apr 2009
Fixed (or will be when the cache rolls through). Next time just tell me. --PcjWowpedia wiki manager (TDrop me a line!C207,729 contributions and counting) 01:37, 8 April 2009 (UTC)
Next time, I'll just tell you directly. I wasn't sure if the previous functionality was intentional and I was just missing the reason, since no one else reported it to you. --Gengar orange 22x22.pngBeware the sneaky smile! Fandyllic (talk · contr) 1:03 PM PST 8 Apr 2009


Is there a way to use this template and use the Bind to Account coloring? i.e. set quality to BOA or Account and it shows up as the correct color? Example: |{{Loot|Rare|Arcanum of the Stalwart Protector}} | align="center" | {{cost|150|}} || Arcanum Is now a Bind on Account quality item, not a Rare quality item. Cindrah (talk) 15:09, January 25, 2010 (UTC)

does [Arcanum of the Stalwart Protector] work? --Eirik Ratcatcher (talk) 22:00, January 25, 2010 (UTC)

Relation to "item"

There are two templates to do the same thing: Template:Loot and Template:Item. Why are there two? There should be some description on both pages when to use one or the other. Or deprecate one of them. Manski (talk) 07:54, February 24, 2010 (UTC)

Loot is made to specify the item quality, and also helps by making a search if the item doesn't exist. Item pulls directly the item quality from the item if it exists, and can also be used to show the icon, which isn't support by Loot. It also has some relation to load times, but I'm not sure about that... Maybe someone else have a better explanation for that. --g0urra[T҂C] 12:04, February 24, 2010 (UTC)
Partly the load times, but much more involved with fetch exhaustion (or some such term). Certain pages in the past have had vast numbers of instances of {{item}}. (example:Blacksmithing recipes. Between transcluded pages and all, literally hundreds of links.) The wiki software, after a certain point, stopped processing the transclusions. Likely, a safety feature to prevent circular links from locking up the software. Converting (back) to {{loot}} cured that. Thus at a minimum, pages with many links should be using {{loot}} instead.
Personally, I'm more a fan of loot than item, as the icon abilities of the latter tend (IMO) to get overused. As well, I'm in favor of the lighter processing load generally. But item is the one most commonly used, particularly when only a few items links are needed (such as on quest pages). --Eirik Ratcatcher (talk) 21:11, February 24, 2010 (UTC)