User:BrandonXLF/QuickEdit

From WikiProjectMed
Jump to navigation Jump to search

< BrandonXLF's scripts | JS | Base template

QuickEdit
[quick edit]
The script being used.
DescriptionEdit a section of a page without reloading
QuickEdit adds a link .. | quick edit ] to the heading of each section to edit the section in a mini editor. The editor appears inline and allows you to make changes to a section without reloading. The editor has support for reviewing your changes, previewing your changes, marking as a minor edit, adding a summary, and handling edit conflicts.
Author(s)User:BrandonXLF
StatusWorking
First releasedDecember 26, 2019
SourceQuickEdit.js (git)
GitHub repositorywikipedia-user-scripts

QuickEdit adds a link .. | quick edit ] to the heading of each section to edit the section in a mini editor. The editor appears inline and allows you to make changes to a section without reloading. The editor has support for reviewing your changes, previewing your changes, marking as a minor edit, adding a summary, and handling edit conflicts.

Installation

  • Add the following to your common.js or your skin.js (this method is deprecated and may be removed):
importScript('User:BrandonXLF/QuickEdit.js'); // [[User:BrandonXLF/QuickEdit.js]]
  • Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/QuickEdit.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/QuickEdit.js]]
  • To install on other wikis (for instance, globally in your global.js on the Meta-Wiki), use the following code:
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/QuickEdit.js&action=raw&ctype=text/javascript');
  • After installing reload the page and clear your cache

Comments/Bugs

Comments are welcome on my talk page, be sure to indicate that you're talking about this script in the title. I would really like any suggestion to make the script run better.