A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

How to locate linter error

RazeSoldier

Recently I am developing a bot to fix the linter error on zhwiki. But I encountered an obstacle. I can’t find linter error point. E.g.:

{
                "pageid": 3912458,
                "ns": 0,
                "title": "首音互換",
                "lintId": 14657777,
                "category": "multiple-unclosed-formatting-tags",
                "location": [
                    2129,
                    2275
                ],
                "templateInfo": {},
                "params": {
                    "inTable": true,
                    "name": "u"
                }
},

I don’t know what “location” represents. Does anyone know?

Papuass

Must be start and end of marked section in wikitext.
If you open these in wikicode editor, the place of error is marked.

Example: https://lv.wikipedia.org/w/index.php?title=Vikipēdija:Neapstiprinātie_labu_rakstu_kandidāti&action=edit&lintid=382686

RazeSoldier

Yes, I noticed it. But the robot cannot use wikicode editor.

RazeSoldier

The problem was solved in mediawiki.org.