Wikipedia:WikiProject User scripts/Scripts/Formatter/Auto Edit Summary/doc

The Formatter script automatically performs a number of common formatting operations.

To install, simply include this line in your monobook.js:

importScript('Wikipedia:WikiProject_User_scripts/Scripts/Formatter');
importScript('Wikipedia:WikiProject_User_scripts/Scripts/Formatter/Auto Edit Summary');

Make sure you refresh (Ctrl+F5) after saving to complete the installation.

When using an edit box, you should have a tab called format. Click this to use Formatter. Make sure you preview all the changes before saving!

Functions

  • Standardises and removes excess whitespace (tabs, spaces, carriage returns etc.)
    • Does not break special case of using a space at the start of the line for preformatted data
  • Converts dashes, squared2 and degree° symbols to Unicode characters, e.g. –, – or – to – (U+2013)
    • Makes sure not to break items which should not be converted to Unicode
  • Fixes some common non-standard headings:
    • Standard headings have whitespace and capitalisation standardised, e.g. "== eXterNAL LiNKs ==" would become "==External links=="
    • "see also", "related topics", "related articles", "internal links" and "also see" sections become "See also"
    • "external links", "outside links", "web links" and "exterior links" sections become "External links"
      • Likewise with the singular case, e.g. "exterior link" becomes "External link"
    • "references", "reference", "sources" and "source" sections have whitespace & capitalisation standardised as above
  • Standardises appearances of categories, e.g. [[category : Test]] to [[Category:Test]]
  • Fixes common syntax errors, e.g. converts <b>text</b> to '''text'''
  • Fixes broken internal and external links (currently only treats http:// links as external links), e.g. corrects [dog] to [[dog]]
  • Removes external images and removes code from internal images
  • Simplifies some links, e.g. [[Dog|dog]] to [[dog]] and [[Dog|dogs]] to [[dog]]s
  • Loads as a tab on edit pages

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.