GhostInTheMachineTalkAllHelpMiscModulesOtherLayoutPhotosProjectsScriptsTidyingTidyingSDTODOUBXWIP2023-11-16 21:08:08

Purpose edit

This script adds buttons that set a "standard" Short description edit summary.

Use edit

The buttons are added below the Short description Helper. They will set the text in the summary input field.

The buttons do nothing until the SDhelper gadget displays the Short description input box.

Currently, the script contains the text added by the buttons.

Prerequisites edit

The script probably only works on Real Vector. I have not tried it on other skins or on Evil Vector.

Installing edit

Add the following line to your common.js file.

{{subst:Lusc|User:GhostInTheMachine/SDsummary.js}}

Add the following line for elsewhere

mw.loader.load( '/w/index.php?title=User:GhostInTheMachine/SDsummary.js&action=raw&ctype=text/javascript' ); // Backlink: User:GhostInTheMachine/SDsummary.js

Notes edit

Currently does some dirty waiting around for the sdh element to be created. There has to be a better way. There is ...

  • 18 August 2022 — Changes to the Vector-2022 skin break this script. The #contentSub element is now only included in the HTML of sub-pages.
  • 5 July 2023 — added feedback — when a button is clicked, the summary input field to displayed
  • 16 November 2023 — SDNONE also sets the SD to none

Possible improvements edit

  • Add some nicer CSS
  • Hook into the SDhelper edit button, so that the SDsummary buttons are only created when the edit input field is created
  • Only display the buttons when the SD edit input field is being displayed
  • Split the boilerplate text out of the script and allow them to be configured per user
    • Pull them from a user sub-page
    • Store them in the user config and provide a way to edit them and to add more

See also edit