Community Wishlist Survey 2021/Miscellaneous/Customizable sidebar
Customizable sidebar
- Problem: Right now we have a "one size fits all" situation, where all users get the same sidebar menu. It doesn't matter if you are an occasional reader, a first-time contributor or a veteran with 15+ years of experience. For me (and probably many other long-time users) the sidebar is almost useless. To be quite honest there are only three positions in the sidebar of my homewiki that I sometimes use; I have to get to my "favorite" pages via the watchlist, search bar or URL bar in my browser. In my opinion users should be able to customize their own sidebars. Some might want to put there the articles they often check, some external links to often used references or tools, while some might prefer the default setting.
- Who would benefit: Experienced users as they can have their workflow improved
- Proposed solution: I'd have some ideas but don't know if any of them is good. I would see it as a Special Page (Special:Customize sidebar? Additional tab in Preferences?) because I don't think we can trust users to not break their sidebars if that was done in any other way (like creating own pages like MediaWiki:Sidebar). The special page can check if everything (or at least technical aspect) is okay with user's input. The special page could be a form that looks somewhat like this:
Section: (Main) [buttons: create new, edit, remove] [checkbox: collapsible Y/N] | ||
---|---|---|
Link: [Text Input] | Name to display: [Text Input] | [Buttons: Edit Remove] |
Link: [Text Input] | Name: [Text Input] | [Buttons: Edit Remove] |
- Of course everything done in OOUI, where you can drag and drop elements, with options to create new elements, edit them or whatever, decide whether or not to display the logo, etc. The "Tools" or other "page-specific" sections ("Print/export", "Languages") of the sidebar should not be customizable (so that users cannot break them).
- More comments:
- Phabricator tickets:
- Proposer: tufor (talk) 22:04, 16 November 2020 (UTC)
Discussion
- It's really easy to add and remove from sidebars using CSS and Javascript. This doesn't seem like a good investment. --Izno (talk) 22:46, 16 November 2020 (UTC)
- It jumps and it is annoying. Also, not everyone can code in js. tufor (talk) 01:17, 17 November 2020 (UTC)
- I understand "jump" but "not everyone can code in JS" is not a barrier. It's a single line of well-known Javascript to add a single item in the sidebar, and then just repeat for each item you want to add. --Izno (talk) 19:49, 17 November 2020 (UTC)
- @Izno: If you don't mind, I am apparently out of the loop on this and am wondering if you can post or link to an example of the single line of well-known Javascript here. I want to have it so I can make such changes for myself and I think it would be good to have just for the purposes of record keeping and for helping others. —The Editor's Apprentice (talk) 19:33, 20 November 2020 (UTC)
- @The Editor's Apprentice: See mw:ResourceLoader/Core modules#addPortletLink. You can use it to add a link to just about any sidebar or dropdown in the skin. --Izno (talk) 20:01, 20 November 2020 (UTC)
- @Izno: Great, thank you for the link. That is definitely more than a single line of Javascript. It took me a bit to work out, but I think I understand it now and have a version running on my home wiki, English Wiktionary, and it is working quite well. Cheers. —The Editor's Apprentice (talk) 21:33, 20 November 2020 (UTC)
- @The Editor's Apprentice: See mw:ResourceLoader/Core modules#addPortletLink. You can use it to add a link to just about any sidebar or dropdown in the skin. --Izno (talk) 20:01, 20 November 2020 (UTC)
- @Izno: If you don't mind, I am apparently out of the loop on this and am wondering if you can post or link to an example of the single line of well-known Javascript here. I want to have it so I can make such changes for myself and I think it would be good to have just for the purposes of record keeping and for helping others. —The Editor's Apprentice (talk) 19:33, 20 November 2020 (UTC)
- I understand "jump" but "not everyone can code in JS" is not a barrier. It's a single line of well-known Javascript to add a single item in the sidebar, and then just repeat for each item you want to add. --Izno (talk) 19:49, 17 November 2020 (UTC)
- It jumps and it is annoying. Also, not everyone can code in js. tufor (talk) 01:17, 17 November 2020 (UTC)
- I like this idea. I currently use my user page, in part, for useful links (and I know others do too), which would work much better as a proper menu, and would be really handy if it were accessible on any page (sidebar would be great). -EdGl (talk) 03:25, 17 November 2020 (UTC)
- I like this idea. I can't write the code necessary to do this on my own and I, too, keep a list of things on my userpage that would, more usefully to me, be on the sidebar. Jessamyn (talk) 04:38, 17 November 2020 (UTC)
- I have created a gadget for this on the Romanian Wikipedia: ro:Wikipedia:Unelte/Scripturi/Sidebar (sorry, no translation). You could probably use it in any wiki, although it requires non-trivial configuration. A nice Twinkle like control page could make it more useful.--Strainu (talk) 12:04, 17 November 2020 (UTC)
- I like it. I never use the sidebar and I've been on Wikipedia for nearly 15 years. Livingston7 (talk) 16:06, 17 November 2020 (UTC)
- I agree that we could that sidebar is too complex for beginners and too poor for advanced users. For advanced users, I've designed a new sidebar with useful informations and links. See the French version fr:w:Utilisateur:PAC2/Rock your side box and the English outdated version en:w:User:PAC2/just a click away PAC2 (talk) 07:41, 9 December 2020 (UTC)
Voting
- Oppose I think this would be useless, since there are already tools for that, and because adding them via js isn't that difficult--ValeJappo【〒】 18:32, 8 December 2020 (UTC)
- Support If it ever gets implemented it should only alter javascript and not make major changes to the website's layout. MarioSuperstar77 (talk) 20:04, 8 December 2020 (UTC)
- Support Useful, and custom toolbar buttons. But a good program framework is enough, no UI is needed. YFdyh000 (talk) 23:48, 8 December 2020 (UTC)
- Oppose CSS and JS scripts can already do that. CaptainEek Edits Ho Cap'n!⚓ 03:13, 10 December 2020 (UTC)
- Support Ciao • Bestoernesto • ✉ 04:06, 10 December 2020 (UTC)
- Support JPxG (talk) 05:59, 10 December 2020 (UTC)
- Support —The Editor's Apprentice (talk) 04:31, 11 December 2020 (UTC)
- Support BoldLuis (talk) 17:32, 11 December 2020 (UTC)
- Support. Meiræ 22:06, 11 December 2020 (UTC)
- Support DGG (talk) 01:29, 12 December 2020 (UTC)
- Support We can do a lot of the shortcuts we already have normally in just JS, but we have them as gadgets built-in for convenience. It's not always about "there's already a way to do this", moreover, "how can we make this better? convenient? efficient?" This is an example of a tool that I definitely see as handy. WhoAteMyButter (talk) 05:34, 12 December 2020 (UTC)
- Support Strainu (talk) 10:19, 12 December 2020 (UTC)
- Support per WhoAteMyButter, Klaas `Z4␟` V: 16:22, 12 December 2020 (UTC)
- Support Gdarin | talk 17:21, 12 December 2020 (UTC)
- Oppose Various user-side scripts already do this, in innumerable ways. This would just be more wheel-reinvention. — SMcCandlish ☺ ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 07:12, 15 December 2020 (UTC)
- Support SeGiba (talk) 18:13, 15 December 2020 (UTC)
- Support not everyone is confident, or even familiar with, JS and userscripts – Teratix ₵ 06:19, 16 December 2020 (UTC)
- Support Joalbertine (talk) 08:41, 18 December 2020 (UTC)
- Support There is a gagdet like this on French Wikipedia. Golmore (talk) 12:29, 21 December 2020 (UTC)
- Support David1010 (talk) 13:15, 21 December 2020 (UTC)
- Support S8321414 (talk) 14:15, 21 December 2020 (UTC)
- Support Nachtbold (talk) 15:08, 21 December 2020 (UTC)