Con­figu­ration para­meter "$smwgInlineErrors"

From semantic-mediawiki.org
Configuration parameter details:
Name $smwgInlineErrors
Description Sets whether warnings should be shown right after problematic annotations
Default setting
true
(Other) available settings
false

Allows to disable the display of warnings right after problematic annotations

Software Semantic MediaWiki
Since version
Until version still available
Configuration Interface settings
Keyword parser · annotation · interface · displaying values


$smwgInlineErrors is a configuration parameter that sets whether warnings should be shown right after problematic annotations. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x. and deprecated with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..1

This affects only semantic annotations, not warnings that are displayed by inline queries or other features.
This configuration parameter was deprecated with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. in favour of option SMW_PARSER_INL_ERROR to configuration parameter $smwgParserFeaturesSets the behaviour of features related to text and annotion parsing streamlining the overall configuration of Semantic MediaWiki.1 Thus you are advised to migrate your settings in "LocalSettings.php" to the new configuration parameter since this one will be removed with the release of Semantic MediaWiki 3.1.0Released on and compatible with . in late 2018.

Default setting[edit]

$smwgInlineErrors = true;

This means that warnings are shown right after problematic annotations.

Changing the default setting[edit]

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

Disable warnings being shown
$smwgInlineErrors = false;

This means that warnings are not shown right after problematic annotations.

Example[edit]

Annotation
[[Telephone number::info@example.org]]
Result

info@example.orgURIs of the form "info@example.org" are not allowed. The error is shown because an e-mail address does not comply with the formal reqirements of a value to datatype "Telephone number"Holds international telephone numbers based on the RFC 3966 standard.

See also[edit]

References

  1. a b  Semantic MediaWiki: GitHub pull request gh:smw:2802