User:Ohconfucius/script/formatgeneral

Preamble
By long-standing convention and as detailed at the Manual of Style, a Wikipedia article needs to use consistent formatting. Because there are a number of external style conventions that exist, articles are vulnerable to creeping inconsistency through being edited potentially by hundreds of editors. These inconsistencies are often difficult to identify quickly, and this script has been developed as an aid to the careful manual oversight of consensus formatting rules.
 * Within-article consistency of formatting

Functions
Functions performed include:
 * add correct hyphenation
 * add convert template for simple non-metric units of measure (metric conversion) *NEW FEATURE added September 2023
 * superscripted ordinals
 * Celsius spelling errors


 * Convert degree symbols into ° symbol, ensure preceding space
 * add missing space between wikilinks
 * Celsius or Fahrenheit
 * Fix common naming error (be careful with this one)
 * full stop and nbsp fixes
 * hash fixes
 * improper capitalisation within section headings
 * removing links from within section headings
 * other improper capitalisation
 * rem bolding from linked AND bolded terms
 * rem leading and lagging spaces within wikilinks
 * rem linked copyright symbol
 * rem redundant spaces underlining and punctuation
 * remove scroll bar for reflists
 * remove commas from numerical values in convert template
 * remove flagicons from birth and death
 * remove leading zeros from convert template
 * Remove surprise or 'Easter egg' diversions linking unit name to orders of magnitude articles
 * symbol for 'times' and dashes
 * turn letter 'x' into symbol '×'

Actions
Once you are in edit mode, there is a button in the toolbox in the left margin
 * General formatting function – executes the formatting script, adds an edit summary, and then displays a diff of the edit.
 * Downcasing of certain strings is achieved by use of magic bullets. These may show up in the edit window as being wrapped in the  template. Upon saving, these will become lower case strings.