Talk:Product

From No Man's Sky Wiki
Jump to: navigation, search

Would it be possible to update the product categories to match the color of the header of the info box with the header of the recipe in game ? Talinwind (talk) 06:18, 8 August 2018 (UTC)

probably depends on how many different colors there are, and WHAT those colors are. The color of the infobox header is defined as part of the infobox, which would probably mean we'd have to do the following:
  • create a new infobox template for each type/color
  • change each product page to use the proper flavor of infobx
Any idea of how many this might be? Ddfairchild (talk) 06:23, 8 August 2018 (UTC)
I thought the Product infobox template was managing all the colors depending of the category field... (didn't see the code though). I don't have the full spectrum of color yet, still in the process of cataloging. so far I saw yellow (component), red (consumable), blue (tech), green (ancient items), gray (ammo). Once again I am not sure of the categories yet, but that is an overview.Talinwind (talk) 08:22, 8 August 2018 (UTC)
Walker Brain, Quad Servo and Projectile Ammunition are considered a component, first two have purple background, while the last has gray. It seems type specifies the color, not category. Also there are products which still not updated to NEXT. Gorla (talk) 08:57, 8 August 2018 (UTC)
You are correct in that any page using the Product infobox has a Category parm. This category shows in the infobox, and also determines the color of the header. These are currently defined:
  • curiosity is green
  • trade_commodity is green
  • component is yellow
  • device is blue
  • technology is blue
  • consumable is red

So while we wouldn't have to create new templates, each page would need to be reviewed to make sure the category was set up properly. Ddfairchild (talk) 14:27, 8 August 2018 (UTC)

Great info. Would it be possible to add the color code somewhere (maybe in the doc page of the info box). The category is not mention clearly In Game so a section in the doc would help the etitors.
Would it be possible to add a purple (and maybe grey) category, to fit with Walker Brain and Projectile AmmunitionTalinwind (talk) 05:33, 9 August 2018 (UTC)
I think both of those are good ideas. I can get the first one done fairly quickly, and will investigate the second one. Do you have a suggestion as to what the category names should be for those colors? Ddfairchild (talk) 07:01, 9 August 2018 (UTC)
I think that should be possible, but currently not always the Category defines the color, but Type (as I wrote above). I will check later how many items are affected by this. I think adding a color to Type could be done, but is it possible to overwrite/overrule the specified Category color? Gorla (talk)
It sounds like there aren't many exceptions - could we do something like say, Component and Component 1? Component would be the standard, and then Component 1 could be defined as purple or something. I'd rather stick with one parm controlling the color if we can. Ddfairchild (talk) 07:10, 9 August 2018 (UTC)
I think the Type is a In Game descriptor that is with a lot of different labels. I think we can keep using Category, that is not define by the game, but use by us to set the color. Then we can keep the IG type as descriptor but use a small number of categories (green yellow blue red purple) ... I can suggest "anomalous" for purple color (unless you find more items with relevant other type)Talinwind (talk) 01:13, 10 August 2018 (UTC)
OK, here's how we'll handle this to allow obsolete products from previous releases to retain their original color, while allowing new or updated products to show the new header.
I have added a new optional "color" parm to the product infobox with the options of red, green, purple, red, yellow, and grey. If the Category used provides the proper color, you don't need the parm. On the other hand, if the color doesn't show properly based on the category, add the color parm to the infoxbox right after category and specify the color you want.
You can check out Walker Brain for an example. Let me know if this takes care of the issue - thanks! Ddfairchild (talk) 04:20, 12 August 2018 (UTC)
Nice, but it seems the color defined by category is broken somehow, it does not to anything. Gorla (talk) 05:03, 12 August 2018 (UTC)
You're going to have to give me some specific information here or an example - what exactly isn't working? Ddfairchild (talk) 07:11, 12 August 2018 (UTC)
If a predetermined category (Component (yellow), Consumable (red), Curiosity (green), Device (blue), Technology (blue), Trade commodity (green)) is given in the infobox, the indicated color is not shown. For example see Glass. Gorla (talk) 07:18, 12 August 2018 (UTC)
Looks like at this point you have to have the color parm there. If there is no value for it, it will use the category. I'll see if it's possible to just not have the color parm in place. At this point, I wouldn't make an effort to just "go out and add the color parm everywhere" as I'm sure we can get that change in. However if you are updating a product page for some other reason, go ahead and add "color = " to the inbox Ddfairchild (talk) 07:57, 12 August 2018 (UTC)
Nice ! but may I know how do you define the category then ? example: I modified Ion Battery to component, to get the yellow header, and Gorla change it to consumable with color yellow. I am fine, just wish to know how do you choose the category ? ^^" Talinwind (talk) 01:22, 13 August 2018 (UTC)
Check out the conversation on NibKing for his take on where the new categories are coming from. Ddfairchild (talk) 01:32, 13 August 2018 (UTC)
Roger that ! Sorry if I overstep earlier. Talinwind (talk) 03:16, 13 August 2018 (UTC)