Wikia

WoWWiki

Talk:Item

101,504pages on
this wiki

Back to template

Is this {{loot}}?Edit

It might not have been the intention, but isn't this now an improved version of template:loot?
And if so, should someone with a bot replace the use of {{loot}} with this template? —MJBurrage(TC) 14:55, 28 December 2007 (UTC)

This template doesn't quite work with being included in {{tooltip}}/{{settip}}. --PcjWoWWiki admin (TDrop me a line!C62,301 contributions and counting) 14:59, 28 December 2007 (UTC)
In most situations you should use {{item}}. There are a few exceptions - code within {{settip}} and {{tooltip}} tags on pages should use {{loot}}. -- Starlightblunder 23:04, 28 December 2007 (UTC)
IMO, The only real advantage of {{item}} over {{loot}} is that you can add an icon to it. Again, in my understanding, 'loot' is also simpler, and now involves yet fewer "if" clauses, which - on pages with LOTS of links - the wiki eventually chokes on. Unless you can show me that {{item}} is superior in some other useful way, I'll continue to use {{loot}}. --Eirik Ratcatcher (talk) 17:13, 3 July 2008 (UTC)
{{item}} also automatically fills in quality, while {{loot}} requires you to specify it in the template. -- Dark T Zeratul (talk) 19:33, June 9, 2010 (UTC)

Performance Edit

... isn't something I'm sure of at the moment, so I'm leaving the template in this reduced functionality form over the next few hours; will revert changes later and see if the situation repeats itself. -- Foxlit 02:23, 5 January 2008 (UTC)

Tweaked the inclusion mechanism a bit in conjunction with Template:Tooltip, should reduce the amount of inclusions the wiki parser has to handle when linking items using item to slightly below the level of Lootbox; very large lists of items may still cause issues. -- Foxlit 13:57, 6 January 2008 (UTC)
If I try to use this with a huge list like Leatherworking patterns (which instead uses the loot template), the server stops processing templates part of the way through. Though not essential, it'd be nice for lists like that to have the option of displaying item icons. Would this be feasible? :) -- W.woods 16:23, 21 March 2008 (UTC)
You'd run into the same problem for icons in a list. The server fails because of pre-inclusion size, not post-inclusion. --PcjWoWWiki admin (TDrop me a line!C62,301 contributions and counting) 16:41, 21 March 2008 (UTC)
Thanks :) Is the efficiency of this likely to improve in the foreseeable future (to the point where I could add icons), or is this something I should just forget about completely? ;) --W.woods 03:24, 27 March 2008 (UTC)
Not likely; the only way you could end up using {{item}} on that list is if wikia increases the pre-inclusion limit significantly; you could specify all icons manually meanwhile, but that seems like a horrible amount of effort. -- foxlit 23:14, 5 April 2008 (UTC)
Another consideration... with javascript tooltip popups, are those icons REALLY necessary? --Eirik Ratcatcher (talk) 17:14, 3 July 2008 (UTC)

With a stub Edit

Using {{Item}} to refer to a page that has no tooltip on it results in unexpectedly bad results. Any chance this could be fixed? --Eirik Ratcatcher 20:41, 31 January 2008 (UTC)

No; can't really check whether an item page is formed correctly prior to including it. The easiest solution is probably to add a pair of nested includeonly+onlyinclude tags containing a {{loot}} template until the tooltip is updated. -- Foxlit 10:53, 3 February 2008 (UTC)
How about when the page itself is not found? Currently results in no text... --Eirik Ratcatcher (talk) 20:55, 18 June 2009 (UTC)
If you want a redlink, use {{item}}. If you want the quality to be dynamically generated, or you want to show the icon image, or both, use {{item}}. If you never want a redlink, or you want better performance (such as patch pages that are really large), use {{loot}}.
Really, I think you should just fix the problem on Plans: Hardened Iron Shortsword so that the tooltip works.
We did the same design pattern for the templates for achievements. {{achievementlong}} gives a redlink. {{achievement}} will never show a redlink. Just Alerting You Small Howbizr(t·c) 12:42 PM, 19 Jun 2009 (EDT)
{{item}} was not producing redlinks for a bit there. PCJ and Gourra have, I think, solved it for now. Btw, the Plans: Hardened Iron Shortsword page itself was updated some good time ago. --Eirik Ratcatcher (talk) 21:49, 19 June 2009 (UTC)

Icon Size Edit

Would like a method for changing the size of the icon displayed. Madkaugh (talk) 01:32, 20 May 2008 (UTC)

You might also investigate using {{icon}}. -- Eirik Ratcatcher (talk) 17:15, 3 July 2008 (UTC)

BugEdit

Is Spicy Fried Herring
{{item|icon=|Spicy Fried Herring}}
not working because something is wrong with the page? Inv misc food 78 [Spicy Fried Herring] or because of the {{item}} template? -Howbizr (talk) 00:08, 20 January 2009 (UTC)
It's what happens when pcj mess up his bot skills. User:Gourra/Sig2 01:39, 20 January 2009 (UTC)
Ah. "}" didn't catch it. -Howbizr (talk) 18:43, 21 January 2009 (UTC)

Prevent breaking before the icon Edit

There should be a <nobr> tag around the whole thing to prevent the icon being separated from the link as can be seen here (with rugged leather). Manski (talk) 07:44, March 4, 2010 (UTC)

Around Wikia's network

Random Wiki