Module:Bad title suggestion/doc explained

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.

Usage

<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>

Examples

<nowiki>{{#invoke:Bad title suggestion|main|>|Foobar&amp;#62;}}</nowiki>

<nowiki>{{#invoke:Bad title suggestion|main|}|Wikipedia:Village pump&amp;#125;&amp;#125;}}</nowiki>}

<nowiki>{{#invoke:Bad title suggestion|main|||Main Page&amp;#124;title text!}}</nowiki>

<nowiki>{{#invoke:Bad title suggestion|main|>|This page absolutely does not exist&amp;#62;}}</nowiki>(nothing displayed)

<nowiki>{{#invoke:Bad title suggestion|main|>|Category:Contents&amp;#62;}}</nowiki>

<nowiki>{{#invoke:Bad title suggestion|main|<|#60;Foobar#62;}}</nowiki>(nothing displayed)

<nowiki>{{#invoke:Bad title suggestion|main|[|Solo &#91;3&#93;}}</nowiki>