Community Wishlist Survey 2021/Editing/Make insertable markup customizable
Make insertable markup customizable
- Problem: List of markups to insert (insertable wiki markup) is currently limited too much
- Currently, there are 36 predefined markups (insertable wiki markup) at the bottom of the page (in the 2010 editor), and you only need to click on one of these to insert it in the article (examples from Wikipedia in French: [[Catégorie:]] [[Fichier:]] [[Media:]] [[Spécial:Diff/]] [[Spécial:Contribs/]] #REDIRECTION [[]] · [[commons:|]] [[m:|]] [[n:|]] [[q:|]] [[s:|]] [[b:|]] [[wikt:|]] [[v:|]] [[d:|]] · <></> <code></code> <math></math> <small></small> <u></u> <ref></ref> <ref name=""></ref> {{Références}} <noinclude>, etc.
- For example, I would like to be able to insert with one click the following code, which I would have customized myself, which takes a very long time to write in manual mode:
- <ref>{{Ouvrage|auteur=|titre=|année=|éditeur=|tome=|page=|pages totales=|lire en ligne=|consulté le=}}</ref>
- Who would benefit: Everyone
- Proposed solution: It would be extremely useful to allow each user to create predefined markups (insertable wiki markup) and make them available in the already existing list in order to be able to insert them with a single click. It would be super fast!
- Phabricator tickets:
- Proposer: Tubamirum (talk) 20:36, 17 November 2020 (UTC) (French Wiki)
Discussion
You should discuss with sysops to edit w:fr:mediawiki:Edittools for edit tools, or consider install w:en:MediaWiki:Gadget-charinsert-core.js on your wiki.Patsagorn Y. (Talk) 01:34, 19 November 2020 (UTC)
- Sorry, my bad. I support this if you mean something like "own charinsert" Patsagorn Y. (Talk) 01:39, 19 November 2020 (UTC)
@Tubamirum: I've written such script for Ukrainian wikipedia (uk:MediaWiki:Gadget-ImprovedEditTools.js), it has edit dialog and serializes your insertions to this format: uk:User:AS/AStools.js. The only drawback is that it has to use your subpage as data storage, because Mediawiki devs can't add local metadata for years. I think it would make sense to have native solution with proper backend storage and plugins support. AS (talk) 17:06, 7 December 2020 (UTC)
- @AS: your tool is very intresting. Another option could be saving them on the device via mw.store ValeJappo【〒】 18:35, 8 December 2020 (UTC)
- Nah, localStorage is not persistent enough for some use cases. AS (talk) 20:01, 8 December 2020 (UTC)
This and Tool for easy user buttons should probably be merged. They're essentially same task, the difference is only which controls on page you want to bind with your insertion functions. AS (talk) 20:01, 8 December 2020 (UTC)
@Tubamirum: Try Using AutoHotKey macros to make typing – and life – easier (other, similar, tools are available). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:44, 8 December 2020 (UTC)
This is basically the same as "Tool for easy user buttons" (below), just without the button. Both are fine. Either one needs to happen yesterday. Don't particularly care which. --Joalbertine (talk) 16:25, 17 December 2020 (UTC)
Voting
- Support That would definitely be far more convenient for editors to be able to just paste a long string of code than write all that code just to get the same effect. MarioSuperstar77 (talk) 18:39, 8 December 2020 (UTC)
- Support AS (talk) 20:01, 8 December 2020 (UTC)
- Support Kisnaak (talk) 21:24, 8 December 2020 (UTC)
- Support Ciao • Bestoernesto • ✉ 04:09, 9 December 2020 (UTC)
- Support No such user (talk) 09:10, 9 December 2020 (UTC)
- Support --Timeshifter (talk) 08:37, 10 December 2020 (UTC)
- Support --Green fr (talk) 18:41, 11 December 2020 (UTC)
- Support very important; there are workarounds for some parts of this, but a built in feature would be much better DGG (talk) 01:24, 12 December 2020 (UTC)
- Support Wedhro (talk) 20:06, 12 December 2020 (UTC)
- Support Gufosowa (talk) 10:50, 13 December 2020 (UTC)
- Support Krzysiek 123456789 (talk) 13:17, 14 December 2020 (UTC)
- Support I actually like this version better than the one way up above, to allow customizable buttons (since this version doesn't require any icons). — SMcCandlish ☺ ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 06:40, 15 December 2020 (UTC)
- Support — Draceane talkcontrib. 13:00, 15 December 2020 (UTC)
- Support GiFontenelle (talk) 21:23, 15 December 2020 (UTC)
- Support Lt2818 (talk) 14:45, 16 December 2020 (UTC)
- Support Joalbertine (talk) 16:32, 17 December 2020 (UTC)
- Support Shenme (talk) 01:18, 18 December 2020 (UTC)
- Support David1010 (talk) 13:10, 21 December 2020 (UTC)