Module:Bad title suggestion/doc
This is a documentation subpage for Module:Bad title suggestion (see that page for the module itself). It contains usage information, categories and other content that is not part of the original module page. |
This module is used in system messages. Changes to it can cause immediate changes to the Festipedia user interface. To avoid large-scale disruption, any changes should first be tested in this module's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this module. Please discuss any changes on the talk page before implementing them. |
This module implements title suggestions for the "Bad title" interface message at MediaWiki:Title-invalid-characters. 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, {{Did you mean box}} is displayed.
Usage[edit]
{{#invoke:Bad title suggestion|main|invalid_char|bad_title_encoded}}
In the case of MediaWiki:Title-invalid-characters, this is:
{{#invoke:Bad title suggestion|main|$1|$2}}
Examples[edit]
- Linda>:
{{#invoke:Bad title suggestion|main|>|Linda>}}
Did you mean: Linda? |
- Festipedia:The Den}}:
{{#invoke:Bad title suggestion|main|}|Festipedia: The Denp}}}}
Did you mean: Festipedia:The Den? |
- Main Page|title text!:
{{#invoke:Bad title suggestion|main|||Main Page|title text!}}
Did you mean: Main Page? |
- This page absolutely does not exist>:
{{#invoke:Bad title suggestion|main|>|This page absolutely does not exist>}}
(nothing displayed)
- Category:Carriages>:
{{#invoke:Bad title suggestion|main|>|Category:Carriages>}}
Did you mean: Category:Carriages? |
- <Foobar>:
{{#invoke:Bad title suggestion|main|<|#60;Foobar#62;}}
(nothing displayed)