Help:Configuration parameter "$smwgQStrictComparators"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form


Title $smwgQStrictComparators
Description Sets whether the ">" and "<" comparators should be strict
Default setting
false
(Other) available settings
true

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

Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Query settings
Keyword comparison · property value · page selection

$smwgQStrictComparators is a configuration parameter that sets whether the ">" and "<" comparators should be strict. The setting was introduced in Semantic MediaWiki 1.5.3Released on 4 November 2010 and compatible with MW 1.14.x - 1.17.x.. Prior to Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x. 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 this configuration setting, 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

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2044
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:2176