Knowledge (XXG)

:Linter - Knowledge (XXG)

Source 📝

84: 366:, 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. 504:, is a chart with rows for the namespaces and columns for the type of lint error, with each cell in the chart listing the number of errors (maxed at 20 for each error type per article). This chart can help find a project of manageable size, or quickly check the number of lint errors of a certain type in a namespace, such as the Article namespace. This page is updated several times per hour. 24: 1043:
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,
1004:
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.
760: 302:, 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: 312:
Lint error pages are not necessarily complete. When a new lint error type is discovered and a page is made for it, or when the definition of a type of lint error is changed, that lint error page starts empty and is gradually filled by a process that can take several weeks or
103:
that aims to identify "lint": syntax errors in the code of Knowledge (XXG) 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
124:
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
516:
is a similar report that covers pages in all namespaces. Note that the Linter error system tracks a maximum of 21 errors of any single type, so pages on this list may have more total errors than are shown in the
1116: 443:
Some Lint errors caused by user signatures and Template substitutions are present across a large number of pages. It is more efficient to fix such errors in a bot task rather than manual edits. You can use
407:
In a discussion about errors, for example, "Why does the display get messed up when I use ", it's often best to leave the bad markup in place, since otherwise the discussion won't make any sense.
520: 974: 970: 966: 831: 827: 962: 856: 941: 937: 933: 929: 925: 921: 917: 913: 909: 905: 901: 806: 802: 798: 897: 893: 889: 885: 881: 852: 794: 790: 786: 782: 778: 774: 770: 402:
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.
877: 766: 108:, 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. 507: 1099: 745: 513: 455:
If you find a lint error in an article, consider the possibility that the error was introduced by a recent edit that should be reverted. This is especially true for
1127: 270: 181: 376:
problems, such as fonts becoming smaller and smaller (or larger and larger) the further down the page you scroll, due to successive unclosed sizing elements.
255: 47:; rather, its purpose is to explain certain aspects of Knowledge (XXG)'s norms, customs, technicalities, or practices. It may reflect differing levels of 1121: 1173: 372:; after MediaWiki's July 2018 switch to a new linter package, many pages that used to look fine despite errors in them now show terrible appearance and 533: 309:
Lint error pages are sorted approximately in the order of the most recently edited being listed last. Some error pages are sorted better than others.
1040:. Expand templates will often help lintHint localize and identify lint errors listed on Page information but that lintHint doesn't find on its own. 176: 171: 1195: 421:
to the user, which can be annoying and should not be done in large batches. To avoid this, use a flagged bot account, and also flag the edit as
206: 456: 1178: 339: 1152: 320:
details how many errors of each type of lint error that page has. This section is near the end and is omitted if there are no lint errors.
44: 397:
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
186: 129:
in some cases (for example, some image options are "linted" for), and helps identify whether a page displays as the author intended
1200: 306:
Each lint error page has a help link in the upper-right corner that links to a page with more information about that type of error.
40: 238: 218: 201: 161: 233: 990: 701: 689: 677: 665: 653: 641: 629: 282: 617: 605: 593: 581: 474:
without there actually being any errors on the pages themselves. If there's nothing obviously wrong with a listed page, and
166: 32: 250: 191: 138: 460: 228: 196: 486:
show no errors, it will often disappear from the list on its own after a while. Editors can usually expedite this by
501: 381:
In a discussion about wiki or HTML markup, unclosed tags are sometimes used. For example, in a discussion about the
265: 260: 1020:, but lintHint does not do this. To get lintHint to work, you can manually expand relative links. You can also use 1081: 410:
Especially on User and User talk pages, try to minimize disruption by getting your fix right on the first try. "
1085: 1061: 1170:+ CSS3, including how to replace deprecated HTML 4.01 markup; includes automated searches for obsolete markup 1021: 483: 223: 1057: 467:) can cause either of these lint errors. The solution to a lint error may be to revert one or more edits. 295: 52: 48: 1158: 475: 317: 1053: 487: 327: 62: 109: 1008:
The lintHint tool does not expand relative links when the page is in editing mode. For example, in
951: 841: 816: 100: 994: 433: 471: 445: 418: 299: 150: 105: 1163: 1095:
This CSS only detects no-longer-valid markup; it has no means of detecting other coding errors.
866: 846: 755: 411: 510:
is a report of articles (i.e. pages in the article namespace) that have the most lint errors.
1080:– turn pink so it sticks out like a sore thumb. You can customize as you like for your own 422: 335: 121: 95: 88: 1009: 871: 569: 331: 1189: 1092:(transclude) lint.css directly into your own user CSS at this or any other WMF wiki. 821: 388: 351:
It is OK to change the appearance in some cases if it preserves the original intent.
740: 735: 1138:(some might be valid usage denoting a bold phrase inside single quote marks, see 1139: 998: 956: 449: 373: 1056:
to detect a lot of "linty" old HTML 4 code in pages as you read, if you're a
83: 1155:– simplified instructions for fixing pages for the modern MediaWiki parser 436:
for a list of invalid tags and attributes, which you can detect with CSS.
1124:– project devoted to this and other types of Knowledge (XXG) code cleanup 1064:
for a sample CSS declaration that makes various deprecated cruft – like
338:, and other people's comments on talk pages; but if you do, please see 1117:
Knowledge (XXG):Linter/Pages with lint errors that should not be fixed
285:(buggy, not an error; for tracking only; not listed on Special page) 1167: 82: 134: 1166:– information page on technical details of updating WP code to 340:
Knowledge (XXG):Talk page guidelines § Editing others' comments
323:
For each lint error, the count maxes out at 20 in any one page.
1001:
that identifies lint errors in a document in the wiki editor.
18: 1153:
mw:Parsing/Replacing Tidy/FAQ § What will editors need to do?
521:
Knowledge (XXG):Linter/reports/Protected pages by Lint Errors
425:, which will bypass the "You have new messages" notification. 1044:
lintHint can't detect errors in unexpanded relative links.
463:
lint errors, where careless deletion of table end markup (
452:
to identify patterns of errors that can be fixed by bots.
417:
By default, editing a base user talk page will trigger a
167:
Misnested tag with different rendering in HTML5 and HTML4
1134: 298:) are going around Knowledge (XXG) working to clean up 70: 993:
has instructions for installing and using lintHint, a
508:
Knowledge (XXG):Linter/reports/Articles by Lint Errors
133:, due to changes in how the MediaWiki system creates 726: 514:
Knowledge (XXG):Linter/reports/Pages by Lint Errors
479: 1122:Knowledge (XXG):WikiProject Check Knowledge (XXG) 713:Bots that are approved to run lint fixing tasks: 137:from wikitext. Further reasons can be found at 1128:Category:Pages with syntax highlighting errors 139:mw:Help:Extension:Linter § Why and what to fix 1174:Knowledge (XXG):Manual of Style/Accessibility 354:It is OK to fix a missing end tag, such as a 8: 1088:, or follow the instructions at lint.css to 534:Knowledge (XXG):Linter/Signature submissions 437: 434:WP:HTML 5 § Obsolete elements and attributes 112:describes 18 specific types of lint errors. 715: 1179:Knowledge (XXG):WikiProject Accessibility 370:Fixing such errors has become more urgent 543: 385:tag, the tag might not be surrounded by 345:Don't change the words of other editors. 197:Old behaviour of link-wrapping font tags 45:Knowledge (XXG)'s policies or guidelines 1135:Possible error: four single quote marks 1028:and copy part or all of the page into 470:Occasionally, large pages show up on 7: 523:, for protected pages by lint errors 1077: 1073: 1069: 1065: 502:Outstanding linter errors on enwiki 398: 394: 386: 382: 363: 359: 358:tag improperly closed with another 355: 271:Night-mode-unaware-background-color 14: 1196:Knowledge (XXG) information pages 730:Lint fixes status (last 30 days) 187:Paragraph wrapping bug workaround 182:Multiple unclosed formatting tags 457:Table tag that should be deleted 162:Table tag that should be deleted 22: 16:Knowledge (XXG) information page 991:User:PerfektesChaos/js/lintHint 348:Try to preserve the appearance. 1086:meta:Special:MyPage/global.css 1062:meta:User:SMcCandlish/lint.css 986:User Javascript tool: lintHint 546:Linter error count progression 540:Linter error count progression 1: 1060:who likes to do cleanup. See 1024:, and enter the page name in 110:The MediaWiki wiki help page 1201:Knowledge (XXG) maintenance 1217: 555:Outstanding linter errors 256:Missing end tag in heading 60: 1082:Special:MyPage/common.css 1018:{{Portal:Science/Header}} 950: 865: 840: 815: 754: 734: 729: 723: 720: 557: 554: 551: 500:The Firefly Tools table, 207:Unclosed quote in heading 1048:User CSS tool: lint.css 811:Blocked as of mid-2023 177:Multiline table in list 1052:You can easily employ 761:User:ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ 202:Whitespace parsing bug 91: 1164:Knowledge (XXG):HTML5 1159:Help:HTML in wikitext 1102:for another example. 490:the page in question. 86: 172:Miscellaneous issues 96:The Linter extension 41:encyclopedic article 952:User:WikiCleanerBot 842:User:SheepLinterBot 817:User:Qwerfjkl (bot) 717: 548: 400:...</nowiki: --> 145:List of lint errors 101:MediaWiki extension 716: 544: 528:Other useful pages 484:template expansion 414:" is your friend. 371: 261:Obsolete HTML tags 234:Multi colon escape 219:Bogus file options 151:Special:LintErrors 106:Special:LintErrors 92: 983: 982: 867:User:WOSlinkerBot 847:User:Sheep8144402 756:User:MalnadachBot 706: 705: 369: 81: 80: 1208: 1137: 1091: 1079: 1075: 1071: 1067: 1039: 1035: 1031: 1027: 1022:Expand templates 1019: 1015: 718: 695:28 December 2023 659:23 February 2023 647:13 February 2023 549: 547: 476:page information 472:lint error lists 466: 461:Fostered content 401: 396: 392: 384: 365: 361: 357: 318:page information 294:Editors (mostly 290:How you can help 224:Fostered content 192:Self-closed tags 87:Cleaning up the 73: 33:information page 26: 25: 19: 1216: 1215: 1211: 1210: 1209: 1207: 1206: 1205: 1186: 1185: 1149: 1133: 1113: 1108: 1089: 1078:<strike: --> 1074:<center: --> 1050: 1037: 1036:and then press 1033: 1029: 1025: 1017: 1013: 988: 711: 635:4 February 2023 623:3 November 2022 545: 542: 530: 497: 464: 450:insource search 399:<nowiki: --> 393:markup, so the 364:</small: --> 362:tag instead of 330:other people's 292: 279: 251:Missing end tag 247: 215: 213:Medium priority 158: 147: 118: 77: 76: 69: 65: 57: 56: 23: 17: 12: 11: 5: 1214: 1212: 1204: 1203: 1198: 1188: 1187: 1184: 1183: 1182: 1181: 1171: 1161: 1156: 1148: 1145: 1144: 1143: 1131: 1125: 1119: 1112: 1109: 1107: 1104: 1049: 1046: 1030:Input wikitext 1010:Portal:Science 987: 984: 981: 980: 977: 959: 954: 948: 947: 944: 874: 872:User:WOSlinker 869: 863: 862: 859: 849: 844: 838: 837: 834: 824: 819: 813: 812: 809: 763: 758: 752: 751: 748: 743: 738: 732: 731: 728: 725: 722: 710: 707: 704: 703: 699: 696: 692: 691: 687: 684: 680: 679: 675: 672: 668: 667: 663: 660: 656: 655: 651: 648: 644: 643: 639: 636: 632: 631: 627: 624: 620: 619: 615: 612: 608: 607: 603: 600: 596: 595: 591: 588: 584: 583: 579: 576: 572: 571: 567: 564: 563:28 August 2018 560: 559: 556: 553: 541: 538: 537: 536: 529: 526: 525: 524: 518: 511: 505: 496: 493: 492: 491: 468: 453: 441: 430: 429: 428: 427: 426: 408: 405: 404: 403: 379: 378: 377: 360:<small: --> 356:<small: --> 349: 346: 342:for guidance. 324: 321: 314: 310: 307: 291: 288: 287: 286: 278: 275: 274: 273: 268: 263: 258: 253: 246: 243: 242: 241: 239:Links in links 236: 231: 229:Misnested tags 226: 221: 214: 211: 210: 209: 204: 199: 194: 189: 184: 179: 174: 169: 164: 157: 154: 146: 143: 132: 128: 117: 114: 79: 78: 75: 74: 66: 61: 58: 38: 37: 29: 27: 15: 13: 10: 9: 6: 4: 3: 2: 1213: 1202: 1199: 1197: 1194: 1193: 1191: 1180: 1177: 1176: 1175: 1172: 1169: 1165: 1162: 1160: 1157: 1154: 1151: 1150: 1146: 1141: 1136: 1132: 1129: 1126: 1123: 1120: 1118: 1115: 1114: 1110: 1105: 1103: 1101: 1096: 1093: 1087: 1083: 1070:<font: --> 1063: 1059: 1055: 1047: 1045: 1041: 1032:. Then click 1026:Context title 1023: 1016:really means 1011: 1006: 1002: 1000: 996: 992: 985: 978: 976: 972: 968: 964: 960: 958: 955: 953: 949: 945: 943: 939: 935: 931: 927: 923: 919: 915: 911: 907: 903: 899: 895: 891: 887: 883: 879: 875: 873: 870: 868: 864: 860: 858: 854: 850: 848: 845: 843: 839: 835: 833: 829: 825: 823: 822:User:Qwerfjkl 820: 818: 814: 810: 808: 804: 800: 796: 792: 788: 784: 780: 776: 772: 768: 764: 762: 759: 757: 753: 749: 747: 744: 742: 739: 737: 733: 719: 714: 708: 702: 700: 697: 694: 693: 690: 688: 685: 683:26 March 2023 682: 681: 678: 676: 673: 670: 669: 666: 664: 661: 658: 657: 654: 652: 649: 646: 645: 642: 640: 637: 634: 633: 630: 628: 625: 622: 621: 618: 616: 613: 610: 609: 606: 604: 601: 599:25 March 2022 598: 597: 594: 592: 589: 586: 585: 582: 580: 577: 574: 573: 570: 568: 565: 562: 561: 550: 539: 535: 532: 531: 527: 522: 519: 515: 512: 509: 506: 503: 499: 498: 494: 489: 485: 481: 477: 473: 469: 462: 458: 454: 451: 447: 442: 439: 435: 431: 424: 420: 416: 415: 413: 409: 406: 390: 380: 375: 374:accessibility 368: 367: 353: 352: 350: 347: 344: 343: 341: 337: 333: 329: 325: 322: 319: 316:Every page's 315: 311: 308: 305: 304: 303: 301: 297: 289: 284: 281: 280: 277:Tracking only 276: 272: 269: 267: 266:Stripped tags 264: 262: 259: 257: 254: 252: 249: 248: 244: 240: 237: 235: 232: 230: 227: 225: 222: 220: 217: 216: 212: 208: 205: 203: 200: 198: 195: 193: 190: 188: 185: 183: 180: 178: 175: 173: 170: 168: 165: 163: 160: 159: 156:High priority 155: 153: 152: 144: 142: 140: 136: 130: 126: 123: 115: 113: 111: 107: 102: 98: 97: 90: 85: 72: 68: 67: 64: 59: 54: 50: 46: 43:, nor one of 42: 39:It is not an 36: 34: 28: 21: 20: 1111:Other errors 1097: 1094: 1051: 1042: 1007: 1003: 989: 741:User:Legoktm 736:User:Legobot 712: 671:5 March 2023 587:1 March 2022 575:17 June 2021 488:null editing 419:notification 412:Show preview 395:<div: --> 383:<div: --> 293: 283:Large tables 245:Low priority 148: 119: 94: 93: 30: 1066:<tt: --> 1014:{{/Header}} 611:1 July 2022 300:lint errors 31:This is an 1190:Categories 1147:Help pages 1140:MOS:SINGLE 999:JavaScript 957:User:NicoV 614:11,116,651 602:13,845,831 590:15,349,584 578:22,450,097 566:24,083,947 336:talk pages 328:OK to edit 296:WikiGnomes 116:Background 1058:WikiGnome 997:coded in 946:Inactive 836:Inactive 750:Inactive 724:Operator 698:3,496,968 686:3,996,924 674:4,999,462 662:5,998,634 650:6,984,595 638:7,994,445 626:8,890,312 438:See below 432:See also 334:and User 127:yesterday 49:consensus 1106:See also 1054:user CSS 1038:lintHint 480:lintHint 63:Shortcut 1090:@import 979:Active 861:Active 746:Task 41 558:Source 517:report. 495:Reports 448:-based 313:months. 71:WP:LINT 53:vetting 1076:, and 995:gadget 961:Tasks 876:Tasks 851:Tasks 826:Tasks 765:Tasks 727:Tasks 482:, and 389:nowiki 326:It is 122:linter 1168:HTML5 1130:(816) 552:Date 446:regex 423:minor 391:: --> 149:From 131:today 99:is a 1100:here 1098:See 855:and 721:Bot 709:Bots 459:and 387:< 332:User 135:HTML 89:lint 51:and 1084:or 1192:: 1142:.) 1072:, 1068:, 1034:OK 1012:, 975:22 973:, 971:17 969:, 967:10 965:, 942:22 940:, 938:21 936:, 934:20 932:, 930:19 928:, 926:18 924:, 922:17 920:, 918:16 916:, 914:15 912:, 910:14 908:, 906:13 904:, 902:10 900:, 896:, 892:, 888:, 884:, 880:, 832:29 830:, 828:27 807:12 805:, 803:11 801:, 799:10 797:, 793:, 789:, 785:, 781:, 777:, 773:, 769:, 478:, 465:|} 141:. 120:A 963:7 898:9 894:8 890:7 886:4 882:2 878:1 857:2 853:1 795:9 791:8 787:7 783:6 779:5 775:3 771:2 767:1 440:. 55:. 35:.

Index

information page
encyclopedic article
Knowledge (XXG)'s policies or guidelines
consensus
vetting
Shortcut
WP:LINT
Illustration of linter gathering up various MediaWiki code markup
lint
The Linter extension
MediaWiki extension
Special:LintErrors
The MediaWiki wiki help page
linter
HTML
mw:Help:Extension:Linter § Why and what to fix
Special:LintErrors
Table tag that should be deleted
Misnested tag with different rendering in HTML5 and HTML4
Miscellaneous issues
Multiline table in list
Multiple unclosed formatting tags
Paragraph wrapping bug workaround
Self-closed tags
Old behaviour of link-wrapping font tags
Whitespace parsing bug
Unclosed quote in heading
Bogus file options
Fostered content
Misnested tags

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.