Template talk:Userbox
| This is the talk page for discussing improvements to the Userbox template. |
|
| Archives: 1, 2Auto-archiving period: 3 months |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
| To help centralize discussions and keep related topics together, Module talk:Userbox redirects here. |
Template-protected edit request on 13 September 2025
editThis edit request to Module:Userbox has been answered. Set the |answered= parameter to no to reactivate your request. |
Simply revert Module:Userbox to this revision so that userboxes affected by a recent edit will appear normal again. – MrPersonHumanGuy (talk) 02:01, 13 September 2025 (UTC)
- This happened to my userboxes too! It's annoying to see the gray square on the right (even there is no "id") and borders left uncoloured being present too... Uo・ェ・oU MatchaMint (talk) 04:29, 13 September 2025 (UTC)
- Done. @Matrix: Please investigate and test proposed changes. Johnuniq (talk) 04:45, 13 September 2025 (UTC)
- Hmmm, testcases seemed to work perfectly. I'll add more testcases and check again. —Matrix ping mewhen u reply (t? - c) 10:25, 13 September 2025 (UTC)
- Ok, I got the grey square on the right to disappear, now let me try to figure out why the border colour/width aren't working. —Matrix ping mewhen u reply (t? - c) 10:38, 13 September 2025 (UTC)
- @MrPersonHumanGuy, MatchaMint, and Johnuniq: it should work now (see testcases), can you guys confirm? —Matrix ping mewhen u reply (t? - c) 10:54, 13 September 2025 (UTC)
- I've added some testing of the float parameter. When left out the sandbox version does not match. See Template:Userbox/testcases#Multiple_boxes_together. Another issue is that the colors are different. Was this a deliberate choice? -- WOSlinker (talk) 10:58, 13 September 2025 (UTC)
- @WOSlinker: Fixed the float issue, I forgot to add it to the templatestyles. The colours was a deliberate choice, so that it is closer to Codex. I don't mind changing the colours back to the same ones if it is a problem and adding some
html.skin-theme-clientpref-nights. —Matrix ping mewhen u reply (t? - c) 11:12, 13 September 2025 (UTC)- If no one objects, I'm gonna assume I have a silent consensus to go ahead (and change the colours slightly). —Matrix ping mewhen u reply (t? - c) 14:16, 14 September 2025 (UTC)
- @WOSlinker: Fixed the float issue, I forgot to add it to the templatestyles. The colours was a deliberate choice, so that it is closer to Codex. I don't mind changing the colours back to the same ones if it is a problem and adding some
- I've added some testing of the float parameter. When left out the sandbox version does not match. See Template:Userbox/testcases#Multiple_boxes_together. Another issue is that the colors are different. Was this a deliberate choice? -- WOSlinker (talk) 10:58, 13 September 2025 (UTC)
|
- @Matrix: Can we change the colors back to the way it was before? It is causing some userboxes to appear different colors where previously they were the same color, compare e.g. the admin and checkuser userboxes (see right). If there is a good reason to change the colors beyond just personal preference (e.g. some accessibility concern), I am also open to the option of modifying the {{User rights}} template (which {{User wikipedia/CheckUser}} is based on) to use the new colors. (Though it looks like the new colors make the admin userbox hard to read in dark mode, so it might need some more tinkering.) Mz7 (talk) 08:03, 16 September 2025 (UTC)
- @Mz7: sure, done, it was a silent consensus after all. Yes, it does need further tinkering and maybe bot work. I made some temporary changes at Template:Userbox/styles.css. —Matrix ping mewhen u reply (t? - c) 17:05, 16 September 2025 (UTC)
- @Matrix: Can we change the colors back to the way it was before? It is causing some userboxes to appear different colors where previously they were the same color, compare e.g. the admin and checkuser userboxes (see right). If there is a good reason to change the colors beyond just personal preference (e.g. some accessibility concern), I am also open to the option of modifying the {{User rights}} template (which {{User wikipedia/CheckUser}} is based on) to use the new colors. (Though it looks like the new colors make the admin userbox hard to read in dark mode, so it might need some more tinkering.) Mz7 (talk) 08:03, 16 September 2025 (UTC)
EmDashUser002 – Dark mode error
editIssue Description
editChanging text colour without adjusting according to background significantly reduces contrast. For example, on Template:Userbox, most userbox info—especially the exemplars near the bottom of the page—are barely legible.
I understand that "Color" is still in beta, but I hope this matter will be reasonably addressed.
Cordially.
EmDashUser002 (Talk | Contribs) @ 07:16, 3 November 2025 (UTC)
Edit request: new arg 'bodymargin'
editPlease implement new arg 'bodymargin' to avoid jamming a floated user box up against wrapping page text. The current module sandbox revision 1320512121 of 03:46, 5 November 2025 (diff) is designed to solve this by: a) allowing the user to specify the desired separation, and b) providing a minimum separation by default for floated boxes. Normal flow (unfloated) is not affected.
The Module sandbox is invoked by the Template sandbox, and new tests at Template:Userbox/testcases#Body margin all pass. I had considered an alternative, broader design with a new param 'bodystyle' instead of 'bodymargin' which would encompass any css property, including margin, but decided it was too broad and this was better at least for now, as this resolves an actual existing problem with userboxes, and it's not clear if being able to add general style to the box is needed right now.
This is only my second or maybe third attempt at making changes to a Module, so extra eyeballs here would be worthwhile. As a postscript: regardless if this is accepted or not, any comments on the code with respect to style, best practices, or other ways to improve the code would be appreciated. I left more extensive in-line comments in the sandbox than I think are needed for live, so feel free to abridge or drop them if they appear superfluous. Mathglot (talk) 04:38, 5 November 2025 (UTC)
nocat problem
editI amended User:SashaTheLuckyGirl/My Userbox Collections/WDSS Member to pass |nocat=true through to {{userbox}}, with the intention of getting Category:WDSS Members out of itself, but my amendment is being ignored. Why is this? --Redrose64 🌹 (talk) 23:35, 12 November 2025 (UTC)
- There was another place (not in the userbox) that needed fixing. -- WOSlinker (talk) 18:20, 13 November 2025 (UTC)
- Oh yes, Thank you --Redrose64 🌹 (talk) 23:24, 13 November 2025 (UTC)
Dark mode
editShould we just set notheme for userboxes? I feel like most userboxes have a design, with a background and a text color. Even when there is no text color (so designed with dark text), then that is still the intended design. There is nothing that is going to make a non darkmode design like that fully dark mode compatible... Without notheme, the skin overrides for elements with inline background colors start kicking in and we have had quite a few reports about things ending up with white text against a light background in that case... So i feel notheme might be warrented in this specific case. —TheDJ (talk • contribs) 16:29, 19 November 2025 (UTC)
- I'm currently experiencing this problem at User:Est. 2021/Userboxes. That's a shame. Est. 2021 (talk · contribs) 21:25, 26 November 2025 (UTC)
- @Jonesey95: Do you have any advice? Est. 2021 (talk · contribs) 21:35, 26 November 2025 (UTC)
- I don't have good advice at this time. There are so many userboxes that I didn't feel that I could make a universal change that would have only positive effects. Someone with more knowledge of dark mode could probably do something smart here. I put in a few changes recently that fixed a few Linter errors but may not have helped with many actual display issues. – Jonesey95 (talk) 17:22, 27 November 2025 (UTC)