User:Polygnotus/Scripts/WikiTextExpander

This script allows you to quickly expand commonly used acronyms. New users can get confused by a sea of acronyms. This expands "WP:COI" and "[[WP:COI]]" to [[WP:COI|the conflict of interest guideline]].

You can also use it to save yourself some time if you type the same sentence over and over again. Type one word and have it be expanded to an entire paragraph.

WikiTextExpander
DescriptionExpands commonly used acronyms, and any other text you want.
Author(s)Polygnotus
UpdatedMarch 29, 2025
    (4 months ago)
SourceUser:Polygnotus/Scripts/WikiTextExpander.js

Installation

edit

First install User:Enterprisey/script-installer, then come back to this page and click the giant blue "Install" button in the infobox on the right.

Or install it manually by adding the below code to your Special:MyPage/common.js file:

{{subst:iusc|User:Polygnotus/Scripts/WikiTextExpander.js}}

Usage

edit

Type a comment that contains a commonly used acronym, select it and press Ctrl-Shift-Z.

Functionality

edit
  • Expands text when you press the hotkey.
  • Adds a menu to the More tab where you can configure the strings and change the hotkey.

Limitations

edit
  • Does not work in DiscussionTools.
  • Haven't tested it in VE.