Wikipedia:AutoWikiBrowser/General fixes

Chapters: Core · Database scanner · Find and replace · Regular expressions · General fixes

General fixes is a set of semi-automated edits that are enabled by default in AutoWikiBrowser. They are intended to be uncontroversial and require minimal human oversight; many are cosmetic and improve wikitext readability but do not affect display to readers.

This page lists the general fixes, although it may not be exhaustive. General fixes are optimised for en-wiki with some variation for other language wikis. Not all general fixes are suitable for all languages. Some general fixes are disabled on pages containing <includeonly> or <noinclude>.

Fix dates (FixDates)

Template Redirects (TemplateRedirects)

Multiple issues (MultipleIssues)

DEFAULTSORT insertion and fixes (SetDefaultSort)

People Categories (FixPeopleCategories)

Fix syntax (FixSyntax)

Citation templates (FixCitationTemplates)

Redirect tagger (RedirectTagger)

Fix syntax inside redirects (FixSyntaxRedirects)

Add missing {{Reflist}} (AddMissingReflist)

Duplicate Named References (DuplicateNamedReferences)

Duplicate Unnamed References (DuplicateUnnamedReferences)

Fix Date Ordinals/Of (FixDateOrdinalsAndOf)

This is a MOS and minor fix

Fix categories (FixCategories)

Fix empty references (SimplifyReferenceTags)

Fix images (FixImages)

Fix main article (FixMainArticle)

This is a MOS fix

Fix non-breaking spaces (FixNonBreakingSpaces)

This is a MOS fix

Fix reference tags (FixReferenceListTags)

Fix temperatures (FixTemperatures)

FixReferenceTags (FixReferenceTags)

Mdashes (Mdashes)

This is a MOS fix (see WP:DASH)

Remove empty comments (RemoveEmptyComments)

ReorderReferences (ReorderReferences)

SameRefDifferentName (SameRefDifferentName)

References after punctuation (RefsAfterPunctuation)

Sort meta data (MetaDataSorter)

Interwikis (Interwikis)

Categories (RemoveCats)

Maintenance Tags (MoveMaintenanceTags)

Deletion/Protection Tags

Portal templates (MovePortalTemplates)

See also (MoveSeeAlso)

Cite Template Dates (CiteTemplateDates)

Bold titles (BoldTitle)

Not applied if page has an imagemap on the page or noinclude transclusion

MinorFixes

Interwiki conversions (InterwikiConversions)

English-language fixes

Template conversions (Conversions)

Fix People life date ranges (FixLivingThingsRelatedDates)

  • Replaces "John Doe (b. 1978)" with "John Doe (born 1978)" and "John Doe (d. 1978)" with "John Doe (died 1978)" in the lead section of articles per MOS:DOB.
  • Replaces "John Doe (born: 1978)" with "John Doe (born 1978)" in the lead section of articles per MOS:DOB.
  • Replaces "John Doe (born on February 3, 1978)" with "John Doe (born February 3, 1978)" in the lead section of articles per MOS:DOB.
  • Replaces "John Doe (1978-)" with "John Doe (born 1978)" per MOS:DOB (not applied within infoboxes).
  • Sets endash in born/died date range per WP:ENDASH.

Fix headings (FixHeadings)

  • Delinks wikilinks in headings per WP:HEAD (where article has < 6 wikilinks in headings)
  • Corrects case of "References" section per WP:HEAD.
  • Fixes common naming errors of "See also" and "External links" sections. For instance it renames "External link" to "External links" per WP:ELCITE and "Also see" to "See also" per WP:SEEALSO.
  • Changes "Reference" to "References" and "Source" to "Sources" per WP:FNNR.
  • Removes colon from end of heading names
  • Removes <br/> from headings
  • If no level 2 heading in article, remove a level from all headings per WP:HEAD.
    • Doesn't consider the "References", "See also", or "External links" level 2 headings when counting level two headings.
    • Only apply if all level 3 headings and lower are before the first of "References"/"External links"/"See also".
  • Removes bold from headers per WP:HEAD as it makes a visible difference only in the article's table of contents.
  • Removes bad headings from start of article such as "About", "Description", "Overview", "Definition", "Profile", "Background", "Intro", "Introduction", "Summary" etc.
  • Removes heading at start of page if heading matches article title (heading not removed if not first heading)
  • Fixes unbalanced levels to "See also", "External links" and "References" sections (e.g. ==External links= becomes ==External links==)
  • Note: Does not alter optional spacing at start and end of heading (i.e. no conversion between == Heading == and ==Heading==)
  • Sets one blank line before each heading per MOS:HEAD, NOT for subheadings immediately after a heading

Merge See also (MergeSeeAlso)

Merge Portals (MergePortals)

Mainspace tagger

Mainspace tagger skips redirects and soft redirects to wiktionary.

Tagger (Tagger)

Dated tags (TagUpdater)

Talk page general fixes

Note: When making fixes to talk pages, it is helpful to also use the custom module User:Magioladitis/WikiProjects for template redirects.

General

WikiProjectBannerShell fixes (WikiProjectBannerShell)

(Currently works only with WikiProject templates named "WikiProject foo" and not with their redirects, so using User:Magioladitis/WikiProjects as a custom module is helpful)
If WikiProjectBannerShells or one of its redirects is found, it does the following:
  • Removes any duplicated parameters if they have the same value.
  • Removes |collapsed=no
  • Bypasses redirects
  • Adds explicit call to first unnamed parameter |1= if missing.
  • If WikiProject Biography exists inside the shell:
    • with |living=no then removes |blp=yes if exists
    • with |living=yes then adds |blp=yes
    • with |blpo=yes then adds |blpo=yes
  • If {{blp}} found then removes it and adds |blp=yes
(Currently works only with WikiProject templates named "WikiProject foo" and not with their redirects)

Heading fixes

WikiProject Biography fixes (WPBiography)

(Currently works only with WikiProject templates named "WikiProject foo" and not with their redirects)

WikiProject Songs fixes (WPSongs)

WikiProject Jazz fixes (WPJazz)

DEFAULTSORT fixes

Helper functions

This section documents some of the AWB functions that are used by the general fixes, but do not form part of the general fixes themselves.

Text hiding

Text hiding is a feature in AWB that allows syntax within articles to be hidden so that other changes are not applied to the text within that area e.g. typo fixing should not apply to image filenames, otherwise links to images could be broken.

AWB has two levels of text hiding: Hide and HideMore. These two functions exist in the WikiFunctions.Parse.HideText class.

Hide

Items hidden are:

  • <source>, <syntaxhighlight>, <nowiki>, <pre>, <math>, <timeline> tags.
  • HTML comments.
  • (If option set) External links.
  • (If option set) Image/File links including those in infobox fields on en-wiki, <imagemap> tags, |title=, |trans_title= within citation templates.

HideMore

Items hidden are:

  • All those in Hide.
  • Templates, including nested templates.
  • <blockquote>, <code>, <noinclude>, <includeonly> tags.
  • Headings.
  • (If option set) wikilinks.
  • Text indented with a colon.
  • <cite> and <ref> tags.
  • Untemplated quotes: text in straight quotes (and equivalent smart/curly quotes)
  • (If option set) text in italics.
  • <p style...> tags.

IsArticleAboutAPerson

DeterminePredominantDateLocale

Persondata completion (PersonData)

Note
Persondata is now removed.

This is not called by general fixes

See also