작은숲:위키노트/미디어위키 설정
보이기
(위키노트:미디어위키 설정에서 넘어옴)
// Set Default Timezone
$wgLocaltimezone = "Asia/Seoul";
date_default_timezone_set($wgLocaltimezone);
// redirect
$wgScriptPath = "/w";
$wgScript = "$wgScriptPath/index.php";
$wgArticlePath = "/w/$1";
$wgScriptExtension = ".php";
// logo and favicon
$wgLogo = "$wgScriptPath/images/logo.png";
$wgFavicon = "$wgScriptPath/images/favicon.ico";
// cache
$wgCacheDirectory = "$IP/cache";
$wgUseFileCache = true;
$wgFileCacheDirectory = "$IP/cache";
$wgShowIPinHeader = false;
$wgDisableCounters = true;
$wgEnableSidebarCache = true;
// config for utilization
$wgJobRunRate = 0.01;
//$wgShowArchiveThumbnails = false; // do not show previous version thumbnails
// CharInsert extention for EditForm
wfLoadExtension( 'CharInsert' );
// file upload extensions
$wgFileExtensions[] = 'zip';
$wgFileExtensions[] = 'doc';
$wgFileExtensions[] = 'xls';
$wgFileExtensions[] = 'pdf';
$wgFileExtensions[] = 'mp3';
$wgFileExtensions[] = 'svg';
// external link
$wgExternalLinkTarget = '_blank';
$wgAllowExternalImages = true;
$wgAllowSiteCSSOnRestrictedPages = true; // allow to re-enable site-wide CSS on restricted special pages.이름공간
//---------------------------------------------------------------------------
// https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
// Define constants for my additional namespaces.
define("NS_DAILY", 3000); // This MUST be even.
define("NS_DAILY_TALK", 3001); // This MUST be the following odd integer.
// Add namespaces.
$wgExtraNamespaces[NS_DAILY] = "일상";
$wgExtraNamespaces[NS_DAILY_TALK] = "일상토론"; // Note underscores in the namespace name.
$wgNamespaceProtection[NS_DAILY] = array( 'editdaily' ); // permission "editfoo" required to edit the foo namespace
$wgNamespacesWithSubpages[NS_DAILY] = true; // subpages enabled for the foo namespace
$wgGroupPermissions['sysop']['editdaily'] = true; // permission "editfoo" granted to users in the "sysop" group
$wgContentNamespaces[] = NS_DAILY;참고
- Manual:User_rights
- Help:Namespaces/ko
- Manual:Using custom namespaces
- Manual:Extensions
- Category:Extensions by category
- 특수:소도구
| 설치와 설정 | |
|---|---|
| 기능과 활용 | |
| 관리와 개발 | |