$smwgQStrictComparators

From Linux Web Expert

Revision as of 13:46, 5 January 2019 by >Kghbln (better wording)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgQStrictComparators
Description Property "Has description" (as page type) with input value "Sets whether the ">" and "" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Default setting false
(Other) available settings
true

Allows to set the ">" and "<" comparators to be strict

Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings
Keyword comparison · property value · page selection


__NOBREADCRUMBLINKS__

$smwgQStrictComparators is a configuration parameter that sets whether the ">" and "<" comparators should be strict. The configuration parameter was introduced in Semantic MediaWiki 1.5.3Released on an unknown date unknown versions of MediaWiki. Prior to Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki it was called $smwStrictComparators.12

The behavior of the comparators ">" and "<" varies depending on the setting of this configuration parameter. See the help page on strict comparators for detailed information about the differences.

Default setting

$smwgQStrictComparators = false;

This means that values that are equal will be accepted for the comparators ">" and "<".

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:

Enable the comparators to be strict
$smwgQStrictComparators = true;

This means that values that are equal will not be accepted for the comparators ">" and "<".

See also

#scite could not render a citation text for reference "gh:smw:2044" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:2044 
  2. ^ gh:smw:2176