Status: | effective |
Progress: | 100% |
Version: | 3.1.0+ |
$smwgPropertyInvalidCharacterList
Configuration parameter details: | |
Name | $smwgPropertyInvalidCharacterList |
Description | Sets a list of invalid characters which are not allowed to be used for property naming |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Installation |
Keyword | property · administration · gardening · setup |
__NOBREADCRUMBLINKS__
$smwgPropertyInvalidCharacterList
is a configuration parameter that sets a list of invalid characters which are not allowed to be used for property naming. The configuration parameter was introduced in Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki1, extended in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki23 and further extended in Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki4.
Default setting
$smwgPropertyInvalidCharacterList = [ '[', ']' , '|' , '<' , '>', '{', '}', '+', '–', '%', '\r', '\n', '?', '*', '!' ];
This means that the specified characters are not allowed for naming properties.
The characters '.
' and '#
' are always checked and disallowed despite the setting for this configuration parameter.6
Changing the default setting
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Extend the list of disallowed characters
$smwgPropertyInvalidCharacterList = [ '[', ']' , '|' , '<' , '>', '{', '}', '+', '%', '\r', '\n', '?', '*', '!', '$', '€', '¥', '£', '@' ];
or
$smwgPropertyInvalidCharacterList = array_merge(
$smwgPropertyInvalidCharacterList, [
'$', '€', '¥', '£', '@'
]
);
- Reduce the list of disallowed characters
$smwgPropertyInvalidCharacterList = [ '[', ']' , '|' , '<' , '>', '{', '}' ];
- Allow all characters
$smwgPropertyInvalidCharacterList = [ ];
.
' and '#
' are always checked and disallowed.
See also
- Help page on property naming
- {{{1}}} on GitHub