Manual:設定
このページは、サポートされているすべての構成オプションの索引であり、DefaultSettings.php
ファイルに基づいています。
DefaultSettings.php
を決して編集しないでください。代わりに適切な行を LocalSettings.php
にコピーして修正してください。
設定が見つからない場合は、DefaultSettings.php
を参照してください。
設定の説明がそこに記されています。
Manual:$wgAllowAnonymousMinor
) を見つけてください。
全般設定
- $wgCanonicalServer – サーバーの正規URL、IRCフィード、通知メールなどで使用する。
- $wgServer – サーバーの基底 URL。
- $wgServerName – プロトコルなしのサーバーの名前。
- $wgSitename – サイトの名前。
- $wgVersion (1.35 以降廃止予定) – MediaWiki のバージョン番号。
URL とファイル パス
- $IP – インストール先ディレクトリへの絶対パス。
- $wgActionPaths – さまざまな利用者の操作のためのパス。URL をより pretty にするために使用されます。
- $wgAppleTouchIcon – Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices
- $wgArticlePath – The base URL used to create article links.
- $wgConfigRegistry – config オブジェクトを作成するファクトリー関数のレジストリ
- $wgDiff – GNU diff ユーティリティへのパス。
- $wgDiff3 – GNU diff3 ユーティリティへのパス。
- $wgDirectoryMode – 新たに作成したディレクトリの既定の
chmod
パーミッション値。 - $wgFavicon – サイトのファビコンの URL。
- $wgFFmpegLocation – FFmpeg クライアントの実行ファイル名。
- $wgFFprobeLocation – FFprobe の実行ファイル名。
- $wgGitBin – git バイナリへのパス。
- $wgGitInfoCacheDirectory – Directory where GitInfo will look for pre-computed cache files.
- $wgImgAuthPath (1.35 で導入) –
img_auth.php
の基底パス。 - $wgLoadScript – load.php への URL パス。
- $wgLogos (1.35 で導入) – The URL path to various wiki logos.
- $wgLogo – サイトロゴのURL。
- $wgLogoHD (1.35 以降廃止予定) – サイトのロゴの HD (高解像度) バージョンの URL。
- $wgPhpCli – PHP cli クライアント (php/php5) の実行可能ファイル名。
- $wgRestPath (1.34 で導入) – rest.php への URL パス。
- $wgScript – index.php の URL。
- $wgScriptExtension (1.27 で除去済) – 既定でスクリプト名に追加する拡張子です。
- $wgScriptPath – ベースURLのパス。
- $wgSitesCacheFile (1.33 で除去済) – サイトの JSON キャッシュ ファイルの場所を指定する。
- $wgStyleSheetPath (1.3 以降廃止予定) –
$wgStyleSheetPath
に設定せず、代わりに$wgStylePath
を使用すること。 - $wgThumbPath (1.35.1 で導入) – thumb_handler.php の基底パス。
- $wgTmpDirectory – The path of the temporary directory.
- $wgUsePathInfo – 「見た目のよい」URLを使うべきか。
- $wgVariantArticlePath – 言語変種があるリンクに使用する。
See also file/image upload path settings.
See also skins path settings.
グローバルオブジェクト
- $wgAutoloadLocalClasses – Array mapping class names to filenames, for autoloading.
- $wgConf – サイト設定のオブジェクトを作成します。初期設定のままインストールする場合はほとんど使われません。
- $wgVirtualRestConfig – REST services configuration
メールの設定
See also User Access: $wgEmailConfirmToEdit
- $wgAdditionalMailParams – Additional email parameters, will be passed as the last argument to mail() PHP function call.
- $wgAllowHTMLEmail – HTML メールを有効にするには true を設定する。
- $wgEmailAuthentication – このウィキでメール認証 (メール確認) を有効にするには true を設定する。 パスワード通知メール以外のメール機能は認証済みメールアドレスでのみで動作するようになる。
- $wgEmergencyContact – サイト管理者のメールアドレス
- $wgEnableEmail – 基本的なメール機能を有効にするには true に設定する。
- $wgEnableSpecialMute (1.34 で導入) (1.34 以降廃止予定) – Set to true to enable the Special Mute page.
- $wgEnableUserEmail – 利用者間のメールを有効にするには true に設定する。
- $wgEnableUserEmailBlacklist – true を設定することで、利用者間メールのブラックリストを有効にする。
- $wgNoReplyAddress – 自動的に生成したメールの返信先アドレス。
- $wgPasswordReminderResendTime – パスワード リマインダー メール発行の最短経過時間 (時間単位)。
- $wgPasswordSender – パスワードリマインダーの送信元メールアドレス
- $wgRequirePasswordforEmailChange (1.27 で除去済) – 利用者がメールアドレスを変更する際に自身のパスワードを入力させるかどうか。
- $wgSMTP – For using a direct (authenticated) SMTP server connection.
- $wgSysopEmailBans (1.35 で除去済) – 管理者が利用者を Special:Emailuser へのアクセスから追放できるようにする。
- $wgUserEmailConfirmationTokenExpiry – メールアドレス確認トークンの有効期間 (秒)
- $wgUserEmailUseReplyTo – 送信者である利用者のメールアドレスを From ヘッダーではなく Reply-To ヘッダーに記載するには true にする。
メール通知(enotif)の設定
- Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions .
- $wgEnotifFromEditor – メール通知がその編集をした利用者から来たように見えるようにするかどうか
- $wgEnotifImpersonal – 各利用者にパーソナライズしたメールではなく汎用的なメールを送信する。
- $wgEnotifMaxRecips – 機械的なメールを使用する際に、メールを一度に送信できる利用者数の上限。
- $wgEnotifMinorEdits – 「細部の編集」の印が付いた編集についてもメール通知を受け取れるようにするには true を設定する
- $wgEnotifRevealEditorAddress – ページの編集者のメールアドレスをメール通知の Reply-To アドレスに挿入するには true を設定する
- $wgEnotifUseJobQ (1.27 で除去済) – ジョブ キュー経由でメールを送信する。
- $wgEnotifUseRealName – メールの「From」フィールドで利用者名の代わりに実名を使用する。
- $wgEnotifUserTalk – Enable email notifications for edits on users' talk pages.
- $wgEnotifWatchlist – ウォッチしているページについてメール通知を受け取れるようにするには true を設定する
- $wgUseEnotif – Overall "use Enotif" setting
- $wgUsersNotifiedOnAllChanges – ウィキでのすべての変更についてメールで通知を受け取る利用者名の配列。
データベースの設定
- $wgAllDBsAreLocalhost (1.28 で除去済) – すべてのデータベース接続の接続先を密かに localhost にする。
- $wgContentHandlerUseDB (1.35 で除去済) – Whether to use the database fields introduced by the ContentHandler facility
- $wgPageLanguageUseDB – MediaWikiページへの言語の変更を許可する
- $wgDataCenterUpdateStickTTL – After a state-changing request is done by a client, this determines how many seconds that client should keep using the master datacenter.
- $wgDBcompress – DB 接続で圧縮を使用するかどうか。
- $wgDBDefaultGroup (1.32 で導入) – Default group to use when getting database connections. For use by maintenance scripts.
- $wgDBerrorLog – データベースのエラーを記録するファイル。
- $wgDBmwschema – MediaWiki のテーブルを格納するスキーマ。
- $wgDBname – データベースの名前。
- $wgDBpassword –
$wgDBuser
のパスワード。 - $wgDBprefix – テーブル名の接頭辞。
- $wgDBserver – データベース サーバーのホスト名または IP アドレス。
- $wgDBssl – DB 接続で SSL を使用するかどうか。
- $wgDBtype – データベースの種類。
- $wgDBuser – データベースのユーザー名。
- $wgDebugDBTransactions (1.27 で除去済) – Enable additional database transaction lifecycle tracing in the debug output.
- $wgLocalDatabases – このサイトの他のウィキを単一の開発者アカウントで管理できる。
- $wgMaxUserDBWriteDuration – Max time (in seconds) a user-generated transaction can spend in writes.
- $wgSearchType – ウィキで使用する検索の種類。
ロードバランサーの設定
- $wgDBservers – Settings for the database load balancer (database servers and load ratios).
- $wgDefaultExternalStore – Default external store for new revisions.
- $wgLBFactoryConf – ロードバランサー ファクトリーの構成の設定。
- $wgMasterWaitTimeout (1.24 以降廃止予定) – スレーブがマスターに追い付くまでの待ち時間。
- $wgSlaveLagCritical – 遅延がこの値より大きい場合に、
$wgSlaveLagWarning
よりもはっきりした警告を表示する。 - $wgSlaveLagWarning – 遅延がこの値より大きい場合に、一部の特別ページ (ウォッチリストなど) で警告を表示する。
MSSQLの固有設定
- $wgDBWindowsAuthentication (1.35 で除去済) –
$wgDBuser
/$wgDBpassword
の組み合わせの代わりに統合 Windows 認証を使用する。
MySQLの固有設定
- $wgDBmysql5 (1.33 で除去済) – MySQL 接続のエンコーディングを UTF-8 にするには true を設定する (実験的)
- $wgDBTableOptions – インストールやアップグレードの時に使うMySQLテーブルのオプション。
- $wgExternalServers – 外部 MySQL サーバーの配列。
- $wgSQLMode – MySQL の
sql_mode
パラメーターの値
Oracleの固有設定
- $wgDBOracleDRCP (1.34 で除去済) – When set to true, enables persistent connection with DRCP on Oracle.
PostgreSQLの固有設定
- $wgDBport – データベースのポート。PostgreSQL のみで使用される。
SQLiteの固有設定
- $wgSQLiteDataDir – SQLite 既定のデータ ディレクトリをオーバーライドする。
共有DBの設定
- $wgSharedDB – 共有データベースの名前。
- $wgSharedPrefix – 共有データベースのテーブルに使用するテーブル接頭辞。
- $wgSharedTables – List of database tables (without prefixes) to share when
$wgSharedDB
is enabled. - $wgSharedSchema – The table schema for the shared database
圧縮ストレージのサポート
- $wgCompressRevisions – 可能であれば、新しいページの版を圧縮する
- $wgDisableOutputCompression – 圧縮出力を無効にする (zlib を利用できる場合、既定では圧縮は有効)。
移行
- $wgActorTableSchemaMigrationStage (1.34 で除去済) – actor テーブル スキーマ移行の段階。
- $wgChangeTagsSchemaMigrationStage (1.32 で導入) (1.33 で除去済) – Change tag table schema migration stage.
- $wgCommentTableSchemaMigrationStage (1.33 で除去済) – Comment table schema migration stage.
- $wgMultiContentRevisionSchemaMigrationStage (1.32 で導入) – RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
- $wgPagePropsHaveSortkey – Set to false if the
page_props
table doesn't have app_sortkey
column - $wgTagStatisticsNewTable (1.32 で導入) (1.33 で除去済) – Temporarily flag to use change_tag_def table as backend of change tag statistics.
拡張機能のフィールド
- $wgExtPGNewFields (1.36 で除去済) – 拡張機能が定義した、既存のテーブルに追加するフィールド
- $wgExtNewTables (1.36 で除去済) – 拡張機能が定義した、スキーマ変更の際に追加するテーブル
- $wgExtNewFields (1.36 で除去済) – 拡張機能が定義した、既存のテーブルに追加するフィールド
- $wgExtNewIndexes (1.36 で除去済) – 拡張機能が定義した、既存のテーブルに追加するインデックス
- $wgExtPGAlteredFields (1.36 で除去済) – Extension defined columns to be altered in tables
- $wgExtModifiedFields (1.36 で除去済) – Extension defined fields to change existing tables
地域化
- $wgDisabledVariants – 言語変種の変換で無効にする変種。
- $wgDisableLangConversion – 言語変種の変換を有効にするかどうか。
- $wgDisableTitleConversion – リンクの言語変種の変換を有効にするかどうか。
- $wgDummyLanguageCodes (1.29 以降廃止予定) – List of language codes that have been renamed to new (correct) codes, or don't correspond to an actual interface language.
- $wgEditEncoding (1.28 で除去済) – 出力エンコーディングにより明確に変換されない文字群
- $wgExtraLanguageCodes – 特定の言語コードのマッピングを変更する一覧
- $wgForceUIMsgAsContentMsg – 本文メッセージとして扱うべき UI メッセージの配列。
- $wgInterwikiMagic – 言語リンクを、インライン リンクではなくマジック コネクターとして扱う。
- $wgLangObjCacheSize – Language cache size, or really how many languages can we handle simultaneously without degrading to crawl speed.
- $wgLanguageCode – サイトの言語コード。
- $wgLegacyEncoding – Set this to the character set, which you used before you updated to MediaWiki 1.5 (eg 'ISO-8859-1'). MediaWiki will then perform a temporary character set conversion when loading old revisions, which are not marked with "utf-8" flag (revisions created with MediaWiki 1.4 and earlier).
- $wgMsgCacheExpiry (1.34 で除去済) – キャッシュされたメッセージの有効期間 (秒単位)。
- $wgOverrideUcfirstCharacters (1.34 で導入) – List of Unicode characters for which capitalization is overridden in Language::ucfirst.
- $wgRawHtmlMessages (1.32 で導入) – List of messages which might contain raw HTML.
- $wgUseDatabaseMessages – 変換にMediaWiki 名前空間を使用する。
- $wgUserFallbackLanguages – maximum number of fallback languages per user
タイムゾーンの設定
- $wgLocaltimezone – 設定したタイムゾーンにサーバーがあるかのように見せかける。
- $wgLocalTZoffset – サーバーのタイムゾーンに分単位の時差を追加する。
- $wgDBerrorLogTZ – エラー ログ内で使用するタイムゾーン。
言語固有
- 英語
- $wgAmericanDates – 既定の日付の書式として 'dmy' の代わりに 'mdy' を使用する。例: '12 May' の代わりに 'May 12'
- アラビア語/ヒンディー語
- $wgTranslateNumerals – ヒンディー語、アラビア語など独自の数字がある言語で、インターフェイスの一部で西洋スタイルの数字 (0-9) の代わりに地域の数字を使用する。
デバッグ/ロギング
- See also: Manual:デバッグの方法
- $wgAggregateStatsID (1.27 で除去済) – Allows statistics to be aggregated over more than one wiki when using udp logging.
- $wgDebugComments – Include portions of log output in page HTML comment
- $wgDebugDumpSql – SQL クエリをデバッグ出力にダンプする
- $wgDebugDumpSqlLength (1.27 で除去済) – Cutoff length for SQL queries dumped by $wgDebugDumpSql
- $wgDebugLogFile – デバッグ ログのファイル名。無効にする場合は空にする。
- $wgDebugLogGroups – Direct
wfDebugLog()
output for certain groups to files other than$wgDebugLogFile
. - $wgDebugLogPrefix – デバッグ ログ行の接頭辞。
- $wgDebugPrintHttpHeaders (1.34 で除去済) – リクエストのたびに HTTP ヘッダーをデバッグ情報に出力する。
- $wgDebugRawPage – If false, 'action=raw' and load.php hits will not result in debug output.
- $wgDebugRedirects – Displays redirect location instead of actually redirecting to the target URL
- $wgDebugTimestamps (1.35 で除去済) – デバッグ メッセージの先頭に相対タイムスタンプを追加する。
- $wgDebugToolbar – デバッグ ツールバーを表示する
- $wgDeprecationReleaseLimit –
wfDeprecated
警告のリリース番号での制限。 - $wgDevelopmentWarnings – Whether to throw PHP notices for some possible error conditions and for deprecated functions.
- $wgLogExceptionBacktrace – 例外のバックトレースをエラー ログに送信するかどうか。
- $wgMWLoggerDefaultSpi – Default service provider for creating MWLogger instances.
- $wgOverrideHostname – サーバーが検出したホスト名を、指定した値でオーバーライドする。
- $wgPageInfoTransclusionLimit – InfoAction でのテンプレートの参照読み込みの上限
- $wgPropagateErrors – If true, the MediaWiki error handler passes errors/warnings to the default error handler after logging them.
- $wgShowDBErrorBacktrace (1.32 以降廃止予定) – true の場合、データベース エラーのバックトレースを表示する。
- $wgShowDebug – 本文領域の下部にデバッグ データを表示する。
- $wgShowSQLErrors (1.32 以降廃止予定) – 「we're sorry, but there has been a database error」ページに SQL エラーを表示するかどうか。
- $wgShowExceptionDetails – true にすると、例外が捕捉されなかった場合に、完全なスタック トレースを出力する。
- $wgStatsMethod (1.27 で除去済) – Destination for
wfIncrStats()
data - $wgTrxProfilerLimits – Performance expectations for DB usage
- $wgUsePigLatinVariant – Whether to enable the pig latin variant of English (en-x-piglatin), used to ease variant development work.
プロファイリング
- $wgEnableProfileInfo (1.35 で除去済) – Controls the availability of profileinfo.php.
- $wgProfiler – Settings related to profiling.
- $wgProfileCallTree (1.27 で除去済) – true の場合、関数ごとのレポートではなく生の呼び出しツリーを出力する
- $wgProfileLimit (1.35 で除去済) – 読み込み時間がこの秒数を超えた場合、ページのプロファイリング情報のみを記録する。
- $wgProfileOnly (1.35 で除去済) – ノンプロファイリングの情報をログファイルに入れない
- $wgProfilePerHost (1.27 で除去済) – アプリケーション サーバーのホスト名をプロファイリング テーブルに格納するかどうか。
- $wgUDPProfilerHost (1.27 で除去済) – UDP プロファイラーのホスト。
- $wgUDPProfilerPort (1.27 で除去済) – UDP プロファイラーのポート。
- $wgUDPProfilerFormatString (1.27 で除去済) – UDP プロファイラーの書式文字列。
サイトのカスタマイズ
- $wgBreakFrames – フレームセットを回避する。 この設定で、外部サイトがあなたのサイトを広告付きでフレームに入れるのを阻止できる。
- $wgCapitalLinks – これを false に設定すると最初の文字を強制的に大文字にするのを避けることができます。
- $wgCapitalLinkOverrides – Per namespace configuration for $wgCapitalLinks .
- $wgDefaultLanguageVariant – 既定の言語変種。
- $wgEditPageFrameOptions – ウィキ ページのフレーム化をグローバルに制御する。
- $wgEditSubmitButtonLabelPublish – Vary the 'save' labels to 'publish' for public wikis.
- $wgExtraLanguageNames – Names.php 内の既定の言語名に対するオーバーライドのリスト。
- $wgForceHTTPS (1.34.3 で導入) – Redirect insecure HTTP requests to HTTPS.
- $wgHideInterlanguageLinks – サイドバーの言語間リンクを非表示にする。
- $wgHttpsPort – Port where you have HTTPS running. Supports HTTPS on non-standard ports.
- $wgLegalTitleChars – Override the default list of illegal characters in page titles.
- $wgMainPageIsDomainRoot (1.34 で導入) – メインページをドメインルートとして使用する必要があるかどうかを制御します。
- $wgMaxArticleSize – 最大ページ サイズ (KB 単位)。
- $wgMaxRedirects – リダイレクトを処理する際のリダイレクトの最大数。
- $wgNoFollowDomainExceptions – これらのドメイン名 (または任意のサブドメイン名) への外部リンクに
rel="nofollow"
を設定しない - $wgNoFollowLinks – true の場合、ウィキテキスト内の外部 URL リンクに
rel="nofollow"
属性を追加します。 - $wgPingback – true に設定すると、MediaWikiは開発者支援のためインストールに関するデータを随時報告する
- $wgReferrerPolicy – Value for the referrer policy meta tag.
- $wgReportToEndpoints (1.34 で導入) – List of endpoints for the Reporting API.
- $wgReportToExpiry (1.34 で導入) – Expiry of the endpoint definition for the Reporting API.
- $wgSiteNotice – すべてのページの上部に表示されるメッセージ。
- $wgStyleVersion (1.32 で除去済) – 静的な CSS や JS が変更された際にクライアント側のキャッシュを削除できるように、それらのクエリ文字列に追加するバージョン。
- $wgSiteTypes – Register handlers for specific types of sites.
- $wgSiteSupportPage (1.32 で除去済) – ウィキのサポート ページのページ名。
- $wgStructuredChangeFiltersOnWatchlist (1.32 で除去済) – Whether to enable RCFilters app on Special:Watchlist
- $wgStructuredChangeFiltersShowPreference (1.32 で除去済) – Whether to enable RCFilters app on Special:RecentChanges
- $wgUniversalEditButton – ユニバーサル・エディット・ボタンに対応しているブラウザーでこれを有効にする。
- $wgUrlProtocols – mediawikiパーサーが対応してHTMLに変換するプロトコルを定義する。
Ajax
- $wgAjaxExportList (1.27 以降廃止予定) –
action=ajax
経由で呼び出せるAjaxFunctions.php
の関数のリスト。 - $wgAjaxUploadDestCheck – ファイルの上書き、プレアップロードについて Ajax のチェックを有効にする。
- $wgAjaxWatch (1.27 で除去済) – Ajax を使用してページのウォッチ/ウォッチ解除ができるようにする。
- $wgRestAPIAdditionalRouteFiles (1.35 で導入) – 追加的な REST API 経路ファイル。
- $wgUseAjax (1.31 以降廃止予定) – Ajax への対応を有効にする。
フロントエンド
- $wgAllowSiteCSSOnRestrictedPages – 特別ページでサイト全体のCascading Style Sheets (CSS) を使用できるようにする。
- $wgAllowUserCss – 利用者 CSS (カスケーディング スタイルシート) を有効にする
- $wgAllowUserJs – 利用者 JavaScript ページを使用できるようにする
- $wgEnableJavaScriptTest – Special:JavaScriptTest で JavaScript 単体テスト (QUnit など) を実行できるようにする
- $wgForcedRawSMaxage – CSS/JavaScript アクセスの既定の最長有効期間 (秒単位)。
- $wgIncludeLegacyJavaScript (1.26 以降廃止予定) – mediawiki.legacy JavaScript ライブラリ (古い wikibits.js) およびその依存関係をインクルードするかどうか。
- $wgOOUIEditPage (1.30 で除去済) – Whether to use OOjs UI buttons, checkboxes and summary input in the edit form.
- $wgPreloadJavaScriptMwUtil (1.27 で除去済) – Whether to preload the mediawiki.util module as blocking module in the top queue.
- $wgLegacyJavaScriptGlobals – グローバル window オブジェクトに構成変数を代入するかどうか。
- $wgUseSiteCss – サイトのカスケーディングスタイルシート (CSS) を使用する
- $wgUseSiteJs – サイトの JavaScript ページを使用する
- $wgUsejQueryThree (1.31 で除去済) – jQuery 1 に代わって jQuery 3 に差し替えるかどうか (jQuery移植に伴って)。
ResourceLoader機能
- See ResourceLoader for more information.
- $wgResourceBasePath – Default 'remoteBasePath' value for resource loader modules.
- $wgResourceLoaderDebug – ResourceLoader リクエストの既定のデバッグ モード (ON/OFF)。
- $wgResourceLoaderEnableJSProfiler (1.32 で導入) – When enabled, execution of JavaScript modules is profiled client-side.
- $wgResourceLoaderLESSVars (1.32 で除去済) – Global LESS variables.
- $wgResourceLoaderLESSImportPaths (1.32 で除去済) – LESS モジュールの既定のインポート パス。
- $wgResourceLoaderMaxage – ResourceLoader が提供したリソースをキャッシュする時間の最大値 (秒単位)。
- $wgResourceLoaderMaxQueryLength – ResourceLoader のリクエストのクエリ文字列の最大長。
- $wgResourceLoaderMinifierMaxLineLength (1.31 で除去済) – Maximum line length when minifying JavaScript.
- $wgResourceLoaderMinifierStatementsOnOwnLine (1.31 で除去済) – Put each statement on its own line when minifying JavaScript.
- $wgResourceLoaderSources – Foreign module sources registry.
- $wgResourceLoaderStorageVersion – Cache version for client-side ResourceLoader module storage.
- $wgResourceLoaderValidateJS – Whether to parse JavaScript module prior to minification to validate them.
- $wgResourceLoaderValidateStaticJS (1.32 で除去済) – Whether to parse statically-sourced (file-backed) JavaScript resources prior to minification to validate them.
- $wgResourceLoaderStorageEnabled – ResourceLoader が、Web Storage API をサポートするブラウザーの localStorage にモジュールを永続化しようとするかどうか。
- $wgResourceLoaderUseObjectCacheForDeps (1.35 で導入) – Use the main stash instead of the module_deps table for indirect dependency tracking
- $wgResourceModules – Array of all extra defined modules that can later be loaded during the output.
- $wgResourceModuleSkinStyles – 既存の ResourceLoader モジュールに対する外装提供の追加的なスタイルシートの配列。
- $wgVueDevelopmentMode (1.35 で導入) – Vue.js の開発バージョンを使用するかどうか。
名前空間
- $wgContentNamespaces – Namespaces which are considered to contain real content, or articles
- $wgExtraNamespaces – 追加的な名前空間。
- $wgExtraGenderNamespaces – 名前空間の性別を区別する目的の名前空間のための$wgExtraNamespaces と同じものです。
- $wgExtraSignatureNamespaces – Controls in which subject (non-talk) namespaces the "Signature" button on the edit toolbar will be displayed.
- $wgMetaNamespace – メタ名前空間で使用する名前。
- $wgMetaNamespaceTalk – project talk 名前空間の名前。
- $wgNamespaceAliases – 名前空間の別名を指定する。
- $wgNamespaceContentModels – 特定の名前空間に定義されたコンテンツタイプ
- $wgNamespaceProtection – 誰がどの名前空間を編集できるか
- $wgNamespacesToBeSearchedDefault – Which namespaces should be searched?
- $wgNamespacesWithSubpages – どの名前空間を下位ページに対応させるか
- $wgNoFollowNsExceptions – Manual:$wgNoFollowLinks を適用しない名前空間。
- $wgNonincludableNamespaces – 特定の名前空間のページの参照読み込みを拒否するために使用する。
- $wgPreviewOnOpenNamespaces – 初回の編集でプレビューを強制する名前空間。
- $wgSitemapNamespaces – サイトマップを生成する名前空間の配列。すべての名前空間の場合は false を設定する。
- $wgSitemapNamespacesPriorities – サイトマップでの名前空間の優先度のカスタマイズ。
出力
- $wgAllowMicrodataAttributes (1.27 で除去済) – ウィキテキスト内で HTML5 マイクロデータ属性を使用できるようにする。
- $wgAllowRdfaAttributes (1.27 で除去済) – ウィキテキスト内で RDFa 属性を使用できるようにする。
- $wgCleanupPresentationalAttributes (1.20.1 で除去済) – Put as much as possible presentational HTML attributes in CSS.
- $wgHtml5 (1.34 で除去済) – HTML 5 の doctype を出力するかどうか。
- $wgHtml5Version – 必要であれば、
<html>
タグの version 属性の値を定義する。 - $wgWellFormedXml (1.27 で除去済) – 出力する HTML を整形式の XML にするかどうか。
- $wgMimeType –
Content-Type
ヘッダーで送信するタイプ。 - $wgMangleFlashPolicy – Whether to mangle any
<cross-domain-policy>
(Adobe cross-domain policy) tags, to prevent XSS attacks. - $wgSend404Code – 存在しないページに対して、404HTTP状態であることを送信する。
- $wgEnableCanonicalServerLink – Output a
<link rel="canonical">
tag on every page indicating the canonical server which should be used, i.e.$wgServer
or$wgCanonicalServer
. - $wgUseMediaWikiUIEverywhere – MediaWiki UI が対応しているあらゆる場所にそれを適用する。
- $wgHTMLFormAllowTableFormat – フォーム コンポーネントを表としてレンダリングできるようにする。
- $wgXhtmlNamespaces – Permit other XHTML namespaces in addition to the w3.org default.
The following setting is no longer used in supported versions of MediaWiki, but still exists for backward compatibility
- $wgXhtmlDefaultNamespace (1.34 で除去済) – XHTML モードで出力する際に使用する名前空間。
ロボットポリシー
- $wgArticleRobotPolicies – ページごとにロボット ポリシーをカスタマイズできるようにする。
- $wgDefaultRobotPolicy – ウィキのすべてのページについて既定のロボットポリシーを指定できるようにする
- $wgExemptFromUserRobotsControl –
__INDEX__
/__NOINDEX__
マジックワードが動作しないようにする名前空間キーの配列。 - $wgNamespaceRobotPolicies – 名前空間ごとにロボット ポリシーをカスタマイズできるようにする。
携帯機器対応
コンテンツ セキュリティ ポリシー
- $wgCSPHeader (1.32 で導入) – Content-Security-Policy ヘッダー [Experimental] をコントロール
- $wgCSPReportOnlyHeader (1.32 で導入) – Content-Security-Policy-Report-Only ヘッダー [Experimental] をコントロール
- $wgCSPFalsePositiveUrls – Content-Security-Policy 機能の次回のレポートで、どの URL を対象外にするかコントロールします。
コンテンツ ハンドラー
- $wgContentHandlerTextFallback – How to react if a plain text version of a non-text Content object is requested using
ContentHandler::getContentText()
- $wgContentHandlers – コンテンツ タイプ ハンドラーのマッピング。
- $wgTextModelsToParse – Determines which types of text are parsed as wikitext.
サイト統計情報
- $wgArticleCountMethod – 本文名前空間のページを有効な本文ページ (記事) としてカウントするかどうかの判断に使用する手法。
- $wgCountCategorizedImagesAsUsed – Special:Unusedimages で、画像がカテゴリに属している場合に、その画像が「使用されている」と見なす。
- $wgDisableCounters (1.35 で除去済) – ページビューのカウンターを無効にする。
- $wgStatsdSamplingRates – Sampling rate for statsd metrics as an associative array of patterns and rates.
- $wgSiteStatsAsyncFactor (1.34 で除去済) – サイトの統計の更新頻度を設定する。
- $wgStatsdServer – statsd サーバーの「ホスト」または「ホスト:ポート」。
- $wgStatsdMetricPrefix – $wgStatsdServer に送信されるメトリック名の接頭辞。
- $wgWantedPagesThreshold – Minimum number of pages that must link to a page before it will appear on Special:Wantedpages.
外装
- $wgDefaultSkin – 新規利用者に対する既定の外装。
- $wgFallbackSkin – Fallback skin used when the skin defined by
$wgDefaultSkin
can't be found. - $wgFooterIcons – Abstract list of footer icons for skins. It replaces the old copyrightico and poweredbyico code, which until MediaWiki 1.27 could be influenced with $wgCopyrightIcon
- $wgLocalStylePath –
$wgStylePath
と同じだが、外部ドメインへのパスは指定できない。 - $wgSkipSkin (1.35 で除去済) – 利用できる外装の一覧に表示しない外装名を指定する。
- $wgSkipSkins – 利用できる外装の一覧に表示しない外装の名前を指定する。
- $wgStyleDirectory – 外装ディレクトリへのファイルシステム パス。
- $wgStylePath – 外装ディレクトリの URL。
- $wgUseCombinedLoginLink – Login / create account link behavior when it's possible for anonymous users to create an account.
- $wgValidSkinNames – 有効な外装名の一覧。利用できる外装がどれかを MediaWiki に伝えるために、外装の一部がこの変数を使用する場合がある。
- $wgVectorUseSimpleSearch – 検索フォームの挙動 (ベクター外装のみ)。
- $wgVectorUseIconWatch – ウォッチとウォッチ解除を、リンクではなく星アイコンで行う (ベクター外装のみ)。
カテゴリ
- $wgCategoryCollation – What collation categories use to sort with
- $wgCategoryMagicGallery – カテゴリ ページで、カテゴリに属する画像を記事として列挙する代わりに、それらの画像のサムネイル ギャラリーを表示する。
- $wgCategoryPagingLimit – カテゴリ内の項目のページングの上限。
- $wgUseCategoryBrowser – 実験的なパンくずリスト (または dmoz スタイル) のカテゴリ ブラウジングを有効/無効にする。
- $wgTrackingCategories (1.25 以降廃止予定) – 追跡用カテゴリを表すメッセージのリスト。追跡用カテゴリは Special:TrackingCategories に列挙される。
キャッシュ
- $wgAttemptFailureEpoch – これを実行して、サムネイル作成の失敗の際に迅速に再試行します。
- $wgCacheDirectory – 各ウィキごとにつくられる長期間キャッシュファイルのローカルファイルシステム内ディレクトリ
- $wgCacheEpoch – Set this to current time to invalidate all prior cached pages.
- $wgCachePrefix – キャッシュ キー接頭辞のカスタム値。
- $wgClockSkewFudge (1.33 で除去済) – 時計のズレを調整するために、キャッシュのタイムスタンプに時間を加算してごまかす。
- $wgExtensionInfoMTime – Time to invalidate cache of extensions loaded by the extension registration system.
- $wgFooterLinkCacheExpiry (1.35 で導入) – Expiry time for the footer link cache, in seconds, or 0 if disabled.
- $wgInvalidateCacheOnLocalSettingsChange – true を設定すると、"LocalSettings.php" が変更されるたびに、キャッシュされたページをすべて無効化する。
- $wgLanguageConverterCacheType – 言語変換テーブルを格納するキャッシュの種類。
- $wgMainCacheType – オブジェクトキャッシュの設定
- $wgMainStash – Replicated object cache setting
- $wgObjectCaches – Advanced object cache configuration.
- $wgQueryCacheLimit – miser モードが ON の場合に 'querycache' テーブル内にキャッシュするデータ行の数。
- $wgThumbnailEpoch – レンダリングされたサムネイル ファイルがこのタイムスタンプより古い場合に、ファイルが存在しないかのように再レンダリングする。
- $wgTransactionalTimeLimit – Throttle for timing out transactional POST requests
- $wgUseETag (1.28 で除去済) – MediaWiki が ETag ヘッダーを送信するかどうか。
- $wgUseGzip – Use GZip to store cached pages.
- See: Interwiki for Interwiki cache settings.
クライアントサイドのキャッシング
- $wgCachePages – ページをクライアント側でキャッシュできるようにする
ファイルのキャッシュ
Settings for Server side file caching.
- $wgFileCacheDepth –
$wgFileCacheDirectory
の下位ディレクトリの階層の深さ。 - $wgFileCacheDirectory – サーバーサイドのキャッシュを使用するときにキャッシュされたページが保存されるディレクトリ。
- $wgUseFileCache – Create static HTML pages for unregistered viewers to reduce database traffic.
メッセージのキャッシュ
- $wgAdaptiveMessageCache – どのメッセージが必要かを追跡し、よく使用されるメッセージのみを読み込む。
- $wgLocalisationCacheConf – Localisation cache configuration.
- $wgMaxMsgCacheEntrySize – メッセージ キャッシュのエントリの最大サイズ (バイト単位)。
- $wgMessageCacheType – メッセージのキャッシュの設定
- $wgUseLocalMessageCache – Make a local copy of the message cache, in addition to memcached.
サイドバーのキャッシュ
- $wgEnableSidebarCache – If true, cache the sidebar navigation links.
- $wgSidebarCacheExpiry – サイドバーのキャッシュの有効期間 (秒単位)。
パーサーのキャッシュ
- $wgEnableParserCache (1.33 で除去済) – ページの出力を高速化するため、構文解析済みのページをキャッシュに保持する。
- $wgOldRevisionParserCacheExpireTime (1.36 で導入) – 古い版のパーサー キャッシュの有効期間 (秒単位)。
- $wgRenderHashAppend – Append a configured value to the parser cache and the sitenotice cache keys.
- $wgParserCacheExpireTime – キャッシュされたパーサー情報の有効期間 (秒単位)。
- $wgParserCacheType – パーサー キャッシュの設定
Memcachedの設定
Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.
- $wgMemCachedDebug – サーバーが動作していない場合、Setup.php 内で false が設定される。
- $wgMemCachedPersistent – Memcached サーバーへの永続的な接続を使用するかどうか。
- $wgMemCachedServers – memcached サーバー
- $wgMemCachedTimeout – サーバーの接続タイムアウト (ミリ秒単位)。
- $wgObjectCacheSessionExpiry –
$wgSessionsInObjectCache
が有効な場合のセッション ストレージを使用できる有効期間 (秒単位)。 - $wgRevisionCacheExpiry – Cache extracted revision text in MemCached.
- $wgSessionsInMemcached (1.29 で除去済) – Store session data in the object cache, rather than on the filesystem.
- $wgSessionCacheType – セッション データを格納するキャッシュの種類。
- $wgSessionsInObjectCache (1.33 で除去済) – セッションをオブジェクト キャッシュに格納するかどうか。
WAN キャッシュ
- $wgEnableWANCacheReaper – Whether to verify and enforce WAN cache purges using reliable DB sources as streams.
- $wgMainWANCache – Main wide area network cache configuration.
- $wgWANObjectCaches – Advanced Wide-Area-Network cache configuration.
インターウィキ
- $wgDisableHardRedirects – Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link.
- $wgEnableScaryTranscluding – Allow templates to be imported/transcluded from another wiki.
- $wgExternalInterwikiFragmentMode – Determines which ID escaping mode should be used for external interwiki links
- $wgExtraInterlanguageLinkPrefixes – 言語間リンクとして扱うインターウィキ接頭辞の配列。
- $wgImportSources – List of interwiki prefixes for wikis we'll accept as sources for Special:Import
- $wgInterlanguageLinkCodeMap (1.35 で導入) – インターウィキ コードが完全に一致しない場合に、言語名として表示される言語コードをオーバーライドするために使用する、言語間リンク コードから言語コードへマップする連想配列。
- $wgInterwikiPrefixDisplayTypes – Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwiki search results.
- $wgLocalInterwiki (1.35 で除去済) – このウィキのインターウィキ接頭辞。
- $wgLocalInterwikis – このウィキのインターウィキ接頭辞の配列。
- $wgRedirectSources – Regular expression to restrict URLs which will be displayed as "redirected from" links.
- $wgTranscludeCacheExpiry – インターウィキ トランスクルージョン キャッシュの有効期間
インターウィキキャッシュ
- 詳細情報は interwiki cache を参照してください。
- $wgInterwikiCache – Set to an associative array or file path to a CDB file for interwiki cache .
- $wgInterwikiExpiry – interwiki テーブルの memcached キャッシュの有効期間。
- $wgInterwikiFallbackSite – interwiki テーブルをダンプするためにメンテンナンス スクリプトで使用される
- $wgInterwikiScopes – インターウィキ データベース ファイルから取得するために
getInterwikiCache()
で使用される
アクセス権
Wiki locking, blocking/banning, and some other related settings.
- $wgActions – 通常のページで「action」パラメーターに指定できる値の配列。
- $wgAutopromote – 利用者が特定のグループに自動昇格する条件
- $wgAutopromoteOnce – Conditions of automatic promotion of user to specific groups that are done only once.
- $wgAccountCreationThrottle – 各 IP アドレスから作成できるアカウント数。無効にするには 0 を指定する。
- $wgApplyIpBlocksToXff – IP アドレスのブロックを XFF ヘッダーでブロックされた IP アドレスの利用者にも適用する。
- $wgBlockCIDRLimit – IP 範囲をブロックする際の最大 CIDR 範囲。
- $wgBlockDisablesLogin – true に設定すると、ブロックされたユーザーはログインできなくなります。
- $wgBotPasswordsDatabase – Database name for the bot_passwords table
- $wgBotPasswordsCluster – bot_passwords テーブルのクラスター名
- $wgCascadingRestrictionLevels – Restriction levels that can be used with cascading protection
- $wgSemiprotectedRestrictionLevels – Restriction levels that are considered "semi-protected"
- $wgDeleteRevisionsLimit – ページを削除するのに bigdelete 権限を必要とする、そのページの版数のしきい値 (整数)。
- $wgEnablePartialBlocks (1.33 で導入) (1.35 で除去済) – Allow partial blocks to be created
- $wgEnableBotPasswords – ボットのパスワードを有効にするかどうか。
- $wgElementTiming (1.33 で導入) – Enable Element Timing.
- $wgInvalidPasswordReset – Specifies if users should be sent to a password-reset form on login in case of an inadequate password.
- $wgNewPasswordExpiry – メールで送信した一時パスワードの有効期間 (秒単位)。
- $wgOriginTrials (1.33 で導入) – Origin Trials tokens.
- $wgPasswordAttemptThrottle – IP アドレス/利用者ごとにパスワードの試行回数を制限する。
- $wgPasswordConfig – Configuration for built-in password types.
- $wgPasswordDefault – Default password type to use when hashing user passwords.
- $wgPasswordResetRoutes – Whether to allow password resets identified by various bits of data.
- $wgPasswordSalt (1.34 で除去済) – 古いインストレーションとの互換性のため、false を設定すること。
- $wgPriorityHints (1.33 で導入) – Enable client-side Priority Hints.
- $wgPriorityHintsRatio (1.34 で導入) – Ratio of requests that should get Priority Hints when the feature is enabled.
- $wgRangeContributionsCIDRLimit – Shortest CIDR limits that can be checked in any individual range check at Special:Contributions.
- $wgRestrictionTypes – 制限できる操作
- $wgSpamRegex – A regular expression pattern which, if the page content matched it, stops a page from being saved.
- $wgSummarySpamRegex – 「編集内容の要約」用であること以外は
$wgSpamRegex
と同じ。 - $wgCookieSetOnAutoblock – ユーザーが自動ブロックされたときにCookieを設定するかどうか決定します。 これにより、ログアウトして新しいIPアドレスに移動し、ブロックされた利用者としてログインしても、そのユーザーはブロックされます(そのIPアドレスもブロックされます)。
- $wgCookieSetOnIpBlock (1.32 で導入) – Determines whether to set a cookie when an IP user is blocked. Doing so means that a blocked user, even after moving to a new IP address, will still be blocked.
- $wgRestrictionLevels – Set of permission keys that can be selected on the "page protection" page.
- $wgSoftBlockRanges – IP ranges that should be considered soft-blocked (anon-only, account creation allowed)
See Manual:アクセス制限 for more methods and settings concerning access. See also Manual:利用者権限 for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.
- See User Access for User Access settings.
速度制限
- $wgRateLimitLog (1.27 で除去済) – Set to a filename to log rate limiter hits.
- $wgRateLimits – Simple rate limiter options to brake edit floods.
- $wgRateLimitsExcludedIPs – 速度制限を決して発動しない IP 群/CIDR 範囲の配列。
API
- $wgAllowedCorsHeaders (1.35 で導入) – クロス オリジン API リクエストで許容されるヘッダーの一覧。
- $wgDebugAPI – デバッグを容易にするため API のセキュリティを緩める
- $wgEnableAPI (1.32 で除去済) – api.php でデータ API に直接アクセスできるようにする。
- $wgEnableWriteAPI (1.32 で除去済) – 認証済みの利用者がアクセスした際に、API で書き込み操作 (ページの編集、巻き戻し他) を実行できるようにする。
- $wgEnableRestAPI (1.34 で導入) (1.35 以降廃止予定) – Enable the MediaWiki REST API.
- $wgCrossSiteAJAXdomains – Domains that may make cross-site Ajax requests to the MediaWiki API.
- $wgCrossSiteAJAXdomainExceptions – Domains that should not be allowed to make AJAX requests, even if they match one of the domains allowed by
$wgCrossSiteAJAXdomains
. - $wgAPICacheHelpTimeout – API ヘルプ テキストのキャッシュのタイムアウトを設定する。API ヘルプ テキストのキャッシュを無効にするには 0 を設定する。
- $wgApiFrameOptions – API ページのフレーミングを制御します。
- $wgAPIMaxLagThreshold – Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any write requests via API errors.
- $wgAPIRequestLog – API リクエストを記録するログ ファイルまたは URL (TCP または UDP)。
- $wgAPIUselessQueryPages – The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
ウィキのロック
- $wgReadOnly – 編集を拒絶し、指定した文字列を理由として表示する。
- $wgReadOnlyFile – このファイルが存在する場合、ファイルの内容で指定された理由でデータベースをロックする。
- $wgReadOnlyWatchedItemStore – Set this to true to put the wiki watchlists into read-only mode.
負荷削減
- $wgAPIMaxDBRows – API のデータベース クエリでスキャンするデータ行数の最大値。
- $wgAPIMaxResultSize – API の結果の最大サイズ (バイト単位)。
- $wgAPIMaxUncachedDiffs – 1 回のリクエストで取得できる、キャッシュされていない差分の最大個数。
- $wgQueryPages – List of Special pages that inherit from QueryPage, that should also be taken in account by the updateSpecialPages.php maintenance script.
- $wgDisableQueryPages – Disable all query pages if miser mode is on, not just some.
- $wgDisableQueryPageUpdate – 更新しない特別ページの配列。
- $wgDisableSearchUpdate – この設定は、検索を半永久的に無効にした場合に、テーブルの更新も無効にする。
- $wgDisableTextSearch – 全文検索を無効にする。
- $wgEdititis – 利用者の編集回数を、特別ページ「利用者一覧」に表示する。
- $wgFixDoubleRedirects – ページ移動後に二重リダイレクトを修正する。
- $wgInvalidRedirectTargets – 無効なリダイレクト先ページの配列。
- $wgMaximumMovedPages – ページとその下位ページを移動する際に、一度に移動できるページ数の最大値。
- $wgMiserMode – データベース依存度の高い機能の有効・無効の切り替え
- $wgShowHostnames – true を設定した場合、API と HTML コメントを通してホスト名を公開する。
- $wgShowRollbackEditCount – 巻き戻しのリンクを表示する際の、編集を数える件数の上限
アップロード
Uploads have to be specially set up to be secure.
- $wgAjaxLicensePreview – アップロードする際のライセンスのプレビューに Ajax を使用する。
- $wgAllowCopyUploads – ローカル ファイルに加えて URL からもアップロードできるようにする。
- $wgCopyUploadsDomains –
$wgAllowCopyUploads
を特定のホワイトリストで制限する - $wgAllowJavaUploads – Java アーカイブのアップロードを許可する。
- $wgCheckFileExtensions – アップロードの際にファイルの拡張子が許可されているかどうか確認する。
- $wgCopyUploadAsyncTimeout (1.27 で除去済) – URL での非同期アップロードの HTTP タイムアウト (秒単位)
- $wgCopyUploadsFromSpecialUpload – URL からのアップロードをアップロードを有効にするインターフェイスを Special:Upload に追加する
- $wgCopyUploadProxy – コピー アップロードのリクエストに使用する HTTP プロキシ。
- $wgCopyUploadTimeout – URL によるアップロードの HTTP タイムアウト (秒単位)
- $wgAllowAsyncCopyUploads (1.27 で除去済) – 同期コピー アップロードができるようにする。
- $wgDisableUploadScriptChecks – アップロード システムによる HTML/JavaScript のチェックを無効にするかどうか。
- $wgEnableAsyncUploads – Enable deferred upload tasks that use the job queue.
- $wgEnableUploads – ウィキを通して画像やその他のファイルをアップロードできるようにする。
- $wgFileBackends – File backend structure configuration.
- $wgFileBlacklist – これらの拡張子を持つファイルのアップロードを決して許可しない。
- $wgFileExtensions – アップロードを許可するファイルの拡張子一覧です。 このリストにない拡張子のファイルをアップロードすると警告が表示されます。
- $wgHashedUploadDirectory – If true, uses the /a/ab/foo.jpg directory structure.
- $wgIllegalFileChars – Override the default list of illegal characters in file names.
- $wgImagePreconnect (1.35 で導入) – On pages containing images, tell the user agent to pre-connect to hosts from
$wgForeignFileRepos
. - $wgImgAuthDetails – Display reason access to uploaded file was denied to users (img_auth only)
- $wgImgAuthUrlPathMap – 内部
mwstore://
基底ストレージ パスに一致する相対 URL ディレクトリのマップ。 - $wgLocalFileRepo – A single repository structure for the local repository.
- $wgLockManagers – Array of configuration arrays for each lock manager.
- $wgMinUploadChunkSize – Minimum upload chunk size, in bytes.
- $wgMaxUploadSize – アップロード ファイルの最大サイズ (バイト単位)
- $wgStrictFileExtensions –
$wgFileExtensions
が網羅していないファイルを利用者がアップロードできるようにするかどうかを切り替える。 - $wgDeletedDirectory – 削除されたアップロード ファイルを配置するディレクトリ。
- $wgUploadBaseUrl – 共有アップロード ディレクトリを使用していない場合の、アップロードされた画像の基底 URL
- $wgUploadDialog – Configuration for upload dialog and the files uploaded through it.
- $wgUploadDirectory – アップロード ディレクトリのファイルシステム パス。
- $wgUploadMaintenance – ファイルの削除と復帰を一時的に無効にする。
- $wgUploadMissingFileUrl – Point wikilinks to missing files ("red file links") to a custom URL.
- $wgUploadNavigationUrl – Point the upload navigation link in the sidebar to a custom URL.
- $wgUploadPath – アップロード ディレクトリのパス。
- $wgUploadSizeWarning – アップロードされたファイルのサイズがこれより大きい場合は警告する。
- $wgUploadStashMaxAge – アップロード一時ファイル (不完全ファイル) の有効期間。
- $wgUploadStashScalerBaseUrl – To enable remote on-demand scaling, set this to the thumbnail base URL.
共有アップロード
These settings are kept for backward compatibility, see $wgForeignFileRepos for the new setting, or $wgUseInstantCommons if you only need read access to images on Commons.
- $wgCacheSharedUploads – memcached 内の共有メタデータをキャッシュする。
- $wgForeignFileRepos – 外部リポジトリに対するリポジトリ構造の配列。
- $wgForeignUploadTargets – Configuration for foreign upload targets for the upload dialog .
- $wgHashedSharedUploadDirectory – 共有アップロード ディレクトリをハッシュ化するかどうか。
- $wgRepositoryBaseUrl – リポジトリ ウィキの基底 URL。
- $wgSharedUploadDBname – 共有ディレクトリについてのメタデータがある DB 名。
- $wgSharedUploadDBprefix – 共有画像アップロードに対する DB 接頭辞
- $wgSharedUploadDirectory – 共有アップロードが見つかるファイルシステム上のパス。
- $wgSharedUploadPath – Full path to the web server where shared uploads can be found.
- $wgUseSharedUploads – ファイルがローカルで見つからない場合に共有リポジトリで探すかどうか
- $wgFetchCommonsDescriptions – コモンズの画像解説ページを取得してそれをローカル ウィキ上に表示するかどうか。
MIME タイプ
- $wgJsMimeType (1.34 で除去済) – Media type (MIME type) to use for JavaScript scripts.
- $wgLoadFileinfoExtension (1.22.0 で除去済) – Switch for loading the FileInfo extension by PECL at runtime.
- $wgMimeDetectorCommand – 外部の MIME 検出プログラムを設定する。
- $wgMimeInfoFile – MimeAnalyzer.php が使用する MIME タイプの情報を設定する。
- $wgMimeTypeFile – MimeAnalyzer.php が使用する MIME タイプの定義ファイルを設定する。
- $wgTrivialMimeDetection – 些細な MIME 検出を切り替える。
- $wgVerifyMimeType – アップロードされたファイルの MIME タイプを確認するかどうかを指定する。
- $wgVerifyMimeTypeIE (1.34 で導入) – Determines whether extra checks for Internet Explorer type detection should be applied.
- $wgMimeTypeBlacklist – $wgVerifyMimeType が有効な場合の、許可しない MIME タイプ。
- $wgXMLMimeTypes – MimeMagic 経由で検出できるようにする XML の MIME タイプの配列
See also: Manual:Mime type detection
画像
- $wgAllowImageMoving (1.36 で除去済) – ファイル名を変更できるようにする。
- $wgCustomConvertCommand – Use another resizing converter, e.g. GraphicMagick.
- $wgEnableAutoRotation – Whether to enable image auto-rotation based on EXIF information
- $wgExiftool – Path to exiftool binary. Used for lossless ICC profile swapping.
- $wgExiv2Command – exiv2 実行可能ファイルへのパス。
- $wgGalleryOptions – <gallery> タグの既定の設定。
- $wgIgnoreImageErrors – If true, inline scaled images will still produce
<img>
tags ready for output instead of showing an error message. - $wgImageLimits – 画像の説明ページにおいて、利用者が設定できるサムネイル画像のサイズ設定のリスト
- $wgJpegTran – JPEG の劣化が少ない回転を行う jpegtran へのパス。
- $wgJpegQuality (1.32 で導入) – When scaling a JPEG thumbnail, this is the quality we request from the backend.
- $wgMaxImageArea – Don't thumbnail an image if it will use too much working memory.
- $wgMediaHandlers – Plugins for media file type handling.
- parameters for upload path
- $wgTrustedMediaFormats – 信頼できるメディア形式やMIMEタイプの一覧を設定します。
- $wgNativeImageLazyLoading (1.34 で導入) – Toggles native image lazy loading, via the "loading" attribute.
See also: Manual:ファイルのアップロードの設定
DjVu
- $wgDjvuDump – djvudump 実行可能ファイルへのパス。
- $wgDjvuOutputExtension – DjVu ポスト プロセッサーの出力ファイルの拡張子。
- $wgDjvuPostProcessor – DjVu ポスト プロセッサーのパス。
- $wgDjvuRenderer – DjVu レンダラー ddjvu のパス。
- $wgDjvuToXML – djvutoxml 実行可能ファイルのパス。
- $wgDjvuTxt – djvutxt (DjVu テキスト抽出ユーティリティ) のパス。
EXIF
- $wgShowEXIF – Show EXIF data at the end of file description pages.
- $wgUpdateCompatibleMetadata – Whether to automatically update the
img_metadata
field if it is outdated but compatible with the current version.
ImageMagick
- $wgImageMagickConvertCommand – ImageMagick を呼び出す際に使用するコマンド。
- $wgImageMagickTempDir – ImageMagick が使用する一時ディレクトリ。
- $wgMaxInterlacingAreas – Array of max pixel areas for interlacing per MIME type.
- $wgSharpenParameter – ImageMagick に渡すシャープ化パラメーター。
- $wgSharpenReductionThreshold – Reduction in linear dimensions below which sharpening will be enabled.
- $wgUseImageMagick – 画像のサイズ変更に ImageMagick を使用するには true を設定する。
- $wgUseTinyRGBForJPGThumbnails – Swaps JPGs that use sRGB ICC profile with TinyRGB profile
Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.
SVG
- $wgAllowTitlesInSVG (1.35 で除去済) – SVG ファイル内で
<title>
タグを使用できるようにする。 - $wgSVGConverter – コンバーターとして使用する、
$wgSVGConverters
のキーのいずれか。 - $wgSVGConverterPath – 使用する SVG 変換プログラムのディレクトリのパス。
- $wgSVGConverters – Scalable Vector Graphics (SVG)コンバータへのパスのリスト。
- $wgSVGMaxSize – SVG をこの値より大きくサイズ変更しない (元のサイズがこの値より大きい場合を除く)。
- $wgSVGMetadataCutoff – 指定した位置より後の SVG メタデータを読み取らない。
サムネイルの設定
- $wgUseImageResize – Whether to enable dynamic server-side image resizing (thumbnailing)
- $wgGenerateThumbnailOnParse – ページ表示の際にサムネイルをレンダリングできるようにする。
- $wgMaxAnimatedGifArea – Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnail.
- $wgSharedThumbnailScriptPath –
$wgThumbnailScriptPath
と同様だが、共有アップロード向け。 - $wgShowArchiveThumbnails – 画像の解説ページで古い画像のサムネイルを表示するかどうか。
- $wgTiffThumbnailType – TIFF 画像を変換する変換先の形式と MIME タイプ。
- $wgThumbnailScriptPath – 即座にサムネールを作成するには、thumb.php にパスを切ります。
- $wgThumbUpright – Scaling factor applied to width of images when parameter 'upright' is used.
- $wgThumbLimits – List of image thumbnail sizes users can pick from.
- $wgResponsiveImages – 高解像度ディスプレイ向けに高解像度の画像を出力するかどうか
- $wgThumbnailBuckets – List of intermediary thumbnail sizes to use to speed up thumbnail rendering.
- $wgThumbnailMinimumBucketDistance – Minimal distance between intermediary thumbnail size and target thumbnail size.
- $wgJpegPixelFormat – Sets YUV chroma subsampling mode for JPEG thumbnails
- $wgUploadThumbnailRenderHttpCustomHost – When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header.
- $wgUploadThumbnailRenderHttpCustomDomain – When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HTTP request to.
- $wgUploadThumbnailRenderMap – An array of thumbnail widths to be rendered at upload time.
- $wgUploadThumbnailRenderMethod – The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRenderMap.
アンチウイルス
- $wgAntivirus – ウイルス スキャナーの内部名。
- $wgAntivirusRequired – ウイルス スキャンが失敗したファイルを拒絶するかどうかを指定する。
- $wgAntivirusSetup – 異なるウイルス スキャナの構成。
パーサー
- $wgAllowDisplayTitle –
{{DISPLAYTITLE}}
マジックワードを使用できるようにする - $wgAllowExternalImages – MediaWikiが外部の画像をテキストともにインラインでレンダリングするかどうか決める。
- $wgAllowExternalImagesFrom –
$wgAllowExternalImages
が false の場合、ここに例外を指定できる。 - $wgAllowSlowParserFunctions – 動作が遅いパーサー関数を使用できるようにする。
- $wgAllowImageTag (1.35 以降廃止予定) – ウィキテキスト内で
<img>
タグを使用できるようにする。 - $wgCleanSignatures – 署名内のテンプレートを subst 展開する。
- $wgEnableImageWhitelist – オンウィキの外部画像のホワイトリストを有効にする
- $wgEnableMagicLinks – マジックリンク機能を有効にするかどうかを制御します
- $wgEnableParserLimitReporting – Controls whether the NewPP parser report is output in a HTML comment.
- $wgExperimentalHtmlIds (1.32 で除去済) – Should we allow a broader set of characters in id attributes, per HTML5?
- $wgExpensiveParserFunctionLimit – PAGESINCATEGORY のような時間のかかるパーサー関数での構文解析ごとの呼び出し回数の最大値。
- $wgExternalLinkTarget – 外部リンクの既定のターゲットを設定する。
- $wgFragmentMode – セクション ID がどのようにエンコードされるべきかを決定します
- $wgGrammarForms – Used for
{{GRAMMAR:}}
parser function. - $wgLinkHolderBatchSize – LinkHolderArray batch size.
- $wgMaxGeneratedPPNodeCount (1.35 で除去済) – テンプレート展開の複雑さの上限。
Preprocessor::preprocessToObj()
が生成したノードの最大数。 - $wgMaxPPExpandDepth – プリプロセッサーでの展開に使用するスタックの深さの上限。
- $wgMaxPPNodeCount – テンプレート展開の複雑さの上限:
PPFrame::expand()
が訪れるノード数の上限 - $wgMaxTemplateDepth – テンプレート内でのテンプレートの再帰呼び出しの深さの最大値。
- $wgMaxTocLevel – 目次の最大インデント レベル。
- $wgMediaInTargetLanguage (1.33 で導入) – Whether translatable media (currently, only SVG images) should be shown in page's target language
- $wgParserConf (1.35 以降廃止予定) – 構文解析系の構成。
- $wgParserTestFiles (1.30 以降廃止予定) – Parser test suite files to be run by parserTests.php.
- $wgParserTestMediaHandlers – Media handler overrides for parser tests (they don't need to generate actual thumbnails, so a mock will do)
- $wgPreprocessorCacheThreshold – プリプロセッサーのキャッシュのしきい値。
- $wgRegisterInternalExternals – 同じサーバーを指す外部リンクを登録するかどうか。
- $wgRestrictDisplayTitle – Restrict
{{DISPLAYTITLE}}
to titles that normalize to the same canonical database key - $wgUseNewMediaStructure (1.36 で導入) – Emit using the new media structure described at, Parsing/Media structure
HTML
- $wgRawHtml –
<html>...</html>
セクション内で未整形・未確認の HTML を使用できるようにする。
Tidy
![]() | このページは直近の情報を反映していません。 |
Tidy is an open source tool that cleans up broken HTML. You can use this to ensure that broken HTML in articles doesn't affect the layout of your wiki. While Tidy itself is going to be replaced, the configuration settings can still be used for the replacements.
- $wgTidyConfig – Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.
- $wgDebugTidy (1.33 で除去済) – tidy の警告を HTML コメントに出力する。内部の tidy のみで動作する。
- $wgTidyBin (1.33 で除去済) – tidy バイナリのパスを設定する。
- $wgTidyConf (1.33 で除去済) – tidy の設定ファイルのパスを設定する。
- $wgTidyInternal (1.33 で除去済) – Controls the use of the tidy extension to use an in-process tidy library instead of spawning a separate program.
- $wgTidyOpts (1.33 で除去済) – コマンドラインで Tidy に渡すオプション。
- $wgUseTidy (1.33 で除去済) – Use tidy to make sure HTML output is sane.
- $wgValidateAllHtml (1.31 で除去済) – tidy を使用して出力全体を検証し、ページが妥当ではない場合はその表示を拒絶する。
- See also: Manual:Build Tidy from source .
特別ページ
- $wgActionFilteredLogs – 操作の種類ごとに絞り込める記録の種類一覧
- $wgAllowSpecialInclusion –
{{Special:Allpages}}
のような特別ページを参照読み込みできるようにする。 - $wgExportAllowAll – ウィキ全体を 1 つのファイルに書き出せるようにするかどうか。
- $wgExportAllowHistory – Special:Export で完全な履歴のオプションを有効にする。
- $wgExportAllowListContributors – ページを書き出す際に、貢献者をすべて列挙できるようにするかどうか。
- $wgExportFromNamespaces – 「名前空間内のページをすべて書き出す」オプションを許可するかどうか。
- $wgExportMaxHistory – この値より版数が多いページ履歴の Special:Export リクエストを拒絶する。
- $wgExportMaxLinkDepth – Maximum value of the "pagelink-depth" parameter in Special:Export.
- $wgExportPagelistLimit – Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions.
- $wgFilterLogTypes – Show/hide links on Special:Log will be shown for these log types.
- $wgHideIdentifiableRedirects – Protects user's privacy when doing redirects
- $wgImportTargetNamespace – ウィキ間の取り込みでの既定の取り込み先名前空間 (省略可能)。
- $wgLogActions – Lists the message key string for formatting individual events of each type and action when listed in the logs.
- $wgLogActionsHandlers –
$wgLogActions
と同様だが、値はコールバック関数である。 - $wgLogHeaders – 記録の種類の上部に表示される説明テキストのためのメッセージ キーの文字列を列挙する。
- $wgLoginLanguageSelector – Show a bar of language selection links in the user login and user registration forms.
- $wgLogNames – 記録の種類に対応するメッセージ キーの文字列を列挙する。
- $wgLogRestrictions – ログアクセスを特定の権限のある利用者に限定する。
- $wgLogTypes – List of log types.
- $wgMaxRedirectLinksRetrieved – Special:Whatlinkshere/リダイレクト先 に列挙される、リダイレクト ページへのリンクの最大件数
- $wgQueryPageDefaultLimit – クエリのページで表示する項目数の既定値を定義する整数
- $wgRedirectOnLogin – Redirect users to page on login
- $wgSecureLogin – Whether to let user authenticate using https when they come from http.
- $wgShortPagesNamespaceBlacklist – Optional array of namespaces which should be blacklisted from Special:ShortPages
- $wgSpecialSearchFormOptions (1.34 で導入) – Options for Special:Search completion widget form created by SearchFormWidget class.
- $wgSpecialVersionShowHooks – $wgHooks の内容を Special:Version に表示するかどうか。
- $wgPageCreationLog (1.32 で導入) – Special:Log/create で新規のページ作成記録を保持するかどうか。
- $wgUseNPPatrol – 荒らしの確認のために新しいページの巡回を使用する
- $wgUseFilePatrol – 特別:新しいファイル にある新規ファイルをチェックするためにファイル巡回機能を使用する
- $wgWatchlistExpiry (1.35 で導入) – ウォッチリストの有効期限機能を有効にする。
- $wgWatchlistPurgeRate (1.35 で導入) – The per-edit rate at which expired watchlist items will be purged from the database.
最近更新したページ
See also Help:最近の更新 and $wgDefaultUserOptions
- $wgAllowCategorizedRecentChanges (1.31 で除去済) – 最近の更新でカテゴリや下位(下位下位下位...)カテゴリのいずれかで絞り込めるようにする
- $wgAutopromoteOnceLogInRC – 利用者権限の記録項目のうち自動昇格について、最近の更新に表示するかどうか。
- $wgExperiencedUserEdits – Determines the number of edits needed to qualify at the "Experienced user" level.
- $wgExperiencedUserMemberSince – Determines the number of days needed since account creation to qualify at the "Experienced user" level.
- $wgLearnerEdits – Determines the number of edits needed to qualify at the "Learner" experience level.
- $wgLearnerMemberSince – Determines the number of days needed since account creation to qualify at the "Learner" experience level.
- $wgLogAutopatrol (1.31 で除去済) – Log autopatrol actions to the log table
- $wgPutIPinRC – Log IP addresses in the recentchanges table.
- $wgRCChangedSizeThreshold – 文字数の変化がこの値より小さい場合は強調する。
- $wgRCFilterByAge – Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
- $wgRCLinkLimits – Special:Recentchanges (最近の更新) および Special:Recentchangeslinked (関連ページの更新状況) で列挙される表示件数のリスト。
- $wgRCLinkDays – Special:Recentchanges および Special:Recentchangeslinked の各ページで列挙される日数のリスト。
- $wgRCMaxAge – recentchanges の表にある項目は定期的に再読み込みされます。この版より古いエントリは
- $wgRCShowChangedSize – 最近の更新で、増減した文字数を表示する。
- $wgRCShowWatchingUsers – 最近の更新、ウォッチリスト、ページ履歴の各画面にウォッチしている利用者を表示する。
- $wgRCWatchCategoryMembership – カテゴリへの追加/削除を最近の更新として扱う。
- $wgRecentChangesFlags – 最近の更新やウォッチリストで特定の種類の編集であることを示すフラグ (文字記号)。
- $wgShowUpdatedMarker – 新しい更新を、ウォッチリストでは太字で表示し、履歴では「前回の閲覧以降に更新されました」付きで表示する
- $wgStructuredChangeFiltersLiveUpdatePollingRate – Polling rate, in seconds, used by the 'live update' feature of Special:RecentChanges and Special:Watchlist
- $wgUseRCPatrol – 荒らしの確認のために最近の更新の巡回を使用する
- $wgWatchersMaxAge – Page watchers inactive for more than this many seconds are considered inactive. Used mainly by action=info .
- $wgUnwatchedPageSecret – If active watchers (per $wgWatchersMaxAge ) are this number or less, do not disclose it.
- $wgUnwatchedPageThreshold – ウォッチしている利用者数が指定したしきい値より多い場合に、"unwatchedpages" の利用者権限がない利用者が、ウォッチしている利用者数を "info" 操作で閲覧できるようにする。
UDPによる更新
Send Recent changes updates via UDP. See: Manual:Simple IRC RC Bot
- $wgRCEngines – Configuration for RC feed protocol engines
- $wgRCFeeds – Configuration for sending RC updates
利用者
- $wgActiveUserDays – The number of days within which a person must make edits to be considered an "active" user
- $wgAllowRequiringEmailForResets (1.34 で導入) (1.34 以降廃止予定) – Temporary feature flag that controls whether users will see a checkbox allowing them to require providing email during password resets.
- $wgAutoConfirmAge – アカウントが暗黙的に自動承認 (autoconfirmed) されるのに必要な経過秒数。
- $wgAutoConfirmCount – アカウントが自動承認されるのに必要な編集回数。
- $wgAllowUserCssPrefs – CSS に実装されたユーザー設定を許可します。
- $wgDefaultUserOptions – Default user preferences.
- $wgDisableAnonTalk – Disable talk pages for anonymous users (not logged in).
- $wgHiddenPrefs – 特定の個人設定を無効にする。
- $wgHKDFAlgorithm – Algorithm for HMAC-based key derivation function (fast, cryptographically secure random numbers).
- $wgHKDFSecret – Secret for HMAC-based key derivation function (fast, cryptographically secure random numbers).
- $wgInvalidUsernameCharacters – 新規アカウント作成の際に阻止する文字。
- $wgMaximalPasswordLength (1.26 以降廃止予定) – Specifies the maximal length of a user password.
- $wgMaxNameChars – 利用者名の最大長 (バイト単位)。
- $wgMaxSigChars – カスタマイズされた署名のウィキコードの長さの最大値。
- $wgMinimalPasswordLength (1.26 以降廃止予定) – 利用者のパスワードの長さの最小値を指定する。
- $wgNewUserLog – Special:Log/newusers で新規利用者の記録を保持するかどうか。
- $wgPasswordExpirationDays – 利用者のパスワードの有効期間 (日単位)。
- $wgPasswordExpireGrace – 利用者がパスワードを変更せずにログインできる、パスワードの有効期間 (秒単位)。
- $wgPasswordPolicy – Specifies various settings related to password strength and security.
- $wgReservedUsernames – 使用できないアカウント名の一覧。
- $wgShowIPinHeader (1.27 で除去済) – 匿名利用者に対して利用者バーに IP を表示する。
- $wgSignatureValidation (1.35 で導入) – 署名検証の挙動。
- $wgSignatureAllowedLintErrors (1.35 で導入) – List of lint error codes which don't cause signature validation to fail.
- $wgUserrightsInterwikiDelimiter – Special:UserRights で利用者名とデータベース名の間の区切りとして使用する文字。
認証
- $wgAllowSecuritySensitiveOperationIfCannotReauthenticate – 再認証が不可能な場合に機密性の高いセキュリティ操作を許可するかどうか
- $wgAuthenticationTokenVersion – 変更すると、既存のセッションはすべて無効になります。
- $wgAuthManagerAutoConfig – Register authentication providers to use with AuthManager
- $wgAuthManagerConfig – Manual override for authentication provider configuration
- $wgCentralIdLookupProvider – Default central id lookup implementation to use
- $wgCentralIdLookupProviders – Register central ID lookup providers.
- $wgChangeCredentialsBlacklist – List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials and the changeauthenticationdata API.
- $wgDisableAuthManager (1.28 で除去済) – Internal feature flag used for the AuthManager rollout process
- $wgExtendedLoginCookies (1.28 で除去済) – Dictates when the extended lifetime login cookies expire.
- $wgPopularPasswordFile (1.35 で除去済) – Where popular password file is located.
- $wgPHPSessionHandling – Whether to use PHP session handling (
$_SESSION
andsession_*()
functions) - $wgReauthenticateTime – Time frame for re-authentication
- $wgRemoveCredentialsBlacklist – List of AuthenticationRequest class names which are not removable through Special:RemoveCredentials and the removeauthenticationdata API.
- $wgSessionInsecureSecrets – Allows MediaWiki to work at the cost of storing sensitive session data insecurely.
- $wgSessionProviders – Session provider configuration.
- $wgSessionPbkdf2Iterations – Number of internal PBKDF2 iterations to use when deriving session secrets.
- $wgSessionSecret – Secret for session storage.
- $wgSuspiciousIpExpiry (1.36 で導入) – 同一セッション内で IP の変更を記録するために、IP を記憶する時間 (秒単位)。
権限
- $wgAddGroups – Special:Userrightsを使って特定のグループを追加できるグループを制御する
- $wgAutoblockExpiry – 自動ブロックのエントリが期限切れになるまでの秒数
- $wgBlockAllowsUTEdit – ブロックされた利用者が自身のトークページを編集できるようにする
- $wgDeleteRevisionsBatchSize (1.32 で導入) – Page deletions with > this number of revisions will use the job queue.
- $wgEmailConfirmToEdit – 利用者が編集する前にメールアドレスの確認を必要とする。有効にするには true を設定する。
- $wgGrantPermissions – Used to define grants and assign permissions to them.
- $wgGrantPermissionGroups – Used to define grant groups and assign grants to them.
- $wgGroupPermissions – グループとそのグループ内の利用者に対するアクセス権を設定する。
- $wgGroupsAddToSelf – Use this to allow users to add themselves to specified groups via Special:Userrights.
- $wgGroupsRemoveFromSelf – Special:Userrights で利用者が自身を指定したグループから除去できるようにする。
- $wgHideUserContribLimit –
hideuser
権限を持つ利用者が非表示にできる利用者の編集回数の最大値。 - $wgImplicitGroups – Special:Listusers や他の場所で表示しないグループ
- $wgRemoveGroups – Special:Userrightsを使って特定のグループを削除できるグループを制御する
- $wgRevokePermissions – Permission keys revoked from users in each group.
- $wgWhitelistRead – 匿名利用者が閲覧できるページ。
- $wgWhitelistReadRegexp – Whitelists publicly readable titles with regular expressions.
ユーザーエージェント
- $wgBrowserBlackList (1.30 以降廃止予定) – Browser blacklist for non-Unicode-compliant browsers.
Cookie
- $wgCacheVaryCookies – キャッシュに影響する Cookie のリスト。
- $wgCookieDomain – ログイン Cookie のドメインを明示する。
- $wgCookieExpiration – Number of seconds before HTTP cookies expire. You can override this for 'keep me logged in' cookies with
$wgExtendedLoginCookieExpiration
- $wgCookieHttpOnly – Set the
httpOnly
flag on all cookies set by MediaWiki (to prevent access from JavaScript). - $wgCookiePath – Explicitly declared "path" for cookies at the cookie domain
- $wgCookiePrefix – カスタム Cookie 接頭辞。
- $wgCookieSameSite (1.34.3 で導入) – The SameSite cookie attribute used for login cookies.
- $wgCookieSecure – Whether cookies are secured.
- $wgDisableCookieCheck – Disables session cookies
- $wgExtendedLoginCookieExpiration – If non-null, duration in seconds to use for "ログイン状態を保持" sessions; 0 means until the browser is closed. null の場合、$wgCookieExpiration を使用します
- $wgSessionHandler (1.33 で除去済) – Used to set PHP's session.save_handler.
- $wgSessionName – セッション名をオーバーライドする。
- $wgUseSameSiteLegacyCookies (1.34.3 で導入) – Send a legacy cookie with an
ss0-
prefix whenSameSite=None
is sent.
フィード
- $wgFeed – フィード (RSS と Atom。例: 最近の更新、新しいページ) の ON/OFF を切り替える。
- $wgAdvertisedFeedTypes – 既定で提供するフィードの種類。
- $wgFeedCacheTimeout – Minimum timeout for cached Recentchanges feed, in seconds.
- $wgFeedClasses – 利用できるフィード オブジェクト。
- $wgFeedDiffCutoff – When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
- $wgFeedLimit – Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges, Newpages.
- $wgOverrideSiteFeed – Override the site's default rss/atom feed that appears on every page.
著作権
- $wgCopyrightIcon (1.27 で除去済) – Set this to some HTML to override the rights icon with an arbitrary logo.
- $wgMaxCredits – 記事のテキストの下に表示したい作者の人数を設定する。
- $wgRightsIcon – 著作権メタデータをオーバーライドする。
- $wgRightsPage – 著作権メタデータを上書きする。
- $wgRightsText – 著作権メタデータをオーバーライドする。
- $wgRightsUrl – 著作権メタデータを上書きする。
- $wgShowCreditsIfMax – 著者数が
$wgMaxCredits
より多い場合、著者のうち$wgMaxCredits
件を表示する。 - $wgUseCopyrightUpload – アップロードの際に詳細な著作権情報フォームが必要であれば true を設定する。
検索
- $wgAdvancedSearchHighlighting – 検索結果でより有用なテキスト スニペットを使用するには true に設定する。
- $wgEnableOpenSearchSuggest – Enable OpenSearch suggestions requested by MediaWiki.
- $wgEnableSearchContributorsByIP – Whether searching for an IP address will be redirected to that IP's contributions page.
- $wgOpenSearchDefaultLimit – OpenSearch 呼び出しの際の既定の表示件数を定義する整数。
- $wgOpenSearchDescriptionLength – Minimum length of extract in
<Description>
. - $wgOpenSearchTemplate (1.25 以降廃止予定) – OpenSearch 入力補助のテンプレート。
- $wgOpenSearchTemplates – OpenSearch 入力補助のテンプレート。
- $wgSearchForwardUrl – Set this to a URL to forward search requests to some external location.
- $wgSearchHighlightBoundaries – 単語の境界に一致する正規表現
- $wgSearchRunSuggestedQuery – If search returns zero results and current search engine has a "did you mean" suggestion, results for the suggestion will be shown.
- $wgSearchSuggestCacheExpiry – Expiry time for search suggestion responses.
- $wgSearchTypeAlternatives – Alternative search types.
- $wgUseTwoButtonsSearchForm (1.36 で除去済) – サイドバーの検索フォームの様式。
HTTP クライアント
- $wgAllowExternalReqID (1.34 で導入) – controls whether MediaWiki accepts the request ID set by the incoming request via the "X-Request-Id" header.
- $wgAsyncHTTPTimeout – 非同期 HTTP リクエストのタイムアウト。
- $wgHTTPConnectTimeout – 内部的な接続タイムアウト (秒単位)
- $wgHTTPMaxTimeout (1.35 で導入) – The maximum HTTP request timeout in seconds.
- $wgHTTPMaxConnectTimeout (1.35 で導入) – The maximum HTTP connect timeout in seconds.
- $wgHTTPImportTimeout – Timeout for HTTP requests done internally for transwiki imports, in seconds.
- $wgHTTPProxy – cURL リクエストで使用するプロキシ
- $wgHTTPTimeout – cURL での HTTP リクエストのタイムアウト。
- $wgLocalVirtualHosts – Local virtual hosts.
ジョブ
- $wgJobBackoffThrottling – Number of times work items of a job type can be run per second.
- $wgJobClasses – ジョブとそれを処理するクラスを対応付ける。
- $wgJobRunRate – Number of jobs to perform per request.
- $wgJobTypesExcludedFromDefaultQueue – Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
- $wgJobTypeConf – Configuration for job storage.
- $wgJobQueueAggregator (1.33 で除去済) – Which aggregator to use for tracking which queues have jobs.
- $wgJobQueueIncludeInMaxLagFactor – Whether to include the number of jobs that are queued for the API's maxlag parameter.
- $wgJobSerialCommitThreshold – Make job runners commit changes for replica DB-lag prone jobs one job at a time.
- $wgMaxJobDBWriteDuration – Max time (in seconds) a job-generated transaction can spend in writes.
- $wgRunJobsAsync – Controls whether on-request jobs are run asynchronously or synchronously.
- $wgUpdateRowsPerJob – ジョブごとに更新するデータ行の数。
- $wgUpdateRowsPerQuery – クエリごとに更新するデータ行の数。
プロキシ
- $wgAssumeProxiesUseDefaultProtocolPorts – When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the wiki on the standard ports.
- $wgEnableDnsBlacklist – オープン プロキシをチェックするために
$wgDnsBlacklistUrls
の DNS ブラックリストを使用するかどうか。 - $wgDnsBlacklistUrls –
$wgEnableDnsBlacklist
がtrue
の場合に使用する DNS ブラックリストのリスト。 - $wgProxyList – A list of IP addresses to be banned
- $wgProxyWhitelist – プロキシのホワイトリスト: 他の手法での判定結果にかかわらず、プロキシではないと見なすアドレスのリスト。
- $wgSecretKey – LocalSettings.php で一意な文字列を秘密の値として必ず設定する
- $wgUsePrivateIPs – プライベート X-Forwarded-For IP を受け付けるかどうか
CDN / Squid
These settings configure MediaWiki when using a caching HTTP proxy server. They apply to caching using Varnish as well as Squid.
- $wgEventRelayerConfig – Mapping of event channels (or channel categories) to EventRelayer configuration.
- $wgInternalServer – Internal server name as known to Squid, if different than $wgServer .
- $wgMaxSquidPurgeTitles (1.27 で除去済) – Maximum number of titles to purge in any one client operation
- $wgSquidPurgeUseHostHeader (1.33 以降廃止予定) – Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
- $wgSquidMaxage (1.35 で除去済) – Squid のキャッシュのタイムアウト。
- $wgCdnMaxAge (1.34 で導入) – Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
- $wgCdnMaxageLagged – Cache timeout for the CDN when DB replica lag is high
- $wgCdnMaxageStale (1.35 で導入) – Cache timeout in seconds when delivering a stale ParserCache response due to PoolCounter contention.
- $wgCdnMaxageSubstitute – Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
- $wgCdnReboundPurgeDelay – Secondary delayed purges of URLs
- $wgSquidServers (1.35 で除去済) – An array of individual proxy servers to help MediaWiki detect if the request has been proxyed.
But also to send back to the proxy PURGE commands on changes. - $wgCdnServers (1.34 で導入) – An array of individual proxy servers to help MediaWiki detect if the request has been proxyed.
But also to send back to the proxy PURGE commands on changes. - $wgSquidServersNoPurge (1.35 で除去済) – Same as
$wgSquidServers
, except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges - $wgCdnServersNoPurge (1.34 で導入) – Same as
$wgCdnServers
, except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges - $wgLoggedOutMaxAge (1.35 で導入) – Cache TTL for the user agent sent as max-age, for logged out users.
- $wgUseESI (1.33 以降廃止予定) – Squid3 を ESI 対応付きで実行する場合は、これを有効にする。
- $wgUseSquid (1.35 で除去済) – Squid の有効/無効を切り替える。
- $wgUseCdn (1.34 で導入) – Enable/disable page view caching.
- $wgUseKeyHeader (1.34 で除去済) – Send the Key HTTP header for better caching.
- $wgUseXVO (1.27 で除去済) – Send X-Vary-Options header for better caching (requires patched Squid).
- $wgVaryOnXFP – Whether to add
X-Forwarded-Proto
to theVary
header for API requests and RSS/Atom feeds.
HTCPマルチキャストパージング
- $wgHTCPMulticastTTL – HTCP multicast purging
- $wgHTCPRouting – Routing configuration for HTCP multicast purging.
拡張機能
- $wgAPIListModules – API リスト モジュール 拡張機能。
- $wgAPIMetaModules – API メタ モジュール拡張機能。
- $wgAPIModules – API モジュール拡張機能。
- $wgAPIFormatModules – API format モジュールの拡張。
- $wgAPIPropModules – API prop モジュール拡張機能。
- $wgAuth (1.33 で除去済) – 認証プラグイン。AuthPlugin を参照してください。
- $wgAutoloadClasses – Array mapping class names to filenames, for autoloading.
- $wgAvailableRights – コアで定義されている権限に加えて利用できる権限の一覧。
- $wgDisableInternalSearch – 検索を拡張機能で実装できるようにするため、内部検索を無効にする。
- $wgExceptionHooks (1.30 で除去済) – 例外の出力に使用するフック。
- $wgExtensionAssetsPath – 拡張機能のディレクトリの URL。
- $wgExtensionCredits (1.25 以降廃止予定) – Global list of extension credits
- $wgExtensionDirectory – The file system path to the extensions directory.
- $wgExtensionFunctions – MediaWikiが完全に初期化された時点で呼び出される、コールバック関数の一覧
- $wgExtensionMessagesFiles – 拡張機能メッセージ ファイル。
- $wgExternalStores – External stores allow including content from non-database sources following URL links.
- $wgHooks – Global list of hooks.
- $wgMessagesDirs – 拡張機能のメッセージのディレクトリ。
- $wgPagePropLinkInvalidations – ページ プロパティ リンク テーブルの無効化リスト。
- $wgParserOutputHooks – Parser output hooks.
- $wgServiceWiringFiles – List of service wiring files to be loaded by the default instance of MediaWikiServices.
- $wgSpecialPageCacheUpdates – Additional functions to be performed with updateSpecialPages.php .
- $wgSpecialPages – カスタム特別ページの一覧。
メンテナンススクリプトの設定
- $wgAllowSchemaUpdates – update.php スクリプトを実行することでデータベース スキーマを更新できるようにする。
- $wgCommandLineDarkBg – メンテナンス スクリプトで、端末の背景色が暗いことを想定する。
- $wgCommandLineMode – MediaWiki がコマンドラインモードで実行中かどうかを示します。決して手作業で設定してはいけません!
- $wgDBadminpassword – $wgDBadminuser のパスワード。
- $wgDBadminuser – データベース管理者のユーザー名。
- $wgExtensionEntryPointListFiles – Array of files with list(s) of extension entry points to be used in maintenance/mergeMessageFileList.php
- $wgUpgradeKey – ウェブベースの更新プログラムへのアクセスを制御するパスワード。
その他の設定
- $wgAjaxEditStash – Whether edits should be prepared via AJAX as users type edit summaries.
- $wgAllowCrossOrigin (1.36 で導入) – 匿名のクロス オリジン要求を許可する。
- $wgAllUnicodeFixes – Whether to always convert certain Unicode sequences to modern ones regardless of the content language.
- $wgAutoloadAttemptLowercase (1.35 以降廃止予定) – 大文字と小文字を区別しない従来のクラス読み込みを制御するスイッチ。
- $wgDiffEngine (1.34 で導入) – 使用したい差分エンジンを指定する。
- $wgGitRepositoryViewers – Map of Git repository URLs to their gitweb interface URLs
- $wgExternalDiffEngine – 使用する外部差分エンジンの名前。
- $wgFeaturePolicyReportOnly (1.34 で導入) – List of Feature Policy Reporting types to enable.
- $wgFixArabicUnicode (1.35 で除去済) – trueに設定することにより、アラビア文字における古いユニコードを整理
- $wgFixMalayalamUnicode (1.35 で除去済) – Set this to true to clean up archaic Unicode sequences in Malayalam text.
- $wgLegacySchemaConversion – 大規模サイトでスキーマを 1.4 から 1.5 に移行する際に変換処理を高速化するオプション
- $wgManualRevertSearchRadius (1.36 で導入) – 編集が手動による差し戻しだったかどうかを判断するために、そのページで行われたすべての新しい編集についてチェックされる版の最大数。
- $wgMaxShellFileSize – Linux 環境でシェル プロセスが作成できる最大ファイル サイズ (KB 単位)。
- $wgMaxShellMemory – Linux 環境でシェル プロセスが利用できる仮想メモリの最大サイズ (KiB 単位)。
- $wgMaxShellTime – Linux 環境でのシェル プロセスの最大 CPU 時間 (秒単位)。
- $wgMaxShellWallClockTime – Limit shell commands duration using real time.
- $wgMemoryLimit – The minimum amount of memory that MediaWiki "needs";
MediaWiki will try to raise PHP's memory limit if it's below this amount. - $wgPoolCounterConf – Configuration for processing pool control.
- $wgRevertedTagMaxDepth (1.36 で導入) – mw-reverted 変更タグでマークされた、差し戻された編集が含まれる、差し戻しの最大深度 (版数)。
- $wgRestAllowCrossOriginCookieAuth (1.36 で導入) – セッション Cookie を使用して REST API への認証済みクロス オリジン要求を使用できるようにする。
- $wgSearchMatchRedirectPreference (1.35 で導入) – true を設定することで、ログイン済み利用者が検索結果の一致でそのページへのリダイレクトを強制するかどうかを設定できるようにする。
- $wgSoftwareTags – List of core tags to enable.
- $wgShellLocale –
LC_ALL
に設定するロケール(地域設定) - $wgShellRestrictionMethod – Method to use to restrict shell commands
- $wgShellCgroup – linux で Cgroups を使用してシェル コマンドのメモリを制限する。
- $wgUseAutomaticEditSummaries – Whether MediaWiki should make automatic edit summaries.
- $wgUseTagFilter – Allow filtering by change tag in recentchanges, history, etc.
- $wgWikiDiff2MovedParagraphDetectionCutoff (1.34 以降廃止予定) – This setting controls the maximum number of paragraphs to compare before it bails out.
- $wgWatchlistExpiryMaxDuration (1.35 で導入) – strtotime() が受け付ける形式の、ウォッチリストの有効期限の相対的な最大期間。
- $wgXmlDumpSchemaVersion (1.33 で導入) – The schema to use per default when generating XML dumps.
関連項目
- Manual:Configuration for developers - 設定を設定、復元する方法
- 拡張機能の登録#Configs (Your extension/skins settings) - 拡張機能や外装の設定を追加する補法