Help:Extension registration

From semantic-mediawiki.org
Notification on special page "Version" about a missing enableSemantics function call

Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. started to use MediaWiki's extension registration mechanism 1 to load and enable its functionality.

As of Semantic MediaWiki 7.0.0Released on an unknown date and compatible with unknown versions of MediaWiki., wfLoadExtension( 'SemanticMediaWiki' ); is the only step needed to enable the extension. The enableSemantics function is deprecated and can be removed from "LocalSettings.php". If enableSemantics is still present, Semantic MediaWiki will show a deprecation notice on Special:Version as a reminder.

For versions prior to 7.0.0, Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. added a notification to Special:Version 2 when Semantic MediaWiki was installed but the enableSemantics function had not been called.

Disable notification[edit]

If the extension was installed but deliberately not enabled (e.g. for a specific wiki in a wiki farm setup) then it is possible to use configuration parameter $smwgIgnoreExtensionRegistrationCheckSets whether users will be informed about the discrepancy of having Semantic MediaWiki installed but not enabled to suppress the check and notification on special page "Version".

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:1732
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:4170