$smwgEnabledSpecialPage

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgEnabledSpecialPage
Description Enables Semantic MediaWiki-specific annotation and content processing for special pages
Default setting
[ 'Ask' ];
Software Semantic MediaWiki
Since version
Until version still available
Configuration Installation
Keyword special page


$smwgEnabledSpecialPage is a configuration parameter that is used to enable specific annotation and content processing for special pages related to Semantic MediaWiki. The configuration parameter was introduced in Semantic MediaWiki 1.9.0.1

Default setting[edit]

$smwgEnabledSpecialPage = [
    'Ask'
];

This feature is only enabled by default for special page "Ask". This feature is also quite useful for special page "ExpandTemplates" provided by MediaWiki itself, and for special page "RunQuery" provided by extension "Page Forms"Allows to create and use forms for adding and editing pages with and without semantic data.

Changing the default setting[edit]

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

Adding another special page, e.g., special page "RunQuery" provided by extension "Page Forms"Allows to create and use forms for adding and editing pages with and without semantic data
$smwgEnabledSpecialPage = [
    'Ask',
    'RunQuery'
];
Disabling this feature
$smwgEnabledSpecialPage = [ ];

See also[edit]

  • Task T60991 - information about the rationale for this parameter