$smwg­Property­Invalid­Character­List

From Linux Web Expert

Revision as of 06:04, 3 March 2019 by >Kghbln (upd)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
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.

You will still be able to create properties containing the characters specified with this configuration parameter, however you will no longer be able to add an annotation using the respective property. A concise error message informing about this will be shown.5

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 = [ ];
This is a strongly discouraged setting. Moreover the characters '.' and '#' are always checked and disallowed.

See also

#scite could not render a citation text for reference "gh:smw:2282" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2282:282486798" because type "issuecomment" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2861" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3478" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3478:423980159" because type "issuecomment" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3751" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:2282 
  2. ^ gh:smw:2861 
  3. ^ gh:smw:3478 
  4. ^ gh:smw:3751 
  5. ^ gh:smw:3478:423980159 
  6. ^ gh:smw:2282:282486798