The Linter extension is a MediaWiki extension that aims to identify "lint": syntax errors in the code of Wikipedia pages. The lint in this case is broken and pr…
This is an information page. It is not a Wikipedia policy or guideline; rather, its purpose is to explain certain aspects of Wikipedia's norms or practices. It may reflect varying levels of consensus. |

The Linter extension is a MediaWiki extension that aims to identify "lint": syntax errors in the code of Wikipedia pages. The lint in this case is broken and problematic markup on all wiki pages that cannot be fixed automatically by MediaWiki. The extension produces a list of these errors at Special:LintErrors, which editors and bots can consult to find pages that need attention. High-priority Linter issues require fixing as they may cause pages to display in undesirable fashion. The MediaWiki wiki help page describes 18 specific types of lint errors.
A linter is software that helps an author or editor of a document (such as a wiki page or a programming file) see if there may be errors in the document. The extension does this for wiki pages: it helps identify whether a page displays as the author intended yesterday in some cases (for example, some image options are "linted" for), and helps identify whether a page displays as the author intended today, due to changes in how the MediaWiki system creates HTML from wikitext. Further reasons can be found at mw:Help:Extension:Linter § Why and what to fix.
From Special:LintErrors. The database ids are defined in the MediaWiki source code.
An image that is purely decorative (provides no information and serves only an aesthetic purpose) requires no alternative text.) (id 23)
Editors (mostly WikiGnomes) are going around Wikipedia working to clean up lint errors, which are sorted by severity into one of three priority levels: high, medium, and low, which relate to how badly the error affects page display, or how much the page display changed when MediaWiki parsing changed. You are welcome to join in this effort. Here are some hints:
<small> tag improperly closed with another <small> tag instead of </small>, even if this changes the appearance. This is especially true if the missing end tag affects anything beyond the scope of the comment in which it appears. If a user's comment in the middle of the page causes subsequent comments or sections to be indented wrong, or be bolded or italicized or in a different font, you should insert the missing end tag, even if the page has "always" been wrong.
<div> tag, the tag might not be surrounded by <nowiki> markup, so the <div> tag will be taken as markup with a missing end tag instead of simply displaying the tag. In cases like this, it is helpful to insert <nowiki>...</nowiki> around the unescaped markup, which changes the display, shows the intent of the original comment, and fixes the missing end tag or other errors resulting from the unescaped markup.|}) can cause either of these lint errors. The solution to a lint error may be to revert one or more edits.<font>...</font> tags.| Date | Outstanding linter errors | Source |
|---|---|---|
| 28 August 2018 | 24,083,947 | [1] |
| 17 June 2021 | 22,450,097 | [2] |
| 1 March 2022 | 15,349,584 | [3] |
| 25 March 2022 | 13,845,831 | [4] |
| 1 July 2022 | 11,116,651 | [5] |
| 3 November 2022 | 8,890,312 | [6] |
| 4 February 2023 | 7,994,445 | [7] |
| 13 February 2023 | 6,984,595 | [8] |
| 23 February 2023 | 5,998,634 | [9] |
| 5 March 2023 | 4,999,462 | [10] |
| 26 March 2023 | 3,996,924 | [11] |
| 28 December 2023 | 3,496,968 | [12] |
| 5 November 2024 | 2,999,906 | [13] |
| 26 December 2025 | 2,499,866 | [14] |
| 24 February 2026 | 1,999,893 | [15] |
Bots that are approved to run lint fixing tasks:
| Bot | Operator | Tasks | Lint fixes status (last 30 days) |
|---|---|---|---|
| User:DreamRimmer bot III | User:DreamRimmer | Task 8 is approved to fix errors in MassMessages, including Linter errors. | Active (upon request) |
| User:Legobot | User:Legoktm | Task 41 | Active |
| User:Qwerfjkl (bot) | User:Qwerfjkl | Tasks 27, 29, 31 | Active |
| User:TenshiBot | User:Tenshi Hinanawi | Tasks 4, 5 and 6 were approved to fix misnested tags. | Active |
| User:WikiCleanerBot | User:NicoV | Tasks 7, 10, 17, 22 | Active |
| User:WOSlinkerBot | User:WOSlinker | Tasks 1, 2, 4, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 | Active |
| Bot | Operator | Tasks |
|---|---|---|
| User:Ahechtbot | User:Ahecht | Tasks 1, 2, 3, 5 |
| User:DannyS712 bot | User:DannyS712 | Task 54 |
| User:FrescoBot | User:Basilicofresco | Task 13 |
| User:IznoBot | User:Izno | Task 1 |
| User:John of Reading Bot | User:John of Reading | Task 4 |
| User:MalnadachBot | User:ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ | Tasks 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12 |
| User:MatrixBot | User:Matrix | Task 2 |
| User:NihlusBOT | User:Nihlus | Tasks 2, 5, 10 |
| User:PkbwcgsBot | User:Pkbwcgs | Tasks 17, 18 |
| User:SheepLinterBot | User:Sheep8144402 | Tasks 1, 2 |
Some bots use the tag fixed lint errors which can be used to filter in the edit log or hide in your watchlist. Recent changes.
Bot operators using Pywikibot can apply the tag with page.save(summary='Fixing lint issues', tags=['fixed lint errors'])
For JavaScript, add the following:
// Add change tag
var form = document.getElementById('editform');
if (form && !form.wpChangeTags) {
var tagInput = document.createElement('input');
tagInput.type = 'hidden';
tagInput.name = 'wpChangeTags';
tagInput.value = 'fixed lint errors';
form.appendChild(tagInput);
}
User:PerfektesChaos/js/lintHint has instructions for installing and using lintHint, a gadget coded in JavaScript that identifies lint errors in a document in the wiki editor.
You can run lintHint repeatedly in the same edit session to see if you fixed the errors and to relocalize the error pointers. Error pointers are relative to the top of the article, so if you correct errors from the bottom up, you won't need to run lintHint again to relocalize error pointers.
The lintHint tool does not expand relative links when the page is in editing mode. For example, in Portal:Science, {{/Header}} really means {{Portal:Science/Header}}, but lintHint does not do this. To get lintHint to work, you should expand the relative links so future users do not need to reencounter the same errors. You can also use Expand templates, and enter the page name in Context title and copy part or all of the page into Input wikitext. Then click OK and then press lintHint. Expand templates will often help lintHint localize and identify lint errors listed on Page information but that lintHint doesn't find on its own.
After editing, pages are rechecked for lint errors, usually within seconds, but in the past sometimes delayed for hours. If lintHint says you fixed one or more lint errors, you probably did fix them, even if page information and the specific lint errors page aren't updated yet. As noted, however, lintHint can't detect errors in unexpanded relative links.
You can easily employ user CSS to detect a lot of "linty" old HTML 4 code in pages as you read, if you're a WikiGnome who likes to do cleanup. See meta:User:SMcCandlish/lint.css for a sample CSS declaration that makes various deprecated cruft – like <tt>, <font>, <center>, and <strike> – turn pink so it sticks out like a sore thumb. You can customize as you like for your own Special:MyPage/common.css or meta:Special:MyPage/global.css, or follow the instructions at lint.css to @import (transclude) lint.css directly into your own user CSS at this or any other WMF wiki.
This CSS only detects no-longer-valid markup; it has no means of detecting other coding errors.
See here for another example.
'''' to {{`}}''' or '''{{`}} to indicate whether the single quote is inside or outside the bold.)'''''' as follows:
''''''Apostrophes outside bold italics'''''' to {{`}}'''''Apostrophes outside bold italics'''''{{'}}''''''Apostrophes inside bold italics'''''' to '''''{{`}}Apostrophes inside bold italics{{`}}'''''align=X where X is "left", "center" or "right" (sometimes without quotes)valign=X where X is "top", "middle", "center" or "bottom" (sometimes without quotes)bgcolor=X where X is a color name such as red or a hexadecimal color code, with or without quotesalign=X where X is "center" or "right" (sometimes without quotes)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.