Community Wishlist Survey 2019/Editing/Tool for easy user buttons
Appearance
Tool for easy user buttons
- Problem: Users can make their own buttons for better editing, which insert to edit area some templates, parts of code or patterns.
This can be done by editing user javascript page. But majority of users is not skilled enough to make these buttons, only some of them copy it from other users, but when some problem occurs, they are not able to repair it.
- Who would benefit: Editors using wikitext editor.
- Proposed solution: Make some extension, where every user can easily make his own buttons.
Tool can be based on User:Krinkle/Scripts/InsertWikiEditorButton.js. There will be table in the special:preferences
active name text before cusrsor text after cursor picture tooltip X coord {{Coord|lat |lon|}} Coordinates X hello Hello world insert hello world O speedy {{Delete}} nominates for deletion
- Values from table will be copied to script (with escaping problematic characters) by tool and user can easily make another buttons without care about script changes or about malicious script.
- More comments: This extension will create user javascript on active wiki or can create global script on meta.
- Phabricator tickets: T136152
- Proposer: JAn Dudík (talk) 14:08, 2 November 2018 (UTC)
Discussion
Arkanosis, Trizek, doesn't frwiki have something similar to this? I seem to recall that being touted as an advantage there. Whatamidoing (WMF) (talk) 20:23, 2 November 2018 (UTC)
- Whatamidoing (WMF): no, the only things we have are:
- a large collection of gadgets, each providing buttons around a common theme (references, patrolling…);
- a framework which is not
mediawiki.toolbar
but which provides the exact same features except it doesn't break everytime a non-backward compatible change is made in core, and that people can use in their own user scripts to add custom buttons.
- Maintenance of the local code has been a nightmare for years for the few of us who work on it — a double nightmare actually, as we have to support both
mediawiki.toolbar
, the local framework and the mix thereof. Hopefully, withmediawiki.toolbar
being retired, we'll be able to make both APIs use the same backend. - I think JAn's idea is quite good, given maintenance is a nightmare because of user scripts, not because of core or gadgets. If people had a way to setup their buttons without having to write code that breaks every few months, not only would they be happier, but maintainers like us would be too.
- Best regards — Arkanosis ✉ 12:47, 3 November 2018 (UTC)
- I agree with that maintenance need. Thank you for that proposal, JAn Dudík. I'm really looking forward an easy way to add buttons, no matter what's the editor. Trizek from FR 11:33, 5 November 2018 (UTC)
Voting
- Support James Martindale (talk) 19:35, 16 November 2018 (UTC)
- Support 4nn1l2 (talk) 01:06, 17 November 2018 (UTC)
- Support The Grid (talk) 02:03, 17 November 2018 (UTC)
- Support Akme (talk) 03:58, 17 November 2018 (UTC)
- Support Liuxinyu970226 (talk) 04:43, 17 November 2018 (UTC)
- Support ديفيد عادل وهبة خليل 2 (talk) 13:14, 17 November 2018 (UTC)
- Support As proposer. JAn Dudík (talk) 20:18, 17 November 2018 (UTC)
- Support Very good idea. Jules78120 (talk) 10:08, 18 November 2018 (UTC)
- Support Afernand74 (talk) 17:52, 18 November 2018 (UTC)
- Support — Draceane talkcontrib. 18:03, 18 November 2018 (UTC)
- Support i think having some sort of "snippets" functionality would be very useful. CodeMirror (which we already use for syntax highlighting) can provide this, but having them available as buttons, or a dropdown menu also would seem very useful to me. —TheDJ (talk • contribs) 13:09, 19 November 2018 (UTC)
- Support — 翼のない堕天使(faw) (talk) 03:52, 20 November 2018 (UTC)
- Support Novak Watchmen (talk) 00:37, 21 November 2018 (UTC)
- Support Tris T7 (talk) 02:39, 21 November 2018 (UTC)
- Support Hmxhmx 11:05, 24 November 2018 (UTC)
- Support ~ Seb35 [^_^] 22:31, 24 November 2018 (UTC)
- Support HouseGecko (talk) 13:27, 26 November 2018 (UTC)
- Support Sir Shurf (talk) 16:08, 26 November 2018 (UTC)
- Support Dvorapa (talk) 13:09, 27 November 2018 (UTC)
- Support YFdyh000 (talk) 17:18, 27 November 2018 (UTC)
- Support Framawiki (talk) 18:56, 27 November 2018 (UTC)
- Support Daniel Case (talk) 04:21, 28 November 2018 (UTC)