Page MenuHomePhabricator

WikiLint does not recognize subst
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Start editing any page.
  • Make sure syntax highlighting and linting are enabled.
  • Insert this code: {{subst:#time:j F Y}}.

What happens?:
The above code produces a warning: "useless fragment (no-ignored)", from WikiLint.

What should have happened instead?:
No warning should appear.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Bhsd renamed this task from The WikiLint rule "no-ignored" catches things that it shouldn't to CodeMirror does not recognize subst.Apr 28 2026, 1:40 AM
Bhsd renamed this task from CodeMirror does not recognize subst to WikiLint does not recognize subst.

Note that the same issue exists for safesubst.

Change #1277875 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/extensions/CodeMirror@master] mediawiki worker: send subst magic words to the worker

https://gerrit.wikimedia.org/r/1277875

Bhsd changed the task status from Open to In Progress.Apr 28 2026, 6:05 AM

Change #1277875 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] mediawiki worker: send subst magic words to the worker

https://gerrit.wikimedia.org/r/1277875

Bhsd moved this task from Bugs to Done on the MediaWiki-extensions-CodeMirror board.