$smwgQComparators
Configuration parameter details: | |
Name | $smwgQComparators |
Description | Sets the list of comparator characters supported by queries for use in a regex. |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Query settings |
Keyword | comparison · property value · page selection |
__NOBREADCRUMBLINKS__
$smwgQComparators
is a configuration parameter that sets the list of comparator characters supported by queries for use in a regex. The parameter was introduced in Semantic MediaWiki 1.0.
If unsupported comparators are used, they are treated as part of the queried value. The behaviour of the comparators <
and >
varies depending on the setting for configuration parameter $smwStrictComparators
No description was provided..
Default setting
$smwgQComparators = <|>|!~|!|~|≤|≥|<<|>>;
The default setting allows all available comparators.
Changing the default setting
The available features are combined in a list, separated by a pipe "|"
. Example:
- Do not allow extended ASCII character comparators
$smwgQComparators = <|>|!~|!|~|<<|>>;
File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> This cannot be combined with strict comparators enabled.
Available comparators
<
(smaller than or equal)>
(greater than or equal)<<
(smaller than)>>
(greater than)≤
(smaller than or equal - note that this is an extended ASCII character and may show up differently, e.g. as "â¤")≥
(greater than or equal - note that this also is an extended ASCII character and may show up like "â¥")!
(unequal to)~
(matching a pattern with "*" as wildcard, only for datatype "Text" and "Page")!~
(not matching a pattern with "*" as wildcard, only for datatype "Text" and "Page")
See also
- Help page on configuration parameter
$smwStrictComparators
No description was provided. - Help page on selecting pages with comparators
- Help page on strict comparators
Property "Namespace" has a restricted application area and cannot be used as annotation property by a user.Property "Docinfo editor" (as page type) with input value "User:>Kghbln" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.