Difference between revisions of "MediaWiki:LocalSettings.php"
m |
m |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | //Can only be edited in file system ntot webpage// | ||
$wgRestrictDisplayTitle = true; | $wgRestrictDisplayTitle = true; | ||
Line 8: | Line 9: | ||
wfLoadExtension( 'ParserFunctions' ); | wfLoadExtension( 'ParserFunctions' ); | ||
+ | |||
+ | wfLoadExtension( 'CSS' ); | ||
+ | |||
+ | $wgPFEnableStringFunctions = true; | ||
+ | |||
+ | $wgUseCategoryBrowser = true; | ||
+ | |||
+ | //Category tree<br> | ||
+ | wfLoadExtension( 'CategoryTree' ); | ||
+ | |||
+ | //$wgCategoryTreeDefaultOptions['mode'] = 'pages'; | ||
+ | |||
+ | //$wgCategoryTreeDefaultOptions['namespaces'] = [ 0, NS_CATEGORY, NS_FILE ];. | ||
+ | |||
+ | wfLoadExtension( 'Tabs' ); | ||
+ | require_once "$IP/extensions/Tabs/Tabs.php"; | ||
+ | |||
+ | wfLoadExtension( 'DisplayTitle' ); | ||
+ | |||
+ | $wgMediaViewerIsInBeta | ||
+ | $wgMediaViewerEnableByDefault | ||
+ | $wgMediaViewerEnableByDefaultForAnonymous | ||
+ | $wgMediaViewerUseThumbnailGuessing | ||
+ | |||
+ | |||
//Purge caching | //Purge caching | ||
Line 13: | Line 39: | ||
$wgParserCacheType = CACHE_NONE; | $wgParserCacheType = CACHE_NONE; | ||
$wgCachePages = false; | $wgCachePages = false; | ||
+ | |||
+ | |||
+ | wfLoadExtension( 'CodeEditor' ); | ||
+ | $wgDefaultUserOptions['usebetatoolbar'] = 1; // user option provided by WikiEditor extension | ||
+ | |||
+ | |||
+ | $wgEnableUploads = true; | ||
+ | |||
+ | $wgUseImageMagick = true; | ||
+ | |||
+ | $wgImageMagickConvertCommand = "/usr/bin/convert"; | ||
+ | |||
+ | wfLoadExtension( 'ImageMap' ); | ||
+ | |||
+ | wfLoadExtension( 'WikiEditor' ); | ||
+ | |||
+ | $wgHooks['SkinTemplateNavigation'][] = 'replaceTabs'; | ||
+ | function replaceTabs( $skin, &$links) { | ||
+ | unset( $links['namespaces']['talk'] ); // Remove the talk action | ||
+ | return true; | ||
+ | } | ||
+ | |||
+ | //External links in new TAB | ||
+ | $wgExternalLinkTarget = '_blank'; |
Latest revision as of 07:56, 16 September 2024
//Can only be edited in file system ntot webpage// $wgRestrictDisplayTitle = true;
$wgAllowUserJs=true;
$wgSitename = "LinnDocs";
$wgNamespacesWithSubpages[NS_MAIN] = true;
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'CSS' );
$wgPFEnableStringFunctions = true;
$wgUseCategoryBrowser = true;
//Category tree
wfLoadExtension( 'CategoryTree' );
//$wgCategoryTreeDefaultOptions['mode'] = 'pages';
//$wgCategoryTreeDefaultOptions['namespaces'] = [ 0, NS_CATEGORY, NS_FILE ];.
wfLoadExtension( 'Tabs' ); require_once "$IP/extensions/Tabs/Tabs.php";
wfLoadExtension( 'DisplayTitle' );
$wgMediaViewerIsInBeta $wgMediaViewerEnableByDefault $wgMediaViewerEnableByDefaultForAnonymous $wgMediaViewerUseThumbnailGuessing
//Purge caching $wgEnableParserCache = false; // deprecated method $wgParserCacheType = CACHE_NONE; $wgCachePages = false;
wfLoadExtension( 'CodeEditor' );
$wgDefaultUserOptions['usebetatoolbar'] = 1; // user option provided by WikiEditor extension
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'WikiEditor' );
$wgHooks['SkinTemplateNavigation'][] = 'replaceTabs'; function replaceTabs( $skin, &$links) {
unset( $links['namespaces']['talk'] ); // Remove the talk action return true;
}
//External links in new TAB $wgExternalLinkTarget = '_blank';