This is a regex character class (i.e. a list of characters in a format suitable for a regular expression) that you want MediaWiki to allow in page titles despite being in the list of illegal characters.
Then why does the default value contain so many legal characters? Kevang 15:54, 20 February 2008 (UTC)
Apparently, $wgLegalTitleChars doesn't actually override the illegal chars. If a char is not present and accounted for in $wgLegalTitleChars, it's not permitted in a title. See lines 1265 and 1358-1361 in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Title.php?view=markup&pathrev=10960. Leaving this var blank would effectively cripple a site. Perhaps the description should be reworded to indicated that this var defines all legal title chars, but in no case overrides illegal chars? Brianko 22:19, 12 August 2010 (UTC)
Consequences of allowing < >
What would happen if these were added? --JimHu 18:51, 20 February 2008 (UTC)
Space character interfering with preg "x"-modifier
- would any one else out there like to see a nice way to drop a character (ie: "!" or "$") from the URL of a page?
- perhaps using this configuration?
- or is there another configuration setting that allows the sysadmin to easily do that
- we have been experimenting with mod_rewrite for this (http://s.sjobeck.com/SFjwvR) but without much luck yet
- --Sjobeck (talk) 18:14, 11 November 2012 (UTC)
How are Unicode characters in the title handled by MediaWiki? For example there is a Navier–Stokes equations page on Wikipedia, although the en dash is not matched by its $wgLegalTitleChars. Percent-encoding and HTML entities are also out of the question since they are explicitly disabled in the getTitleInvalidRegex function. -- Lahwaacz (talk) 11:48, 9 July 2016 (UTC)