Difference between revisions of "Template talk:Item infobox"

From Team Fortress Wiki
Jump to: navigation, search
(Decal Trait: new section)
m (Craftable tag)
 
(38 intermediate revisions by 19 users not shown)
Line 1: Line 1:
== Some thoughts ==
+
{{Talk archive
 +
| arc1name = Archive 1
 +
| arc1link = Template talk:Item infobox/Archive 1
 +
}}
  
* Ammo section needs to be hidden for melee weapon unless any of it's parameters are defined (the Sandman has 1 ammo for example).
+
== Craftable tag ==
* No need to support {{code|name-override}}, {{code|NAME}}, {{code|name}} and {{code|title}} at all (i.e. pick just one). We should stamp that out so we don't have to do it all over again.
 
** Also only need two different parameters that deal with the name, as you noted {{code|loadout-name}} that includes things like {{code|the}}, {{code|der}}, {{code|el}}, {{code|la}} etc. and {{code|name}} for cases where there page name != item name (e.g. all language pages)
 
* Document what the trade/paint/craft/rename parameters do by default (I guess this will come with extended documentation)
 
* How are we defining the tradability of stock weapons? Are they untradable because they aren't accessible by default? Or are they tradable because they can be renamed and then traded?
 
* {{tl|Class name}} in conjunction with {{code|used-by}} to solve the same issue that was solved with slot names.
 
* Does {{code|backpack-image}} need support?
 
These aren't criticism, just immediate problems that need solving that I am sure you are aware of anyway. Your work is excellent and invaluable! -- [[User:Pilk|Pilk]] <sub>([[User talk:Pilk|talk]])</sub> 12:31, 8 November 2010 (UTC)
 
  
:Only just noticed this, lol.
+
There seems to be quite some confusion around the "Craftable" tag, I propose we change it to "Usable in<nowiki><br></nowiki> Crafting". Although this may not work in all languages.<br>[[File:BLU Wiki Cap.png|20px|link=Wiki Cap]] | [[Help:Group rights|<span style="color:green;font-family:TF2 Build;">s</span>]] | [[User:GrampaSwood|<font color="DB9C1F">GrampaSwood</font>]] ([[User talk:GrampaSwood|<font color="DB9C1F">talk</font>]]) 12:14, 23 August 2023 (UTC)
:* That's a good idea, I'll work that in.
 
:* I added them in case somebody tries to add a display title /after/ we parse the pages. I will still change all instances to 'name', however. But this is just a little backwards compatibility.
 
:* {{c|Done}}.
 
:* This is an issue I'm leaving to others to decide, as I don't believe a solution within the template is the best idea when you consider user friendliness and technical workability with translation switching. There are so many variations that it's impossible to define within the infobox.
 
:* I'm not sure. I was planning on leaving 'used-by' as a simple text parameter as there wasn't any need to categorize or anything so no switch was required. It's certainly possible to have it as: "{{code|1={{!}} used-by = scout}}" and then autotranslate through the class name template, but when you consider it, most users translate the link already (i.e. {{code|[[Scout/ru|Разведчик]]}}).
 
:* I can't think of any circumstances where 'backpack-image' would need to be used, as all the backpack images have been uploaded to file names matching the page names. User pages, etc, can simply just use a file redirect. I'll be phasing it out anyway when I parse over pages.
 
:Thanks heaps for these notes, though, Pilk :) [[User:Seb26|<font color="#0B61A4">'''seb26'''</font>]] [[User talk:Seb26|<span style="font-size:95%;">[talk]</span>]] 06:37, 9 November 2010 (UTC)
 
  
==Description contributor==
+
: Nope. That's what the tooltip is for + that's how the game labels this attribute. <!-- problem in chair, not in computer --> — [[User:Tark|<span style="font-weight:bold;color: #5BC236">Tark</span>]] 12:50, 23 August 2023 (UTC)
How to deal with description contributor (for hat) ? Add to contributed-by or it needs a new param to be created ? --[[User:Giraf|Giraf]] 09:45, 19 November 2010 (UTC)
 
:What do you mean description? That field is just for the name of the contributor, what information do you want to add? [[User:Moussekateer|Moussekateer]] 09:54, 19 November 2010 (UTC)
 
::Valve launched a contest to add descrption to hats. So now some hats have two contributors: one for the model and one for the description of the hat. For example, the Bloke's Bucket Hat: AAA_BATTERY is the contributor of the model and Reclaimer077 is the contributor of the description (ie Gone Snipin'.) --[[User:Giraf|Giraf]] 10:08, 19 November 2010 (UTC)
 
:::I see what you mean. Well the person who contributed the description is already documented in the article but I suppose moving it to the infobox might make sense. [[User:Moussekateer|Moussekateer]] 10:10, 19 November 2010 (UTC)
 
::::We already have a description info in the trivia for each hat. I don't think we should saturate the infobox. The person who wrote the description is not nearly as important as the person that made the model. Just sayin' &ndash; [[User:Smashman|<span class="mod">Smashman</span>]]<sub>&nbsp;([[User_talk:Smashman|talk]])</sub> {{sta}} 11:02, 19 November 2010 (UTC)
 
:::::Well I think there should be a more elegant way of displaying the description winners but yea I agree the infobox is getting cluttered. [[User:Moussekateer|Moussekateer]] 11:09, 19 November 2010 (UTC)
 
  
==Availability==
+
::On the item it says "not usable in crafting", which I think is a lot easier to understand than "Craftable" (especially because several people have been confused by this term). It's also not immediately obvious that there is a toolip, especially because it's kinda blocked by the link underline. Tooltips also aren't viewable on mobile, and this is the only term that requires it (besides the "craft no.", but that could be changed to "craftable" in that case). Maybe change how the tooltip is done instead?<br>[[File:BLU Wiki Cap.png|20px|link=Wiki Cap]] | [[Help:Group rights|<span style="color:green;font-family:TF2 Build;">s</span>]] | [[User:GrampaSwood|<font color="DB9C1F">GrampaSwood</font>]] ([[User talk:GrampaSwood|<font color="DB9C1F">talk</font>]]) 13:25, 23 August 2023 (UTC)
I'm going to suggest that since this template already performs automatic categorization for [[Primary]], [[Secondary]] and [[Melee]] weapons, that this be extended to automatically categorize weapons into <nowiki>[[Category:Stock Weapons]]</nowiki> and such too. I think it could easily be done using the Availability parameter. [[File:Infisig.png|60x60px|link=User:Infi^|Infi^]] {{adm}} 22:08, 4 December 2010 (UTC)
+
::: {{c|Nope}} It would honestly appear less harmonic and look slightly out of place compared to the other labels. I think a better compromise would be is to change the tooltip style, as you mentioned. I've thought about making a custom tooltip component (which should also fix the mobile issue) for a while now, so maybe now's the time to get down to it. Perhaps add in an icon prefix exclusive for infobox labels to better highlight it as an interactive element. — [[User:Wookipan|<span style="color:#db9c1f">'''Wookipan'''</span>]] <small>([[User_talk:Wookipan|talk]] | [[Special:Contributions/Wookipan|contribs]])</small> 21:10, 23 August 2023 (UTC)
  
== "Medieval" yes/no info? ==
+
:::{{pro}}'''Agree''' with GrampaSwood. - [[User:BrazilianNut|BrazilianNut]] ([[User talk:BrazilianNut|talk]]) 13:33, 23 August 2023 (UTC)
 +
:::: I agree with Wookipan's suggestion of modifying how tooltips display to fix the issue. I do agree that confusion regarding this vs the availability designation of "craft" could be argued for, and I think Wookipan's solution is the way to go about it. I have my own gripes with the "craft number" variable on the infobox, since it was briefly mentioned, as none of the cosmetics in the last ten years have actually been craftable to have them; but that's a different complaint. — [[File:User ThatHatGuy Signature Icon.png|30px|link=User:ThatHatGuy]] [[File:User ThatHatGuy Signature Talk.png|30px|link=User talk:ThatHatGuy]] [[File:User ThatHatGuy Signature Contribs.png|30px|link=Special:Contributions/ThatHatGuy]] 01:33, 29 August 2023 (UTC)
 +
{{outdent|4}} <!-- outdenting at 4? Preposterous! -->
 +
Heya folks, as I mentioned earlier in this discussion, I've been working on a custom tooltip component. You may test it out here [[User:Wookipan/Sandbox]]. It works on mobile, too, and I've made sure that tooltips with links in them become unclickable on mobile devices, which instead adds a little link icon (with the link) inside of the tooltip's contents, as mobile users can't exactly "hover" over elements in the same way as with using a mouse and would instead be directed to the page. '''Note:''' if it does not work, try refreshing the page a few times until everything seems to work properly (this is due to cache issues because of how the code is executed on userpages).
  
I think it would make sense to add a tag indicating whether a weapon is usable in Medieval Mode. Thoughts? [[User:Zrephel|Zrephel]] 08:52, 18 December 2010 (UTC)
+
I've also added icons for the item infobox labels.
:Makes sense to me. -- [[User:Pilk|Pilk]] <sub>([[User talk:Pilk|talk]])</sub> 08:55, 18 December 2010 (UTC)
 
  
== Kill Icon Link ==
+
Please leave any feedback here. Thanks. — [[User:Wookipan|<span style="color:#db9c1f">'''Wookipan'''</span>]] <small>([[User_talk:Wookipan|talk]] | [[Special:Contributions/Wookipan|contribs]])</small> 21:00, 5 September 2023 (UTC)
I've just finished creating the first pass of a nice descriptive [[kill icon]] list. Requesting thoughts on editing the info box to link the "Kill Icon" header in the infobox to this article. --[[User:Ten19|Ten19]] 08:49, 19 December 2010 (UTC)
+
:I think we can just move the "craftable" tag to the bottom, nexto to craft number, and rename it to "crafting". Thus, the harmony won't break and it won't confuse users anymore. This issue has been confusing me for a long time and Valve changed it in [[October_6,_2010_Patch|this patch from 2010]]. · [[User:Ashe|<font color="DB9C1F">Ashe</font>]] ([[User talk:Ashe|<font color="DB9C1F">talk</font>]]) 23:05, 26 December 2023 (UTC)
:Bumping this, any objections to it being implemented? --[[User:Ten19|Ten19]] 00:17, 4 February 2011 (UTC)
 
  
== "Vintage" yes/no info? ==
+
::I like Wookipan's model; however, if the problem is tooltips not working with links on mobile, then there needs to be a way to not make the i symbols be links (because, currently, it seems they are). - [[User:BrazilianNut|BrazilianNut]] ([[User talk:BrazilianNut|talk]]) 03:53, 27 December 2023 (UTC)
  
I think it would be helpful having a tag indicating whether an item is available in "vintage" status or not. Thoughts? --[[User:Kmessen|Kmessen]] 08:36, 20 December 2010 (UTC)
+
:::The info symbols are part of the links themselves, and as mentioned, I've taken this into account and designed it to disable the links on mobile devices (or smaller screen sizes) to prevent the user from being directed to the page. Could you tell me which browser and device you've encountered this on?
 
+
:::On a different note; due to some internal errors with the Wiki, I won't be able to properly implement this anytime soon. I am working on a solution/workaround, however in the meantime I wouldn't mind just moving the order of things as Ashe suggested, if it can help clear up the confusion. [[User:Wookipan|<span style="color:#db9c1f">'''Wookipan'''</span>]] <small>([[User_talk:Wookipan|talk]] | [[Special:Contributions/Wookipan|contribs]])</small> 22:18, 20 January 2024 (UTC)
== Add "Expired" attribute ==
 
 
 
This template looks a bit too delicate for my barbaric template editing skills.  Could somebody add an "Expired" attribute underneath "Released", it should only show if unused=yes and it has a value. Thanks -<!--[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]]<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">s</span>-->[[File:User_RJackson_Signature_Colon_DDDDDDDDDDDDDDDDDDDD.png|link=User:RJackson|200px]] 15:35, 1 January 2011 (UTC)
 
 
 
== Item Sets ==
 
 
 
I'd like to create individual, more detailed pages for the Item sets than the current stubs we have now. As such, I'd like a better template to use on the side than the little one currently used for sets. Would there be any objections to adding in the following setup?
 
 
 
* type = set
 
 
 
* ICON
 
========
 
* bundle-icon = Backpack_(Class)_Bundle.png
 
 
 
* BASIC INFORMATION
 
========
 
* used-by =
 
* contributed-by =
 
* released =
 
* price =
 
 
 
* SLOTS
 
========
 
* primary = yes/no - item
 
* secondary = yes/no - item
 
* melee = yes/no - item
 
* headgear = yes/no - item
 
 
 
[[User:GJ|GJ]] 16:32, 24 February 2011 (UTC)
 
 
 
== Milestones? ==
 
 
 
Could there be an option to put in a milestone entry? Such as:
 
 
 
|milestone = 1
 
 
 
or
 
 
 
|unlock= Milestone 1
 
 
 
'''[[User:GeminiViRiS|<font color="green" size="2px">GeminiViRiS</font>]]''' [[Image:User GeminiViRiS Doubleface.jpg|20px]] [[User_talk:GeminiViRiS|Talk]]{{md}}[[Special:Contributions/GeminiViRiS|Contribs]] 07:27, 31 March 2011 (UTC)
 
 
 
==What does "Tradable" mean?==
 
It means it can be traded. Really, I question the need to have tooltips explaining these stats - paintable means it can be painted, giftable means it can be gifted, nameable means it can be named. Isn't that kind of obvious? They already have links to their respective pages (i.e. Trading, Gift Wrap, Paint Can, Name Tag). So can these be removed? I think they make the infobox look a little messy. --'''[[User:Cooper Kid|<span style="color:red">Coo</span><span style ="color:gray">per</span><span style ="color:blue"> Kid</span>]]''' <small>([[User_talk:Cooper Kid|Blether]]''' · '''[[Special:Contributions/Cooper Kid|Contreebs]])</small> 23:19, 15 June 2011 (UTC)
 
:{{c|Neutral}} As long as we keep the "Craftable" (which can confuse some people). {{n}} {{User:EpicEric/Sig/Image|RED}} {{User:EpicEric/Sig/Text|Epic|#5885A2}} {{User:EpicEric/Sig/Text|Eric|#B8383B}} {{User:EpicEric/Sig/Image|BLU}}{{User:EpicEric/Sig/Extra}} 23:20, 15 June 2011 (UTC)
 
:{{c|Question}} I'm not entirely sure what you are asking here. I would love to help out but I kinda need to know whats going on here. [[File:User_M-NINJA_Signature.png|link=User:M-NINJA]] 23:28, 15 June 2011 (UTC)
 
::Yeah, sorry, it looks like I didn't explain myself properly. I was referring to the tooltips (the text bubbles that appear when you hover over certain pieces of text) like {{tooltip|this|this is a tooltip}} which are on the bottom half of the stats (Price, Tradable, Giftable etc.) --'''[[User:Cooper Kid|<span style="color:red">Coo</span><span style ="color:gray">per</span><span style ="color:blue"> Kid</span>]]''' <small>([[User_talk:Cooper Kid|Blether]]''' · '''[[Special:Contributions/Cooper Kid|Contreebs]])</small> 23:29, 15 June 2011 (UTC)
 
:::Gotcha...{{c|Neutral}} I can see how it may seem redundant but if its useful to one person, then it was useful to that person, end of story. [[File:User_M-NINJA_Signature.png|link=User:M-NINJA]] 23:33, 15 June 2011 (UTC)
 
 
 
== Can be Unusual/Vintage ==
 
 
 
I was wondering why these two particular attributes are not noted in the item infobox. To find this information, one has to search for "unusual," then click on "unusual table" and then scan for the hat they want (and that table isn't that easy to read or completely accurate). How difficult would it be to add these two attributes to the infobox? It seems to be pretty valuable information. [[User:Balladofwindfishes|Balladofwindfishes]] 00:23, 16 June 2011 (UTC)
 
 
 
:Ya, I think we should put that kind of information in the infoboxes. I'm not sure about Geniuine information, since we already have the Promotional area in the infobox, but we really should put Vintage and Unusual. [[User:GianAwesome|GianAwesome]] 00:33, 16 June 2011 (UTC)
 
::I agree with genuine. That information is easily found usually by reading the second paragraph of the article. [[User:Balladofwindfishes|Balladofwindfishes]] 00:38, 16 June 2011 (UTC)
 
:::{{c|Support}} at the very least adding "Unusual" to the infobox. [[File:Building_icon_Metal.png|16px|link=User_talk:Mar]] '''[[User:Mar|Mar]]''' 02:27, 18 June 2011 (UTC)
 
 
 
== Action items and rename ==
 
 
 
It seems that all action items don't have a rename parameter accepted, or at least not displayed. On [[Meet the Medic (Taunt)]], you can clearly see "rename = yes" yet nothing appears on the main article because it is an action item, not a hat or weapon. To avoid causing confusing with other action items like Mann Co Keys and paints, having rename as no or not having a rename parameter at all shouldn't display it in the infobox on the article. I haven't enough experience with templates to do this on a whim and it's a frequently-used template, so it'd probably be best that whoever does change it knows what they're doing. -- [[User:Psychopath|Psychopath]] [[File:User_Psychopath_avatar.png|16px|link=User_talk:Psychopath]] 21:16, 29 June 2011 (PDT)
 
 
 
== Name vs. Description ==
 
Does the rename parameter include if the item's description can be modified? Or does every item that can have the Name Tag tool used on it also have the Description Tag tool used on it and vice versa? [[User:Rolandius|Rolandius]] 20:08, 8 August 2011 (PDT)
 
 
 
== Strange quality? ==
 
 
 
Should there be an entry for if a weapon has a strange variant? —'''[[User:GeminiViRiS|<font color="green" size="2px">GeminiViRiS</font>]]''' [[Image:User GeminiViRiS Doubleface.jpg|20px|link=User:GeminiViRiS]] [[User_talk:GeminiViRiS|Talk]]{{md}}[[Special:Contributions/GeminiViRiS|Contribs]] 12:22, 17 September 2011 (PDT)
 
 
 
== Decal Trait ==
 
 
 
Some items can now have decals applied to them. Seems like this trait should have a field now? [[User:Software2|Software2]] 00:17, 14 October 2011 (PDT)
 

Latest revision as of 22:18, 20 January 2024

Talk archives
Intel blu idle.png Archive 1

Craftable tag

There seems to be quite some confusion around the "Craftable" tag, I propose we change it to "Usable in<br> Crafting". Although this may not work in all languages.
BLU Wiki Cap.png | s | GrampaSwood (talk) 12:14, 23 August 2023 (UTC)

Nope. That's what the tooltip is for + that's how the game labels this attribute. — Tark 12:50, 23 August 2023 (UTC)
On the item it says "not usable in crafting", which I think is a lot easier to understand than "Craftable" (especially because several people have been confused by this term). It's also not immediately obvious that there is a toolip, especially because it's kinda blocked by the link underline. Tooltips also aren't viewable on mobile, and this is the only term that requires it (besides the "craft no.", but that could be changed to "craftable" in that case). Maybe change how the tooltip is done instead?
BLU Wiki Cap.png | s | GrampaSwood (talk) 13:25, 23 August 2023 (UTC)
Pictogram nope.png Nope It would honestly appear less harmonic and look slightly out of place compared to the other labels. I think a better compromise would be is to change the tooltip style, as you mentioned. I've thought about making a custom tooltip component (which should also fix the mobile issue) for a while now, so maybe now's the time to get down to it. Perhaps add in an icon prefix exclusive for infobox labels to better highlight it as an interactive element. — Wookipan (talk | contribs) 21:10, 23 August 2023 (UTC)
Pictogram plus.png Agree with GrampaSwood. - BrazilianNut (talk) 13:33, 23 August 2023 (UTC)
I agree with Wookipan's suggestion of modifying how tooltips display to fix the issue. I do agree that confusion regarding this vs the availability designation of "craft" could be argued for, and I think Wookipan's solution is the way to go about it. I have my own gripes with the "craft number" variable on the infobox, since it was briefly mentioned, as none of the cosmetics in the last ten years have actually been craftable to have them; but that's a different complaint. — User ThatHatGuy Signature Icon.png User ThatHatGuy Signature Talk.png User ThatHatGuy Signature Contribs.png 01:33, 29 August 2023 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Heya folks, as I mentioned earlier in this discussion, I've been working on a custom tooltip component. You may test it out here User:Wookipan/Sandbox. It works on mobile, too, and I've made sure that tooltips with links in them become unclickable on mobile devices, which instead adds a little link icon (with the link) inside of the tooltip's contents, as mobile users can't exactly "hover" over elements in the same way as with using a mouse and would instead be directed to the page. Note: if it does not work, try refreshing the page a few times until everything seems to work properly (this is due to cache issues because of how the code is executed on userpages).

I've also added icons for the item infobox labels.

Please leave any feedback here. Thanks. — Wookipan (talk | contribs) 21:00, 5 September 2023 (UTC)

I think we can just move the "craftable" tag to the bottom, nexto to craft number, and rename it to "crafting". Thus, the harmony won't break and it won't confuse users anymore. This issue has been confusing me for a long time and Valve changed it in this patch from 2010. · Ashe (talk) 23:05, 26 December 2023 (UTC)
I like Wookipan's model; however, if the problem is tooltips not working with links on mobile, then there needs to be a way to not make the i symbols be links (because, currently, it seems they are). - BrazilianNut (talk) 03:53, 27 December 2023 (UTC)
The info symbols are part of the links themselves, and as mentioned, I've taken this into account and designed it to disable the links on mobile devices (or smaller screen sizes) to prevent the user from being directed to the page. Could you tell me which browser and device you've encountered this on?
On a different note; due to some internal errors with the Wiki, I won't be able to properly implement this anytime soon. I am working on a solution/workaround, however in the meantime I wouldn't mind just moving the order of things as Ashe suggested, if it can help clear up the confusion. — Wookipan (talk | contribs) 22:18, 20 January 2024 (UTC)