Wikipedia:WikiProject Wiki Syntax

What is this?

An attempt to fix up mismatched wiki syntax (such as brackets), like this "[link]]", or "(see [[Link)", or "(see link]])", or "[[link]". They're all wrong, and need to be fixed. If you're looking at this page, it's probably because someone fixed something on a page you're watching. All that's being asked is that you do the same for someone else (i.e., fix something on someone else's page). You don't have to go looking for these misplaced bits of wiki syntax — that's already been done for you. All you have to do is follow the steps below — it's very easy, quick, and helpful.

How does this work?

  1. Randomly select a page from the list of pages below (that hasn't been crossed out already).
  2. On that page, randomly select one block of 5 problems from the list of contents.
  3. Fix those 5 syntax problems (by closing/opening brackets or adding/removing quotes).
  4. With each fix, if you want, set the edit description to "[[WP:WS|Please help out by clicking here to fix someone else's Wiki Syntax]]". (This is to encourage more malformed syntax to be fixed.)
  5. Delete that block of 5 problems from the page (so that we know that they're done).


Status: All done! The most recent batch was completed on the 21st January 2006.
The next batch is available here.[dead link]

Completed pages

Problem Pages Tip/Note
Braces-Tables 000, 001, 002, 003, 004
triple quotes 000, 001, 002, 003, 004,

005, 006, 007, 008, 009

Unbalanced HTML tags 000, 001, 002 Tip: Contains unbalanced HTML comment tags (Section on How to fix --> (i.e. an ASCII arrow) may be of assistance); and unbalanced DIV tags (these articles open a <div> and don't close it, or they're closing a div with </div> that they never opened).
double quotes 000, 001, 002, 003, 004,
005, 006, 007, 008, 009,
010, 011, 012, 013, 014
square brackets 000, 001, 002, 003, 004,
005, 006, 007, 008, 009,
010, 011, 012, 013, 014,
015, 016, 017, 018, 019,
020, 021, 022, 023, 024,
025, 026, 027, 028
Double Redirects 000, 001, 002, 003, 004,
005, 006, 007, 008, 009,
010, 011, 012, 013, 014,
015, 016, 017, 018, 019,
020, 021
Please see tips on fixing double-redirects.
Redirect syntax 000, 001 Note: Please read tips on fixing redirect syntax.
Non-existent Redirect target 000 Please see tips on fixing redirects with non-existent targets.
ordinary brackets 000
1911 Britannica Category 000
HTML table attributes that look wrong 000 This list came from Erik Zachte - Thank you Erik!
Unbalanced Div tags 000 Tip: These articles open a <div>, and don't close it, or they're closing a div (with </div>) that they never opened.
Possible wrinkle: some editors use an empty <div /> to add an "id" anchor for an internal link. If you don't want to put the work in replacing these with more orthodox footnotes, leave them in place and make a note for next time around. discussion moved to the talk page.
Section Headings 000 Tip: Need same number of equal signs before and after the heading title.
miscellaneous 000, 001, 002, 003

I can't find a listed problem / it was fixed already

Then please disregard it, and move on to the next problem.

If I want to fix more than 5 things, may I?

Absolutely!

What if I am unable or don't want to fix all 5 problems in a block?

You don't have to fix the whole block, but please remember to remove the problems you've fixed from the page.

New lines

Please try and ensure that all square brackets, ordinary brackets, bold quotes, and italics quotes are opened and closed on the same line (i.e. no carriage returns between each start and end pair). For example, do this:

Rather than this:

Description].

Or this:

Rather than this:

text'''

If these things occur on different lines, they will be listed as problems (once for each line). This is deliberate, as these things really should be opened and closed on the same line.

What do I do if I encounter valid unclosed square brackets, or other wiki syntax?

Some example of valid use of unclosed square brackets, and other Wiki formatting symbols are:

These are all valid, so please don't close the brackets, or other symbols. Instead, please enclose that bit of text in <nowiki> tags — for example "<nowiki>[a,b)</nowiki>", or "<nowiki>[[</nowiki>". These nowiki tags will ensure that the software will know that it should ignore those unclosed brackets the next time that it is run.

If you encounter unclosed ordinary brackets by themselves, i.e. "(" or ")" that are valid, please do not enclose these in nowiki tags, since ordinary brackets are not a kind of wiki syntax.

Note: If you find a link enclosed in square brackets (i.e. "[text [[link]] text]"), be sure to enclose both outer brackets in nowiki tags ("<nowiki>[</nowiki>text [[link]] text<nowiki>]</nowiki>").

What types of problems does it find?

How to fix --> (i.e. an ASCII arrow)

Do one of the following:

For things within math tags ( <math> </math> ), proceed as below. Bear in mind that some mathematicians editing Wikipedia have qualms about using math tags in an "inline", as opposed to "displayed" context, because of failure of proper alignment with surrounding text, mismatches in sizes of characters, or punctuation such as a comma or period appearing only on the succeeding line as if it were part of a separate word. See Wikipedia:Manual of Style (mathematics) for more on this.

Do not "fix" the following square brackets

Tips on fixing redirect syntax

Tips on fixing double-redirects

Multiple redirects to same ultimate target
The groups of five may contain two or more pages that ought to redirect to the same ultimate target; some such pairs or triples overflow into another group of five. It will be most efficient if all are done in one hit and all then deleted, no matter which group they are in.

Tips on fixing redirects with non-existent targets

Tips on fixing parentheses

If I find a mistake in this page, or want to add or correct or expand or improve something, can I?

Of course — please do.

What is the scope and aim of this project?

The scope is the whole of the English wikipedia, and the aim is for it to contain valid and well-formed wiki-syntax. In other words, it should be possible to get the number of problems found down to zero (excluding valid unclosed ordinary brackets, so these will probably be ignored in later runs).

History

Are the problems shown ever not problems?

Yes, sometimes — but it's fairly rare. It can happen when the page author did something that looks like invalid wiki syntax, which now tends to only happen with mathematics notations — two examples are half-open interval notation in mathematics, and surreal number notation in mathematics. The solution in these situations is usually to enclose the thing that looks unbalanced in nowiki tags.

When are you planning on doing a new run?

When everything on this page has been done, and a new database dump is produced that incorporates those fixes.

As existing problems get fixed, it is thought that each successive run will find progressively fewer problems. After a few runs, it seems likely that only newly-created problems will be found, and that the total number of errors will probably fit onto a handful of pages.

What do I do if I finish the last items in one of the above pages?

Please ensure that all the items have been deleted from the list, add a quick note to that page that it has been completed, and then put a strikeout through the name of that file on this page (so that everyone knows it is done).

What do I do if I find an article that needs more than just its syntax cleaned up?

If you find any articles that need additional, non-syntactic, cleanup, then please list those articles on Wikipedia:Cleanup. Many Wikipedians regularly go to the Cleanup page, looking for chances to do deeper cleanup work. The main difference between Cleanup and Wiki Syntax is that Wiki Syntax is much broader (systematically checks every article) but shallower (focuses on fixing specific problems with Wiki Syntax) — whereas Wikipedia:Cleanup is narrower (there are usually around 100 or more pages listed) but much deeper (including complete rewrites of articles).

Thank you to contributors

There are many people who have contributed to fixing broken wiki syntax, and big thank you to everyone who has helped out — this project is only possible because of your help:

Note: If you've helped out before and your name is missing, or if you've just fixed something, then please add your name to the list.

Credits — software

The software for finding malformed wiki syntax was written by Nickj, as part of his link suggester project.

Source code for Wiki Syntax project is now available. It's a bit of a mess, sorry!

See also