GhostInTheMachine • Talk • All • Help • Misc • Modules • Other • Layout • Photos • Projects • Scripts • Tidying • TidyingSD • TODO • UBX • WIP • 2024-08-11 12:48:04 |
Purpose
editThis script adds buttons that set a "standard" Short description edit summary.
Use
editThe 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
editThe script probably only works on Real Vector. I have not tried it on other skins or on Evil Vector.
Installing
editAdd 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
editCurrently 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