Recommended MediaWiki settings

These are some of the settings used in this wiki. They might help set up an enterprise wiki.

$wgNamespacesWithSubpages[NS_MAIN] = true; $wgNamespacesWithSubpages[NS_TEMPLATE] = true; $wgNamespacesWithSubpages[NS_USER] = true;
 * 1) Subpages
 * 2) Enable subpages in the main namespace
 * 1) Enable subpages in the template namespace
 * 1) Enable subpages in User namespace

$wgGroupPermissions['*'           ]['edit'      ] = false; $wgGroupPermissions['*'           ]['createpage'] = false; $wgGroupPermissions['user'        ]['createpage'] = false; $wgGroupPermissions['user'        ]['upload'    ] = false; $wgGroupPermissions['autoconfirmed']['createpage'] = true; $wgGroupPermissions['autoconfirmed']['upload'   ] = true; $wgAutoConfirmAge = 3600*24*7; $wgAutoConfirmCount = 10; $wgShowIPinHeader = false;
 * 1) Permission control
 * 2) Restrict editing by non-registered (IP) users
 * 1) Disallow page creation
 * 1) Set autoconfirmation rules
 * 1) Hide user tools for IP visitors

Rights information
If you have a public-facing wiki, this section might be useful:

$wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = "http://creativecommons.org/licenses/by/3.0/"; $wgRightsText = "Attribution 3.0 Unported"; $wgRightsIcon = "http://i.creativecommons.org/l/by/3.0/88x31.png";
 * 1) For attaching licensing metadata to pages, and displaying an
 * 2) appropriate copyright notice / icon. GNU Free Documentation
 * 3) License and Creative Commons licenses are supported so far.
 * 1) $wgRightsCode = "[license_code]"; # Not yet used

Semantic MediaWiki
The SemanticBundle is the easiest way to enable SMW functionality.

require_once( "$IP/extensions/SemanticBundle/SemanticBundleSettings.php" ); require_once( "$IP/extensions/SemanticBundle/SemanticBundle.php" );
 * 1) Semantic MediaWiki

Then, in SemanticBundleSettings.php:

include_once( "$IP/extensions/Validator/Validator.php" ); include_once( "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php" ); enableSemantics( parse_url( $wgServer, PHP_URL_HOST ) );
 * 1) Semantic MediaWiki basic installation.
 * 2) More info: http://semantic-mediawiki.org/wiki/Help:Installation

include_once( "$IP/extensions/SemanticResultFormats/SemanticResultFormats.php" );
 * 1) Semantic Result Formats
 * 2) More info: http://semantic-mediawiki.org/wiki/Help:Semantic_Result_Formats#Installation

include_once( "$IP/extensions/SemanticForms/SemanticForms.php" );
 * 1) Semantic Forms
 * 2) More info: https://www.mediawiki.org/wiki/Extension:Semantic_Forms

include_once( "$IP/extensions/SemanticFormsInputs/SemanticFormsInputs.php" );
 * 1) Semantic Forms Inputs
 * 2) More info: https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs

If you want other SMW packages, uncomment the appropriate lines.

Other
If you have the ParserFunctions extension (recommended), you may want this: $wgPFEnableStringFunctions = true;

If you have the Vector and WikiEditor extensions (recommended), you may want this: require_once( "$IP/extensions/Vector/Vector.php" ); $wgVectorUseIconWatch = true; #Enable star icon to add/remove page from watchlist $wgVectorUseSimpleSearch = true; require_once("$IP/extensions/WikiEditor/WikiEditor.php");