Community Wishlist Survey 2022/Editing/Case conversion

Case conversion

  • Problem: Sometimes an editor needs to change the case of existing text, e.g., if caps lock was inadvertently on. Retyping the text in the correct case is laborious and error prone.
  • Proposed solution: Provide edit tools to change the case of existing text.
    • Lower case
    • Upper case
    • Sentence case
    • Title case
    • Reverse existing case
  • Who would benefit: Editors needing to capitalize existing text, remove capitalization, etc.
  • More comments:
  • Phabricator tickets: T52745
  • Proposer: Chatul (talk) 16:06, 11 January 2022 (UTC)

Discussion

In order to change text from uppercase to lowercase, wrap the text in {{lc:}}. For the reverse, from lowercase to uppercase, use {{uc:}}. Those are both functions in the software, you do not need templates for those.--Snævar (talk) 17:49, 11 January 2022 (UTC)

Don't forget to use subst: if you want to save the change, e.g. replace FOO by {{subst:lc:FOO}} (which saves as foo) rather than {{lc:foo}}. Certes (talk) 18:06, 11 January 2022 (UTC)
Also see mw:Help:Magic words for more formatting modifiers (lcfirst, uc, ucfirst).--Strainu (talk) 07:50, 12 January 2022 (UTC)
subst: is a game-changing model to fix mistakes. {{subst:lc:FOO}} is to fix mistake, however third-party sites are avaliable. Thingofme (talk) 11:53, 13 January 2022 (UTC)
There are browser tools to do this; for example, TitleCase plugin for Firefox. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:58, 12 January 2022 (UTC)

MS Word has a little-known keyboard shortcut (Shift+F3) that cycles the selected text through all four capitalisation types. It's a lot more intuitive than some set of sequences like Alt,something,1 / Alt,something,2 / etc. {{Subst:lc: is a fair bit of typing, and works in source-edit mode, not visual-edit. Pelagic (talk) 01:56, 15 January 2022 (UTC)

The fact that we can't used in visual editing makes {{subst:lc very terrible and hard to cover. Thingofme (talk) 10:41, 15 January 2022 (UTC)

Copy the text, Ctrl+X, Ctrl+T, type google.com, Ctrl+Enter, type case converter, enter, click on any of the top few result, Ctrl+V, select desired output, Ctrl+C, Ctrl+W, Ctrl+V. But one thing need to check is would it also converted cases of things undesirably, like words like "iPhone". Same problem will also be faced by any integrated assistance tool.C933103 (talk) 01:06, 16 January 2022 (UTC)

There is w:user:WikiMasterGhibif/capitalize; not sure if it still works though. ~~~~
User:1234qwer1234qwer4 (talk)
18:49, 8 February 2022 (UTC)

Voting

  •   Support Pelagic (talk) 05:18, 29 January 2022 (UTC)
  •   Support Subst:lc is only used in source mode, same in my discussion above. Thingofme (talk) 15:17, 30 January 2022 (UTC)
  •   Support Libcub (talk) 21:50, 30 January 2022 (UTC)
  •   Support daSupremo   22:09, 30 January 2022 (UTC)
  •   Support MONUMENTA (talk) 00:03, 1 February 2022 (UTC)
  •   Support Sabelöga (talk) 15:36, 2 February 2022 (UTC)
  •   Support Rotavdrag (talk) 11:13, 3 February 2022 (UTC)
  •   Support Ayumu Ozaki (talk) 06:17, 6 February 2022 (UTC)
  •   Support --Ciao • Bestoernesto 18:45, 6 February 2022 (UTC)
  •   Support I love this idea. paul2520 (talk) 23:36, 6 February 2022 (UTC)
  •   OpposeTheDJ (talkcontribs) 18:31, 7 February 2022 (UTC)
  •   Support Sunpriat (talk) 23:36, 10 February 2022 (UTC)