Jump to content

User:Eejit43/scripts/displaytitle-editor

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Eejit43 (talk | contribs) at 19:15, 8 May 2025 (Syncing script documentation from GitHub (via script)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
User script
displaytitle-editor
Top: editor before opening
Bottom: editor while editing
DescriptionUser script to modify DISPLAYTITLEs
Author(s)Eejit43
First releasedApril 28, 2023; 2 years ago (2023-04-28)
UpdatedApril 26, 2025; 44 days ago (2025-04-26)
BrowsersTested on Chromium and Firefox
Skins
SourceUser:Eejit43/scripts/displaytitle-editor.js
GitHub repositorydisplaytitle-editor.ts

This user script adds an icon following the article title, which, when clicked, allows a DISPLAYTITLE to be added, modified, or removed.

Note: This script does not have very complex logic, and is currently unable to handle to handle templates such as {{italic title}}, {{lowercase title}}, and more, including DISPLAYTITLEs added by other templates such as infoboxes.

Recent notable changes

For a more detailed changelog, see the script's GitHub commit history.

  • April 26, 2025; 44 days ago (2025-04-26): Correctly place DISPLAYTITLE magic word beneath #REDIRECT markup.

Installation

Simple

Install Enterprisey's "script-installer" (at Preferences → Gadgets → Advanced → Tick Install scripts without having to manually edit JavaScript files (documentation)), then come back to this page and click the "Install" button in the infobox on the right.

Manual

Add the following to your common.js (or a skin specific JavaScript page):

{{subst:install user script|User:Eejit43/scripts/displaytitle-editor.js}}

Comments/bug reports

Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.