Manual:Configuration settings/id

From MediaWiki.org
Jump to: navigation, search

Ini adalah indeks semua opsi konfigurasi yang didukung berdasarkan berkas DefaultSettings.php.

Jangan pernah menyunting langsung DefaultSettings.php; salin baris yang sesuai ke LocalSettings.php dan ubah yang diperlukan.

Listed alphabetically | Listed by function | Category:MediaWiki configuration settings

Umum[edit]

  • $wgProto - The secure server prefix.
  • $wgServer - The base URL of the server.
  • $wgServerName (deprecated) - The name of the server without the protocol. (eg, en.wikipedia.org)
  • $wgSitename - The name of the site. Should be changed
  • $wgVersion - Contains the current version of MediaWiki, as displayed to the user.

Jalur[edit]

See also TeX for LaTeX specific path settings.
See also Uploads for file/image upload path settings.
See also Skins for skins path settings.

Objek global[edit]

  • $wgConf - Create a site configuration object. Not used for much in a default install.

Surel[edit]

See Also User Access: $wgEmailConfirmToEdit

Notifikasi surel (Enotif)[edit]

Actual notifications for each users are defined in the options. You can change defaults with $wgDefaultUserOptions.
  • $wgEnotifFromEditor - Email notifications appear to be coming from the page editor (not from Wiki server)
  • $wgEnotifImpersonal - Send a generic mail instead of a personalised mail for each user.
  • $wgEnotifMaxRecips - Maximum number of users to mail at once when using impersonal mail.
  • $wgEnotifMinorEdits - Email notifications also for "minor edits" (user preference is shown and user needs to opt-in)
  • $wgEnotifRevealEditorAddress - reply-to address of Email notifications may be filled with page editor's address (user preference is shown and user needs to opt-in)
  • $wgEnotifUseJobQ - Send mails via the job queue.
  • $wgEnotifUseRealName - Use real name instead of username in e-mail "from" field
  • $wgEnotifUserTalk - Email notifications can be sent for first change on a user_talk page (user preference is shown and user needs to opt-in)
  • $wgEnotifWatchlist - Email notifications can be sent for the first change on watched pages (user preference is shown and user needs to opt-in)
  • $wgUsersNotifiedOnAllChanges (formerly $wgUsersNotifedOnAllChanges!) - Array of usernames who will be sent a notification email for every change which occurs on a wiki

Basis data[edit]

LoadBalancer[edit]

MySQL[edit]

  • $wgDBminWordLen (deprecated) - Used to discard words that MySQL will not return any results for shorter values configure mysql directly.
  • $wgDBmysql4 (deprecated) - Set to true to use enhanced fulltext search.
  • $wgDBmysql5 - Set to true to set MySQL connection into UTF-8 encoding
  • $wgDBTableOptions - MySQL table options to use during installation or update.
  • $wgDBtransactions - Set to true if using InnoDB tables.
  • $wgExternalServers - An array of external MySQL servers.

PostgreSQL[edit]

  • $wgDBmwschema - Schema that Postgres stores the MediaWiki tables in. Defaults to 'mediawiki'
  • $wgDBts2schema - Schema that the Tsearch2 tables live in for Postgres. Defaults to 'public'

SQLite[edit]

Basis data bersama[edit]

Simpanan terkompresi[edit]

  • $wgCompressRevisions - If this is set on, all future revisions will be compressed on page save, but only if zlib support is available and enabled in PHP.
  • $wgDisableOutputCompression - Disable output compression (compression is enabled by default if zlib is available).

Pelokalan[edit]

Timezone settings[edit]

Chinese-specific[edit]

Hindi/Arabic-specific[edit]

  • $wgTranslateNumerals - For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.

Debug/log[edit]

Pemprofilan[edit]

Kustomisasi situs[edit]

Ajax[edit]

CSS/Js[edit]

Resource loader[edit]

Ruang nama[edit]

Keluaran[edit]

The following settings are only used if $wgHtml5 is set to "false":

Kebijakan bot[edit]

Statistik situs[edit]

Kulit[edit]

Kategori[edit]

Singgahan[edit]

Main article: Manual:Cache

See Interwiki for Interwiki cache settings.

Singgahan sisi klien[edit]

Singgahan berkas[edit]

Setting for Server side file caching

  • $wgFileCacheDirectory - Directory where the cached page will be saved when using server-side caching.
  • $wgUseFileCache - This will cache static pages for non-logged-in users to reduce database traffic on public sites.

Singgahan pesan[edit]

Singgahan bilah sisi[edit]

Singgahan parser[edit]

Singgahan tautan persisten[edit]

Memcached[edit]

Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.

Antarwiki[edit]

Singgahan antarwiki[edit]

Akses[edit]

Wiki locking, blocking/banning, and some other related settings.

See Manual:Preventing access for more methods and settings concerning access. See also Manual:User rights management for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

Pembatas laju[edit]

API[edit]

Penguncian wiki[edit]

  • $wgReadOnly - Disallows editing, displaying the string given as the reason.
  • $wgReadOnlyFile - If this file is found, the database is locked for the reason given in the contents of the file.

Reduksi[edit]

Unggahan[edit]

Uploads have to be specially set up to be secure.

Unggahan berbagi[edit]

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.

Jenis MIME[edit]

Warning Warning: This is not a configuration setting, but a global state variable. It should be used solely by thumb.php!

See also Manual:Mime type detection

Berkas[edit]

See also Manual:Configuring file uploads

DjVu[edit]

EXIF[edit]

  • $wgShowEXIF - Determines whether EXIF metadata is to be displayed. Set to false for not showing data.

ImageMagick[edit]

Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.

SVG[edit]

Thumbnail settings[edit]

Antivirus[edit]

Parser[edit]

HTML[edit]

  • $wgMakeDumpLinks (deprecated) - Produce hashed HTML article paths.
  • $wgRawHtml - Allow raw, unchecked HTML in <html>...</html> sections.
  • $wgUserHtml (deprecated) - Allow limited user-specified HTML in wiki pages?

TeX[edit]

To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package and have latex, dvips, gs (ghostscript), and convert (ImageMagick) installed and available in the PATH. Please see Manual:Enable TeX, Manual:Math and the math/README in the MediaWiki source code.

Tidy[edit]

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.

  • $wgAlwaysUseTidy
  • $wgDebugTidy - Put tidy warnings in HTML comments, only works for internal tidy.
  • $wgTidyBin - Should be set to the path of the tidy binary.
  • $wgTidyConf - Should be set to the path of the tidy configuration file.
  • $wgTidyInternal - Controls the use of the PECL extension to use an inprocess tidy library instead of spawning a separate program.
  • $wgTidyOpts - Options passed to tidy on the command line.
  • $wgUseTidy - Use tidy to make sure HTML output is sane.
  • $wgValidateAllHtml - Validate the overall output using tidy and refuse to display the page if it's not valid.

See also Manual:Build Tidy from source.

Laman istimewa[edit]

Perubahan terbaru[edit]

See Special:Recentchanges

Pembaruan UDP[edit]

Send RC updates via UDP. See: Manual:Simple IRC RC Bot

Pengguna[edit]

Autentikasi[edit]

Akses pengguna[edit]

Agen pengguna[edit]

Kuki[edit]

Umpan[edit]

  • $wgFeed - Toggle syndication feeds on and off.
  • $wgAdvertisedFeedTypes - Which feed types should be provided by default.
  • $wgFeedCacheTimeout - 'Minimum' timeout for cached Recentchanges feed, in seconds.
  • $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.

Hak cipta[edit]

Pencarian[edit]

Tugas[edit]

Proksi[edit]

Squid[edit]

HTCP multicast purging[edit]

Ekstensi[edit]

Skrip pemeliharaan[edit]

Lain-lain[edit]

Bahasa:Project:Language policy English  • dansk • Deutsch • español • français • Bahasa Indonesia • 日本語 • 한국어 • polski • português do Brasil • русский • 中文 • 中文(繁體)‎