Community Wishlist Survey 2022/Editing/Case conversion

From Meta, a Wikimedia project coordination wiki

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)[reply]

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)[reply]

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)[reply]
Also see mw:Help:Magic words for more formatting modifiers (lcfirst, uc, ucfirst).--Strainu (talk) 07:50, 12 January 2022 (UTC)[reply]
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)[reply]
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)[reply]

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)[reply]

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)[reply]

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)[reply]

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

Voting