Community Wishlist Survey 2021/Editing/Tool for easy user buttons

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
  • 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 cursor text after cursor picture tooltip
X coord {{Coord|lat |lon|}}   Coordinates
X hello Hello world   insert hello world
O speedy {{Delete}}   nominates for deletion
X char ʘ   some weird character
  • 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: originally proposed in 2019 survey
  • Phabricator tickets:T136152
  • Proposer: JAn Dudík (talk) 09:36, 23 November 2020 (UTC)


  • @JAn Dudík: The #5 wish of the 2017 Wishlist was the Template Wizard. Are all the insertions that you're thinking of with these custom buttons related to inserting templates? If so, does the template wizard suffice? I guess the big difference is that the user has to know what the template is called because they need to search for it in the wizard, but the other functionality seems to be there, along with a good interface for inserting particular parameters etc. —Sam Wilson 10:00, 23 November 2020 (UTC)
    • It is probably not the same. My proposal is about buttons, which can insert any string, either{{Template foo|with parameters}} as lorem ipsum or . Somebody uses it for inserting single characters (eg. some ligatures in wikisource, ipa chars on wiktionary etc.), somebody for article skeleton, somebody for template. JAn Dudík (talk) 13:50, 23 November 2020 (UTC)
  • Yes, I wanted to come up with a similar proposal. This would be really useful. Another point is that the bad code is often copied over many JS pages making these codes inefficient. — Draceane talkcontrib. 17:36, 24 November 2020 (UTC)
  • This proposal reminds me of an older feature request to allow the definition of a number of scrap-macros in preferences by inserting user-definable keywords (like @mymacro1@) into the wiki markup which would be expanded according to their definition by the frontend when pressing "save". For users of visual frontends, such keywords could be dropped into the source by buttons or hotkeys, so it would work regardless of the way a user edits a page. (See [[1]]) Is this about what you want to accomplish as well? --Matthiaspaul (talk) 19:36, 25 November 2020 (UTC)
    Not exactly. if I write @coord@, I am not able to add parameters. And there is no difference between @coord@ and {{subst:User/mytemplate}}. With button I can easily insert to text empty template {{Coord||}} and only add values.
    Big pain of modern UI in many programs is ribbon menu, where are groups of tools and only one of them is active. But when I want use one or two tools in every group, i must permanently switch. In current wikitext editor is <nowiki> in one submenu, character t͡s in second and cite tools in third. ANd some more useful things are under textarea. But my user buttons are in the top, accesible from all submenus. JAn Dudík (talk) 20:54, 25 November 2020 (UTC)


  •   Support Imetsia (talk) 18:43, 8 December 2020 (UTC)
  •   It is doubtful This could be a convenient feature, but I am not sure whether it is important enough or not for Wikipedia right now since the buttons are used exclusively on user profiles. MarioSuperstar77 (talk) 18:52, 8 December 2020 (UTC)
  •   Strong support There are contents (templates, patterns of wikicode...) that I add very often, as a patroller, and beeing able to easily customize my wikitext editor toolbar with buttons that insert customized patterns would be very usefull. — Jules Talk 23:11, 8 December 2020 (UTC)
  •   Support Ciao • Bestoernesto 04:10, 9 December 2020 (UTC)
  •   Support 1Mmarek (talk) 11:55, 9 December 2020 (UTC)
  •   Support Nehaoua (talk) 22:38, 9 December 2020 (UTC)
  •   Support // Lollipoplollipoplollipop :: talk 05:39, 10 December 2020 (UTC)
  •   Support --Omnilaika02 (talk) 11:31, 10 December 2020 (UTC)
  •   Support Libcub (talk) 19:04, 10 December 2020 (UTC)
  •   SupportBilorv (talk) 09:53, 11 December 2020 (UTC)
  •   Support BoldLuis (talk) 15:20, 11 December 2020 (UTC)
  •   Support. Meiræ 21:48, 11 December 2020 (UTC)
  •   Support Robins7 (talk) 22:15, 11 December 2020 (UTC)
  •   Support DGG (talk) 01:02, 12 December 2020 (UTC)
  •   Support Podzemnik (talk) 21:20, 13 December 2020 (UTC)
  •   Support This, or something like it (e.g. a custom drop-down menu in the editing tools below the editing window) would be super-badass.  — SMcCandlish ¢ >ʌⱷ҅ʌ<  05:55, 15 December 2020 (UTC)
  •   Support Yes please! — Draceane talkcontrib. 13:01, 15 December 2020 (UTC)
  •   Support Sultec (talk) 11:18, 17 December 2020 (UTC)
  •   Strong support OMG Yes! This would have saved me hours on Wikisource! (Proof-reading and styling, adding the same few templates over and over and over again!) Take my money! --Joalbertine (talk) 15:29, 17 December 2020 (UTC)
  •   Support --Dick Bos (talk) 16:14, 17 December 2020 (UTC)
  •   Support --Sphilbrick (talk) 14:04, 19 December 2020 (UTC)
  •   Support Would be useful. Uanfala (talk) 23:48, 19 December 2020 (UTC)
  •   Support Shagil Kannur (talk) 10:36, 20 December 2020 (UTC)
  •   Support Iva (talk) 18:24, 20 December 2020 (UTC)
  •   Support David1010 (talk) 13:10, 21 December 2020 (UTC)
  •   Support S8321414 (talk) 14:13, 21 December 2020 (UTC)