“Mediawikil默认设置配置”的版本间的差异

来自个人维基
跳转至: 导航搜索
(以“ DefaultSettings.php: <pre> $wgDefaultUserOptions = array( 'ccmeonemails' => 0, 'cols' => 80, 'date' => 'default', 'diffonly' => 0, 'disablemail' => 0, 'disab...”为内容创建页面)
 
 
(未显示1个用户的1个中间版本)
第1行: 第1行:
  
DefaultSettings.php:
+
include/DefaultSettings.php:
  
 
<pre>
 
<pre>
 +
//字体、皮肤等设置
 
$wgDefaultUserOptions = array(
 
$wgDefaultUserOptions = array(
 
'ccmeonemails' => 0,
 
'ccmeonemails' => 0,
第68行: 第69行:
 
);
 
);
  
 +
//搜索命名空间
 +
$wgNamespacesToBeSearchedDefault = array(
 +
NS_MAIN => true,
 +
);
 +
 +
//文件上传相关
 +
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
 +
 +
/**
 +
* Warn if uploaded files are larger than this (in bytes), or false to disable
 +
*/
 +
$wgUploadSizeWarning = false;
 
</pre>
 
</pre>

2015年4月9日 (四) 15:13的最后版本

include/DefaultSettings.php:

//字体、皮肤等设置
$wgDefaultUserOptions = array(
	'ccmeonemails' => 0,
	'cols' => 80,
	'date' => 'default',
	'diffonly' => 0,
	'disablemail' => 0,
	'disablesuggest' => 0,
	'editfont' => 'default',
	'editondblclick' => 0,
	'editsection' => 1,
	'editsectiononrightclick' => 0,
	'enotifminoredits' => 0,
	'enotifrevealaddr' => 0,
	'enotifusertalkpages' => 1,
	'enotifwatchlistpages' => 0,
	'extendwatchlist' => 0,
	'externaldiff' => 0,
	'externaleditor' => 0,
	'fancysig' => 0,
	'forceeditsummary' => 0,
	'gender' => 'unknown',
	'hideminor' => 0,
	'hidepatrolled' => 0,
	'imagesize' => 2,
	'justify' => 0,
	'math' => 1,
	'minordefault' => 0,
	'newpageshidepatrolled' => 0,
	'nocache' => 0,
	'noconvertlink' => 0,
	'norollbackdiff' => 0,
	'numberheadings' => 0,
	'previewonfirst' => 0,
	'previewontop' => 1,
	'quickbar' => 5,
	'rcdays' => 7,
	'rclimit' => 50,
	'rememberpassword' => 0,
	'rows' => 25,
	'searchlimit' => 20,
	'showhiddencats' => 0,
	'showjumplinks' => 1,
	'shownumberswatching' => 1,
	'showtoc' => 1,
	'showtoolbar' => 1,
	'skin' => false,
	'stubthreshold' => 0,
	'thumbsize' => 2,
	'underline' => 2,
	'uselivepreview' => 0,
	'usenewrc' => 0,
	'watchcreations' => 0,
	'watchdefault' => 0,
	'watchdeletion' => 0,
	'watchlistdays' => 3.0,
	'watchlisthideanons' => 0,
	'watchlisthidebots' => 0,
	'watchlisthideliu' => 0,
	'watchlisthideminor' => 0,
	'watchlisthideown' => 0,
	'watchlisthidepatrolled' => 0,
	'watchmoves' => 0,
	'wllimit' => 250,
);

//搜索命名空间
$wgNamespacesToBeSearchedDefault = array(
	NS_MAIN => true,
);

//文件上传相关
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );

/**
 * Warn if uploaded files are larger than this (in bytes), or false to disable
 */
$wgUploadSizeWarning = false;