Template talk:Item infobox

Automatic display titles
Could we please add something like { {DISPLAYTITLE:{ {item name|{ {BASEPAGENAME}}}}}} to this template?

Of course with some fancy if statements and stuff. SackZement &lt;Talk&gt; 14:39, 16 July 2012 (UTC)
 * Ooh, that's an interesting idea. Let me think about it, and consider what special cases we might have. Off the top of my head, it seems like the only if-test would be testing for the Main namespace. Would we (or do we?) ever display multiple item infoboxes on a Main namespace page? Or on a non-item Main namespace pages? --Kroocsiogsi 16:51, 16 July 2012 (UTC)

Maybe this code (shamelessly copied from the TF2wiki, slightly changed) could be helpful for considering the special cases. SackZement &lt;Talk&gt; 11:49, 17 July 2012 (UTC)
 * on both Template:Item infobox and Template:Hero infobox. Let me know about any mishaps or corner cases. I need to think about having a bot clean up existing DISPLAYTITLEs. Thanks for the suggestion. --Kroocsiogsi 22:17, 17 July 2012 (UTC)
 * Thanks for adding. I think the majority of the redundant titles can be removed by removing all displaytitle-templates that equal the displaytitle of the item infobox. User_SackZement_signature.gif SackZement &lt;Talk&gt; 07:52, 18 July 2012 (UTC)
 * Yep. Might get around to it today. --Kroocsiogsi 19:52, 18 July 2012 (UTC)
 * . I didn't even check for correctness, since I recently did an overhaul of Template:Item name using data from the game files. In case there's an instance where the wiki was correct and the game was not: sorry. Also, pages that had excessive whitespace now have even more excessive whitespace. Bah. --Kroocsiogsi 03:38, 19 July 2012 (UTC)

"can-disassemble = Yes" is not working on non-english pages
New " | can-disassemble = Yes" and "| can-disassemble = Yes" doesn't want work on non-english pages. Always says "No". --Ermac.hdp 18:03, 11 June 2013 (UTC)
 * The language-page values should now be inherited from the english page. - RJ 19:09, 11 June 2013 (UTC)
 * Thanks! Its working! --Ermac.hdp 19:12, 11 June 2013 (UTC)

Can alert allies in German/de
Can alert allies is not correctly translated in German. The word 'bescheidt' is wrong and should be 'Bescheid' instead. It can simply be replaced.--[Special:Contributions/217.230.26.160|217.230.26.160]] 22:47, 21 July 2015 (UTC)
 * . Medok  07:35, 22 July 2015 (UTC)
 * Thanks for the quick action taken, but the word has to be upper case in German since it is a noun. Also, the spelling error still persists in the mouse-over text. Sorry, about being pedantic... --217.230.26.160 14:00, 22 July 2015 (UTC)
 * Oh :) Medok  14:03, 22 July 2015 (UTC)

"can-alert-allies = true" is not working
Even in en page. Elite stay (talk) 04:27, 5 January 2016 (UTC)


 * Fixed. No clue how this got messed up. Molldust (talk) 10:19, 5 January 2016 (UTC)

Somebody please helps wrapper
used in and recipe are not working. Elite stay (talk) 06:23, 12 January 2016 (UTC)


 * Molldust (talk) 08:14, 12 January 2016 (UTC)

clr
Shall we add clr to Item infobox template? I have noticed dat many Ability in item pages was broken. May be the reason is my monitor too small,i dunno --Dotalim0204 (talk) 08:36, 22 June 2016 (UTC)


 * Mostly caused by advertisements that float on the right side. It's possible to increase the threshold, but as a result all ability notes will be shrinked together. Can you give a link to a page where it happens? Molldust (talk) 13:55, 22 June 2016 (UTC)


 * Town_Portal_Scroll etc, I have uploaded an image for example: Here --Dotalim0204 (talk) 14:11, 22 June 2016 (UTC)


 * Chrome users tststs... Should be fixed, but I might have broken a couple of other things. Molldust (talk) 13:14, 26 June 2016 (UTC)


 * ok ty --Dotalim0204 (talk) 08:30, 27 June 2016 (UTC)


 * I had found wht thing was broken ._. here --Dotalim0204 (talk) 11:56, 4 July 2016 (UTC)

Fixed TR translation (Alert Allies and the tooltip were missing)
http://pastebin.com/1pDsk3vB --MrSchipunov (talk) 18:33, 5 August 2016 (UTC)

anchor of recipe
Can it link to the correct page for Shedd's Cleaver/zh-hans? --Elite stay (talk) 03:22, 29 September 2016 (UTC)


 * The current implementation of old items isn't good and will get reworked, which will also fix this issue.  Bu3ny  (talk) 12:59, 29 September 2016 (UTC)


 * Shouldn't the Upgrader just be a regular item? This way it wouldn't mess with the recipes. Molldust (talk) 15:47, 29 September 2016 (UTC)


 * Yes, it'll get its own page, to make things simple. It's effectively only a recipe with a fixed cost, that's why it was put where it currently is.  Bu3ny  (talk) 16:06, 29 September 2016 (UTC)

Things to do for the template

 * Support for negative stats values. Example: Bogdugg's Lucky Femur reduces mana and int, instead of granting, but putting negative values makes the template show "+-".
 * Add lifesteal, spell lifesteal, cooldown reduction, mana cost reduction and disable resistance as traits, similar to how Evasion already is one. They don't count as abilities for items, and should therefore be listed like other bonuses in the item infobox, instead of using ability boxes.
 *  Bu3ny  (talk) 11:55, 9 June 2017 (UTC)


 * I first plan to rework/clean up the template, and then I would add the new features as soon as I got the time. Hope that's ok. --Psion1C (talk) 12:54, 9 June 2017 (UTC)

recipe icons
Temporare way to add recipe icons, pls fix where needed (ifexist isnt probably a good way of doing it, but it's 5AM here so I cant be bothered right now). Current implementation does not work on items with multiple levels (e.g. Dagon 2 uses default icon, upgrades should use the same icon as lvl 1). Create parameter for recipe icons, so they can be called just like the item icons (name it recipe image).  Bu3ny  (talk) 03:01, 8 July 2017 (UTC)


 * localization things. it doesn't work on :zh. Though I can use property:item instead of property:title, but Molldust said better not use item/hero/unit, they should be used only in wrapper. --Elite stay (talk) 03:27, 8 July 2017 (UTC)


 * At first glance, I would probably just create that parameter, and then check for the parameter "game" if it's not set to use the default icon. See User:Psion1C/Sandbox3. (Only one small thing: Should it ask for "recipe image" with #if, or the way I did it?) --Psion1C (talk) 08:01, 8 July 2017 (UTC)


 * Since the default game will always have a recipe icon, no matter what (the recipe image are auto-generated by the game, they are not separate files), I don't think checking whether the image exist or not is needed.  Bu3ny  (talk) 11:39, 8 July 2017 (UTC)

My version doesn't use "ifexist". It uses: . The question was if it should use an #if as the first statement, or just ? --Psion1C (talk) 12:45, 8 July 2017 (UTC)


 * You got it wrong, I'm saying what's the point of another #if here. The only difference is that it should use the items' own recipe icons, instead of the default recipe icon. Just checking for custom games is enough.  Bu3ny  (talk)


 * And my question is, should it be
 * or
 * If you don't wanna use any of these two, then show me your version. --Psion1C (talk) 16:22, 8 July 2017 (UTC)
 * If you don't wanna use any of these two, then show me your version. --Psion1C (talk) 16:22, 8 July 2017 (UTC)
 * If you don't wanna use any of these two, then show me your version. --Psion1C (talk) 16:22, 8 July 2017 (UTC)
 * If you don't wanna use any of these two, then show me your version. --Psion1C (talk) 16:22, 8 July 2017 (UTC)


 * Should probably be the latter due to the wrapper setting empty "recipe image" parameters if none is present. See my sandbox for the proposed version. --Psion1C (talk) 10:58, 28 July 2017 (UTC)

Stock replenish time & max stock count
Reminder: Add Stock replenish time, initial stock count, and max stock count as a traits into the infobox.  Bu3ny  (talk) 12:48, 12 August 2017 (UTC)
 * Any particular format for these in mind, or same as Active | 1 column? -- Sanhard 22:51, 26 May 2019 (UTC)
 * No real design in mind. Would be enough to just list them right below the cost/bought from part.  Bu3ny  (talk) 19:08, 27 May 2019 (UTC)
 * I actually don't like these color, but I lack knowledge of color. The position is good. Maybe do some transforming to minutes or hours? --Elite stay (talk) 13:43, 4 June 2019 (UTC)
 * Minutes / Hours from seconds is hard to do with MediaWiki. Might just drop the "s" and leave the raw value as it will probably look cleaner. I'm not sold on color either, Template:Color is just being used until someone has a better idea :p -- Sanhard 13:59, 4 June 2019 (UTC)

active things
Need to fix to adapt Attributes values, and need to add percent value when there's no bonus flat. --Elite stay (talk) 07:34, 13 November 2017 (UTC)

Proposed Edit
The active health regeneration flat paramater should be updated to this snippet to bring in line with 7.20 and fix errors on pages like Guardian Greaves. -- Sanhard (talk) 10:24, 17 December 2018 (UTC)
 * active_health_regeneration_flat =
 * A similar adjustment should also be made for active_mana_regeneration_flat. -- Sanhard (talk) 10:28, 17 December 2018 (UTC)

Boots of Travel speed per level
Boots of Travel grants 32% movement speed on level 1 and 35% on level 2. With the current implementation, we can't make the infobox show both values, since it adds the % at the end of the value you give it, so it shows 32/35% instead of 32%/35%.

I added a workaround for now, should probably implement it properly.  Bu3ny  (talk) 12:45, 17 February 2019 (UTC)
 * Marking this as resolved for future reference. Solved a while ago. -- Sanhard 14:02, 4 June 2019 (UTC)