Help:Configuration parameter "$smwgResultFormatsFeatures"

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


Title $smwgResultFormatsFeatures
Description Sets whether features for some result formats should be extended
Default setting
SMW_RF_TEMPLATE_OUTSEP
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Special Ask
Keyword ask queries · separator parameter · template format

$smwgResultFormatsFeatures is a configuration parameter that whether features for some Result formats should be extended. The setting was introduced in Semantic MediaWiki 2.5.0.1

This configuration parameter is meant to resolve inconsistencies and ambiguity with the sep parameter2 in connection with the "template" result format (format=template) and accomplishes that by additionally introducing the valuesep parameter:

  • sep is used for the outer separation of content as in {{Template|...}} sep {{Template|...}} sep ...
  • valuesep is provided as additional parameter to allow for multiple values within a {{Template|...}} to be separated

See also this example on <sandbox.semantic-mediawiki.org>.

Default setting

$smwgResultFormatsFeatures => SMW_RF_TEMPLATE_OUTSEP;

The default setting means that the "template" result format are extended by the valuesep option.

Changing the default setting

To modify this configuration setting, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Disable this enhancement of result formats features3
$smwgResultFormatsFeatures = ( $smwgResultFormatsFeatures & ~SMW_RF_TEMPLATE_OUTSEP );

or

$smwgResultFormatsFeatures => SMW_RF_NONE;

Note

Starting with Semantic MediaWiki 2.5.3 the default value for the valuesep option was changed from a space to a comma.4


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2331
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:2022
  3. ^  Semantic MediaWiki: GitHub issue gh:smw:2329
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:2522