Manual:$wgIllegalFileChars

From MediaWiki.org
Jump to: navigation, search
Site customization: $wgIllegalFileChars
Override the default list of illegal characters in file names.
Introduced in version: 1.16.0 (r55802)
Removed in version: still in use
Allowed values: string of characters
Default value: ":"

Other settings: Alphabetical | By Function


[edit] Details

Warning Warning: Don't change this unless you know what you're doing!

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 convert to dashes ("-") despite being in the list of allowable title characters.

By default, file names can use the same characters as titles (see $wgLegalTitleChars), with the exception of those characters listed in this variable, the default being only the character ":". All other characters will automatically be converted to dashes ("-").

The default will not allow namespaces to be part of file names (example: File:Project:filename.txt). While this is generally desireable, it interferes with any extenstion that uses namespace indexing or protection. To keep the colon from being converted to a dash, you can set this to "".

[edit] References

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox