Jump to content

Manual: Definições da configuração

From mediawiki.org
This page is a translated version of the page Manual:Configuration settings and the translation is 92% complete.
Outdated translations are marked like this.

É um índice de todas as definições da configuração suportadas baseadas no ficheiro MainConfigSchema.php (ou anteriores a $2 do MediaWiki 1.39).

Nunca edite MainConfigSchema.php; em vez disso, adicione as linhas apropriadas em LocalSettings.php e corrige-as conforme o apropriado.

Se não puder encontrar uma definição da configuração aqui, veja se está definido em MainConfigSchema.php. A variável deveria ter alguma documentação lá.

As definições que foram removidas nas versões do MediaWiki anteriores à versão 1.39 já não são listadas aqui. Por favor, utilize a caixa de pesquisa para encontrar a página do manual relevante (por exemplo, Manual:$wgAllowAnonymousMinor ).
Listado alfabeticamente | Listado por função | Categoria: Definições da configuração do MediaWiki

Definições Gerais

Objetos Globais

  • $wgAutoloadLocalClasses – Nome de classe de mapeamento de matriz para os nomes de ficheiro, para o carregamento automático.
  • $wgConf – Crie um objeto de configuração de site. Não é muito utilizado na instalação predefinida.

URLs do servidor e caminhos de ficheiro

Consulte também ficheiro/definições do caminho de envio de imagem.

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

Ficheiros e envios de ficheiro

Os envios devem ser configurados especialmente para serem seguros.

Envios partilhados

Estas definições são mantidas para compatibilidade com as versóes anteriores, consulte $wgForeignFileRepos para a nova definição, ou $wgUseInstantCommons se só precisa de acesso de leitura para as imagens na Commons.

Tipos de MIME

Aviso Aviso: Não é uma definição da configuração, mas uma variável de estado global. Só deverá ser utilizado por thumb.php !

Consulte também: Manual:MIME type detection

Imagens

  • $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 Path to the exiv2 executable.
  • $wgGalleryOptions Default settings for the ‎<gallery> tag.
  • $wgIgnoreImageErrors If true, inline scaled images will still produce ‎<img> tags ready for output instead of showing an error message.
  • $wgImageLimits A list of user-selectable limits for the image thumbnail size on image description pages.
  • $wgJpegQuality When scaling a JPEG thumbnail, this is the quality we request from the backend.
  • $wgJpegTran Path to jpegtran, for lossless JPEG rotation.
  • $wgMaxImageArea Don't thumbnail an image if it will use too much working memory.
  • $wgMediaHandlers – Plug-ins para lidar com o tipo de ficheiros de multimédia.
  • parâmetros para o caminho de envio
  • $wgTrustedMediaFormats List of trusted media-types and MIME types.

Consulte também: Manual:Configurar envios de ficheiro

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

SVG

Definições de miniatura

Antivírus

Definições de correio eletrónico

Consulte também 'Acesso de Utilizador': $wgEmailConfirmToEdit

Definições da notificação de e-mail (Enotif)

Notificações atuais para cada utilizador definido nas opções. Pode alterar as predefinições com $wgDefaultUserOptions .
  • $wgEnotifFromEditor Whether to make email notifications appear to come from the user who makes the edit
  • $wgEnotifImpersonal (removed in 1.45)Send a generic mail instead of a personalised mail for each user.
  • $wgEnotifMaxRecips (removed in 1.45)Maximum number of users to mail at once when using impersonal mail.
  • $wgEnotifMinorEdits – Definida como true para permitir o envido da notificação por correio eletrónico também para as edições marcadas como edições secundárias
  • $wgEnotifRevealEditorAddress Set to true to insert the page editor's email address into the email notifications Reply-To address
  • $wgEnotifUseRealName Use real name instead of username in email "from" field.
  • $wgEnotifUserTalk – Ative as notificações por e-mail para as edições nas páginas de discussão dos utilizadores.
  • $wgEnotifWatchlist – Defina como true para permitir a notificação por correio eletrónico para as páginas vigiadas.
  • $wgUsersNotifiedOnAllChanges Array of usernames who will be sent a notification email for every change which occurs on a wiki.

Definições da base de dados

Definições de LoadBalancer

Específico de MySQL

Específico de PostgreSQL

  • $wgDBport Database port. Only used by PostgreSQL.

Específico de SQLite

Definições da BD Partilhada

Controladores de conteúdo e de armazenamento

Truques e limites de desempenho

Cache

Main page: Manual:Caching
"Consulte: Interwiki para as definições da cache da Interwiki."

Cache de Ficheiro

Definições para a cache de ficheiro lateral do 'Servidor'.

Cache de Mensagem

Cache da Barra Lateral

Cache do Analisador

Definições de Memcached

Definições para configurar o armazenamento de objetos baseado na memória de Memcached (se estiver a utiliá-la) docs/memcached.md tem mais detalhes.

Cache de WAN

Definições de proxy de HTTP (CDN)

Estas definições configuram o MediaWiki quando se utiliza um servidor proxy HTTP em cache. Elas aplicam-se a caching utilizando Varnish, bem como Squid.

  • $wgCdnMatchParameterOrder Indicates if should take query parameters order on incoming requests into account for CDN caching
  • $wgCdnMaxageLagged Cache timeout for the CDN when DB replica lag is high
  • $wgCdnMaxageStale 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)
  • $wgCdnMaxAge – Cache TTL para o CDN enviado como 's-maxage' (sem ESI) ou Controlo Substituto (com ESI).
  • $wgCdnReboundPurgeDelay Secondary delayed purges of URLs
  • $wgCdnServersNoPurge Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted
  • $wgCdnServers An array of individual proxy servers to help MediaWiki detect if the request has been proxied.
    But also to send back to the proxy PURGE commands on changes.
  • $wgForcedRawSMaxage Default maximum age (in seconds) for raw CSS/JavaScript accesses.
  • $wgInternalServer Internal server name as known to Squid, if different than $wgServer .
  • $wgSquidPurgeUseHostHeader (removed in 1.42)Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgUseCdn – Ativar/desativar a colocação em cache da visualização da página.
  • $wgUseESI (deprecated in 1.33)If you run Squid3 with ESI support, enable this.
  • $wgUsePrivateIPs Whether private X-Forwarded-For IPs should be accepted
  • $wgVaryOnXFP Whether to add X-Forwarded-Proto to the Vary header for API requests and RSS/Atom feeds.

HTCP multicast purging

Definições de idioma, região e codificação de carateres

Definições da Zona Horária

Específico de Idioma

inglês
  • $wgAmericanDates Use 'mdy' instead of 'dmy' as the default date format, e.g. 'May 12' instead of '12 May'.
árabe/hindi
  • $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.

Definições de formato de saída e tema

Saída

Temas

ResourceLoader

Consulte ResourceLoader para mais informação.

Títulos de página e redirecionamentos

Espaços nominais

Suporte para dispositivos móveis

Sites e hiperligações de interwiki

Cache de interwiki

Consulte interwiki cache para mais informação.

Analisador

HTML

  • $wgRawHtml Allow raw, unchecked HTML in ‎<html>...‎</html> sections.
  • $wgTidyConfig Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.

Estatísticas e análise de conteúdo

  • $wgActiveUserDays – O número de dias dentro dos quais uma pessoa deve efetuar edições para ser considerada um utilizador "ativo"
  • $wgArticleCountMethod Method used to determine if a page in a content namespace should be counted as a valid content page (article).
  • $wgManualRevertSearchRadius Maximum number of revisions of a page that will be checked against every new edit made to determine whether the edit was a manual revert.
  • $wgRevertedTagMaxDepth Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reverted change tag.

Contas de utilizador, autenticação

Autenticação

Direitos de utilizador, controlo de acesso e monitorização

Acesso

Blocking/banning, and some other related settings.

See Manual: Impedir o acesso for more methods and settings concerning access. See also Manual: Direitos de Utilizador for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

Segurança

Cookies

Profiling, testing and debugging

Depuração

Consulte também: Manual: Como depurar

Profiling

Pesquisar

Editar interface do utilizador

Definição dos Comandos (Scripts) de Manutenção

Alterações recentes, novas páginas, lista de páginas vigiadas e histórico

Consulte também Ajuda: Alterações Recentes e $wgDefaultUserOptions .

Feed

  • $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 e.g. Recentchanges, Newpages.
  • $wgOverrideSiteFeed Override the site's default rss/atom feed that appears on every page.


Direitos de Autor

Importar/Exportar

Extensões

Categoria

Registos

Páginas especiais

Ações

  • $wgActions Array of allowed values for the action parameter for normal pages.

Políticas de robô

Ajax, API de Ação e API de REST

Ajax

API

Controlo de interface e processo

Cliente de HTTP

Trabalhos

Farm de Wikis

Definições de Diversos

Consultar também