This module implements title suggestions for the "Bad title" interface message at . When the user asks for a page with invalid characters, this module checks for a page with the given title up to the first invalid character. If it exists, is displayed.
<nowiki>{{#invoke:Bad title suggestion|main|invalid_char|bad_title_encoded}}</nowiki>
In the case of, this is:
<nowiki>{{#invoke:Bad title suggestion|main|$1|$2}}</nowiki>
<nowiki>{{#invoke:Bad title suggestion|main|>|Foobar&#62;}}</nowiki>
<nowiki>{{#invoke:Bad title suggestion|main|}|Wikipedia:Village pump&#125;&#125;}}</nowiki>
}
<nowiki>{{#invoke:Bad title suggestion|main|||Main Page&#124;title text!}}</nowiki>
<nowiki>{{#invoke:Bad title suggestion|main|>|This page absolutely does not exist&#62;}}</nowiki>
(nothing displayed)
<nowiki>{{#invoke:Bad title suggestion|main|>|Category:Contents&#62;}}</nowiki>
<nowiki>{{#invoke:Bad title suggestion|main|<|#60;Foobar#62;}}</nowiki>
(nothing displayed)
<nowiki>{{#invoke:Bad title suggestion|main|[|Solo [3]}}</nowiki>
<nowiki>{{#invoke:Bad title suggestion|main|>|M>Train}}</nowiki>