Manual:Configuration settings/pt-br

Jump to navigation Jump to search
This page is a translated version of the page Manual:Configuration settings and the translation is 0% complete.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎svenska • ‎русский • ‎中文 • ‎日本語 • ‎한국어

This is an index of all supported configuration settings based on the DefaultSettings.php file.

Never edit DefaultSettings.php; copy appropriate lines to LocalSettings.php instead and amend them as appropriate.

If you can't find a configuration setting here, see if it is defined in DefaultSettings.php. The variable should have some documentation there.

Settings removed in versions of MediaWiki prior to 1.27 are no longer listed here. Please use the search box to find the relevant manual page (e.g. Manual:$wgAllowAnonymousMinor).
Listed alphabetically | Listed by function | Category:Definições de configuração do MediaWiki

General Settings

URLs and file paths

Global Objects

Email settings

See also User Access: $wgEmailConfirmToEdit

  • $wgAdditionalMailParams – Parâmetros de e-mail adicionais, serão passados como o último argumento para a chamada da função mail() do PHP.
  • $wgAllowHTMLEmail – Defina como true para habilitar emails em HTML.
  • $wgEmailAuthentication – Defina como true para ativar a autenticação por correio eletrónico (confirmação) para esta wiki. Exceto para mensagens de lembrete de palavra-passe, as funções de correio eletrónico funcionam apenas para os endereços de correio eletrónico autenticados.
  • $wgEmergencyContact – Endereço de email do administrador do site
  • $wgEnableEmail – Defina como true para habilitar recursos básicos de e-mail
  • $wgEnableSpecialMute (introduzido na 1.34) (obsoleto na versão 1.34) – Set to true to enable the Special Mute page.
  • $wgEnableUserEmail – Defina como true para habilitar o envio de e-mails de usuário a usuário.
  • $wgEnableUserEmailBlacklist – Set to true to enable user-to-user email blacklist.
  • $wgNoReplyAddress – Endereço para resposta de e-mails gerados automaticamente.
  • $wgPasswordReminderResendTime – Tempo mínimo, em horas, que deve transcorrer entre e-mails de lembrete de senha.
  • $wgPasswordSender – Endereço de e-mail para lembrete de senha.
  • $wgRequirePasswordforEmailChange (removido na 1.27) – Se o usuário deve digitar sua senha para alterar seu endereço de e-mail
  • $wgSMTP – Para utilizar uma conexão direta (autenticada) com o servidor SMTP.
  • $wgSysopEmailBans (removido na 1.35) – Permitir aos sysops proibir que os usuários acessem Special:Emailuser.
  • $wgUserEmailConfirmationTokenExpiry – O tempo, em segundos, após o qual um sinal de confirmação do endereço de e-mail expira.
  • $wgUserEmailUseReplyTo – Defina como true para colocar o e-mail do usuário que está enviando em um cabeçalho Reply-To, em vez de From.

Email notification (Enotif) settings

Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions .

Database settings

LoadBalancer settings




  • $wgDBOracleDRCP (removido na 1.34) – When set to true, enables persistent connection with DRCP on Oracle.


  • $wgDBport – Porta da base de dados. Usado apenas pelo PostgreSQL.


Shared DB settings

Compressed Storage Support


Extension fields

  • $wgExtPGNewFields (removido na 1.36) – Extension defined fields to be added to existing tables
  • $wgExtNewTables (removido na 1.36) – Extension Defined tables to be added on schema change
  • $wgExtNewFields (removido na 1.36) – Extension defined fields to be added to existing tables
  • $wgExtNewIndexes (removido na 1.36) – Extension defined indexes to be added to existing tables
  • $wgExtPGAlteredFields (removido na 1.36) – Extension defined columns to be altered in tables
  • $wgExtModifiedFields (removido na 1.36) – Extension defined fields to change existing tables


  • $wgDisabledVariants – Variantes desativadas para conversão de variante de idioma.
  • $wgDisableLangConversion – Whether to enable language variant conversion.
  • $wgDisableTitleConversion – Whether to enable language variant conversion for links.
  • $wgDummyLanguageCodes (obsoleto na versão 1.29) – List of language codes that have been renamed to new (correct) codes, or don't correspond to an actual interface language.
  • $wgEditEncoding (removido na 1.28) – Characters not explicitly converted by output encoding
  • $wgExtraLanguageCodes – List of mappings from one language code to another
  • $wgForceUIMsgAsContentMsg – Array of UI messages that should be treated as content messages.
  • $wgInterwikiMagic – Treat language links as magic connectors, not inline links.
  • $wgLangObjCacheSize – Tamanho do cache de idioma, ou realmente quantos idiomas podemos manipular simultaneamente sem degradar a velocidade de rastreamento.
  • $wgLanguageCode – Código do idioma do site
  • $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 (removido na 1.34) – When a message in cache expires (in seconds).
  • $wgOverrideUcfirstCharacters (introduzido na 1.34) – List of Unicode characters for which capitalization is overridden in Language::ucfirst.
  • $wgRawHtmlMessages (introduzido na 1.32) – Lista de mensagens que podem conter HTML não processado.
  • $wgUseDatabaseMessages – Translation using MediaWiki: namespace.
  • $wgUserFallbackLanguages maximum number of fallback languages per user

Timezone settings


  • $wgAmericanDates – Use 'mdy' instead of 'dmy' as the default date format, e.g. 'May 12' instead of '12 May'.
  • $wgTranslateNumerals – For Hindi, Arabic, and other languages with their own numeral systems, use local numerals instead of Western style (0-9) numerals in some areas of the interface.


See also: Manual:Como depurar


Site customization




See ResourceLoader for more information.



The following setting is no longer used in supported versions of MediaWiki, but still exists for backward compatibility

Robot policies

Mobile support

Content Security Policy

  • $wgCSPHeader (introduzido na 1.32) – Controls Content-Security-Policy header [Experimental]
  • $wgCSPReportOnlyHeader (introduzido na 1.32) – Controls Content-Security-Policy-Report-Only header [Experimental]
  • $wgCSPFalsePositiveUrls – Controls what URLs to ignore in upcoming Content-Security-Policy feature's reporting.


Site Statistics




See: Interwiki for Interwiki cache settings.

Client side caching

File Cache

Settings for Server side file caching.

Message Cache

Sidebar Cache

Parser Cache

Memcached settings

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

WAN cache


Interwiki cache

See interwiki cache for more information.


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

See Manual:Preventing access for more methods and settings concerning access. See also Manual:Direitos de usuário for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

Rate limiter


Wiki locking

  • $wgReadOnly – Disallows editing, displaying the string given as the reason.
  • $wgReadOnlyFile – Se este arquivo for encontrado, o banco de dados estará bloqueado pela razão dada no conteúdo do arquivo.
  • $wgReadOnlyWatchedItemStore – Set this to true to put the wiki watchlists into read-only mode.



Uploads have to be specially set up to be secure.

Shared uploads

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.

MIME types

Atenção Atenção: ↑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


See also: Manual:Configuring file uploads



  • $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.


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


Thumbnail settings




  • $wgRawHtml – Allow raw, unchecked HTML in <html>...</html> sections.


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 – Configuração da ferramenta de pós-processamento HTML para usar para corrigir o código HTML inválido.
  • $wgDebugTidy (removido na 1.33) – Put tidy warnings in HTML comments, only works for internal tidy.
  • $wgTidyBin (removido na 1.33) – Should be set to the path of the tidy binary.
  • $wgTidyConf (removido na 1.33) – Should be set to the path of the tidy configuration file.
  • $wgTidyInternal (removido na 1.33) – Controls the use of the tidy extension to use an in-process tidy library instead of spawning a separate program.
  • $wgTidyOpts (removido na 1.33) – Options passed to tidy on the command line.
  • $wgUseTidy (removido na 1.33) – Use tidy to make sure HTML output is sane.
  • $wgValidateAllHtml (removido na 1.31) – Validate the overall output using tidy and refuse to display the page if it's not valid.
See also: Manual:Build Tidy from source .

Special pages

Recent changes

See also Help:Mudanças recentes and $wgDefaultUserOptions

UDP updates

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



User Access

User agent

  • $wgBrowserBlackList (obsoleto na versão 1.30) – Browser blacklist for non-Unicode-compliant browsers.



  • $wgFeed – Toggle syndication feeds (RSS, Atom e.g. Recentchanges, Newpages) on and off.
  • $wgAdvertisedFeedTypes – Feed types that should be provided by default.
  • $wgFeedCacheTimeout – Minimum timeout for cached Recentchanges feed, in seconds.
  • $wgFeedClasses – Available feeds objects.
  • $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.



HTTP client



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 – Nome do servidor interno mais conhecido como Squid, se for diferente de $wgServer .
  • $wgMaxSquidPurgeTitles (removido na 1.27) – Maximum number of titles to purge in any one client operation
  • $wgSquidPurgeUseHostHeader (obsoleto na versão 1.33) – Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgSquidMaxage (removido na 1.35) – Cache timeout for the squid.
  • $wgCdnMaxAge (introduzido na 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 (introduzido na 1.35) – Cache timeout in seconds when delivering a stale ParserCache response due to PoolCounter contention.
  • $wgCdnMaxageSubstitute – Tempo limite de cache para o CDN quando uma resposta é conhecida como errada ou incompleta (devido ao carregamento)
  • $wgCdnReboundPurgeDelay – Secondary delayed purges of URLs
  • $wgSquidServers (removido na 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 (introduzido na 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 (removido na 1.35) – Same as $wgSquidServers , except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges
  • $wgCdnServersNoPurge (introduzido na 1.34) – Same as $wgCdnServers , except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges
  • $wgLoggedOutMaxAge (introduzido na 1.35) – Cache TTL for the user agent sent as max-age, for logged out users.
  • $wgUseESI (obsoleto na versão 1.33) – If you run Squid3 with ESI support, enable this.
  • $wgUseSquid (removido na 1.35) – Enable/disable Squid.
  • $wgUseCdn (introduzido na 1.34) – Enable/disable page view caching.
  • $wgUseKeyHeader (removido na 1.34) – Send the Key HTTP header for better caching.
  • $wgUseXVO (removido na 1.27) – Send X-Vary-Options header for better caching (requires patched Squid).
  • $wgVaryOnXFP – Whether to add X-Forwarded-Proto to the Vary header for API requests and RSS/Atom feeds.

HTCP multicast purging


Maintenance Scripts setting

Miscellaneous settings

See also