Manual:Configuration settings/pt

Jump to navigation Jump to search
Outras línguas: English  • dansk • Deutsch • español • français • Bahasa Indonesia • 日本語 • 한국어 • polski • português • português do Brasil • русский • 中文


Isto é um índex de todas as definições de configuração suportadas baseadas no ficheiro DefaultSettings.php.

Nunca edite DefaultSettings.php; em vez disso, copie as linhas apropriadas para o ficheiro LocalSettings.php e corrija-as conforme apropriado.

Se não conseguir encontrar aqui uma definição de configuração, veja se está esta definida no ficheiro DefaultSettings.php. A variável deveria ter lá alguma documentação.

Settings removed in versions of MediaWiki prior to 1.19 are no longer listed here. Please use the search box to find the relevant manual page (e.g. Manual:$wgAllowAnonymousMinor).
Listadas alfabeticamente | Listadas por função | :Categoria:Definições de Configuração do MediaWiki

Definições Gerais[edit]

URLs e caminhos de ficheiro[edit]

Consulte também Envios para as definições de caminho de envio de ficheiro/imagem.

Consulte também temas para as definições de caminho de temas.

Objetos Globais[edit]

Definições de Correio eletrónico (E-mail)[edit]

Consulte também Acesso de Utilizador: $wgEmailConfirmToEdit

Definições de notificação por correio eletrónico (Enotif)[edit]

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

Definições da base de dados[edit]

Definições de LoadBalancer[edit]

Especifico de MSSQL[edit]

Especifico de MySQL[edit]

Especifico de Oracle[edit]

Especifico de PostgreSQL[edit]

  • $wgDBmwschema – Schema that Postgres stores the MediaWiki tables in.

Especifico de SQLite[edit]

Definições de BD Partilhada[edit]

Suporte de Armazenamento Comprimido[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).



Definições da zona horária[edit]

Especifico de Idioma[edit]

  • $wgAmericanDates – Enable for English module to print dates as eg 'May 12' instead of '12 May'.
  • $wgTranslateNumerals – For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.

Depurar/registo de eventos[edit]

See also: Manual:How to debug


Personalização do site[edit]




See ResourceLoader for more information.

Espaços nominais[edit]


The following settings are only used if $wgHtml5 is set to "false" (removed in 1.22):

  • $wgDocType (removed in 1.22) – The doc type to use in the <!DOCTYPE !> declaration.
  • $wgDTD (removed in 1.22) – Specifies the DTD in the DOCTYPE declaration for page output.
  • $wgXhtmlDefaultNamespace (removed in 1.22) – Default XHTML namespace

Políticas de robot[edit]

Suporte de móvel[edit]

Política de Segurança de Conteúdo[edit]

Estatísticas do Site[edit]




See: Interwiki for Interwiki cache settings.

Client side caching[edit]

Cache de Ficheiro[edit]

Settings for Server side file caching.

  • $wgFileCacheDepth – Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
  • $wgUseFileCache – This will cache static pages for non-logged-in users to reduce database traffic on public sites.

Cache de Mensagem[edit]

Cache de barra Lateral[edit]

Parser Cache[edit]

  • $wgEnableParserCache (deprecated in 1.26) – Keep parsed pages in a cache (objectcache table, turck, or memcached) to speed up output of the same page viewed by another user with the same options.
  • $wgRenderHashAppend – Append a configured value to the parser cache and the sitenotice cache keys.
  • $wgParserCacheExpireTime – Expiration time (in seconds) of cached parser information
  • $wgParserCacheType – Parser cache setting.

Memcached settings[edit]

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


Cache de Interwiki[edit]

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:User rights</> for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

Consulte Acesso do Utilizador para definições do 'Acesso do Utilizador'.

Rate limiter[edit]


Wiki locking[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.



Os envios devem ser configurados especialmente para serem seguros.

Envios partilhados[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.

Tipos de MIME[edit]

Aviso Aviso: This is not a configuration setting, but a global state variable. It should be used solely by thumb.php!
  • $wgVerifyMimeType – Determines if the mime type of uploaded files should be checked.
  • $wgVerifyMimeTypeIE – Determines whether extra checks for Internet Explorer type detection should be applied.
  • $wgMimeTypeBlacklist – Files with these mime types will never be allowed as uploads if $wgVerifyMimeType is enabled.
  • $wgXMLMimeTypes – An array of XML mime types we can detect via MimeMagic.

Consulte também: Manual:Deteção de tipo de Mime


See also: Manual:Configuring file uploads



  • $wgShowEXIF – Determines whether EXIF metadata is to be displayed. Set to false for not showing data.
  • $wgUpdateCompatibleMetadata – Whether to automatically update the img_metadata field if the metadata field is outdated but compatible with the current version.


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


Definições de miniatura[edit]




  • $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 – Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.
  • $wgAlwaysUseTidy (deprecated in 1.26)
  • $wgDebugTidy – Put tidy warnings in HTML comments, only works for internal tidy.
  • $wgTidyBin (deprecated in 1.26) – Should be set to the path of the tidy binary.
  • $wgTidyConf (deprecated in 1.26) – Should be set to the path of the tidy configuration file.
  • $wgTidyInternal (deprecated in 1.20)- Controls the use of the PECL extension to use an inprocess tidy library instead of spawning a separate program.
  • $wgTidyOpts (deprecated in 1.26) – Options passed to tidy on the command line.
  • $wgUseTidy (deprecated in 1.26) – 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.

Special pages[edit]

Recent changes[edit]

See also Help:Recent changes and $wgDefaultUserOptions

UDP updates[edit]

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



User Access[edit]

User agent[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.
  • $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.



Cliente de HTTP[edit]




These settings configure MediaWiki when using a caching HTTP proxy server. They apply to caching using Varnish as well as Squid.

HTCP multicast purging[edit]


Maintenance Scripts setting[edit]

Definições diversas[edit]

Consulte também[edit]