The below changes to LocalSettings.php will override the default user preferences for anonymous visitors and users who have not customized their preferences.Existing user accounts who had the (previous) default option and didn't set it explicitly (which means that it's not stored in the database) will then use the new default.
In the old preferences system, the change affects only anonymous visitors (if relevant) and new accounts.
Preferências disponíveis
As seguintes preferências de utilizador estão disponíveis para personalização:
Nome
Predefinição
Descrição
Versions
Perfil do Utilizador
fancysig
0
Se o 'Utilizador' utiliza uma assinatura (raw) (0 ou 1). If user has not set a custom signature, their signature is controlled by the contents of the wiki page mediawiki:Signature or mediawiki:Signature-anon.If user has specified a custom sig, the actual text of the signature is in the nickname option.
≥ 1.8
nickname
''
Actual text of the custom signature
≥ 1.23
enotifwatchlistpages
1
Notificar por correio electrónico ao editor se tem tido mudanças numa página que o editor tem em sua lista de rastreamento. Só utilizado se $wgEnotifWatchlist estiver definido.
≥ 1.8
enotifusertalkpages
1
Email notification to editor if there are changes to the editor's talk page. Só utilizado se $wgEnotifUserTalk estiver definido.
≥ 1.8
enotifminoredits
0
Email notification to editor if there is a minor change to a watched page or user talk page, and the relevant option for sending emails on changes to watched page or user talk page is on. Só utilizado se $wgEnotifWatchlist ou $wgEnotifUserTalk estiverem definidos.
Used for gender-correct addressing by the software. Esta informação será pública. As opções são "masculino", "feminino", ou "desconhecido".
≥ 1.15
realname
“Nome real” predefinido. O nome real é opcional. If you choose to provide it, this will be used for giving you attribution for your work.Use $wgHiddenPrefs to disable the real name field.
language
User specific interface language, especially useful in conjunction with $wgHiddenPrefs.
This is not to set the wiki's default language.Use $wgLanguageCode instead.
disablemail
0
Whether other users can send email to this user, if $wgEnableUserEmail is enabled.
≥ 1.16
Tema
skin
false
Qual o tema a utilizar. May be false to indicate that the site default (as defined in $wgDefaultSkin) should be used.Previously, numbers were used to designate skins.The only numerical values that are currently operative (as of MediaWiki 1.29) are 0, which means the default skin, and 2, which means Cologne Blue.
≥ 1.8
skin-responsive
1
Enable responsive mode. Adapt skin to available viewport area. (May have no effect on some skins).
≥ 1.37
Matemática
math
1
How to render in-line maths (contents of <math></math> tags). Só se aplica se $wgUseTeX estiver definido. As opções são: 0 - Renderizar sempre PNG, 1 - Deixar como TeX (para os navegadores de texto)
1.8 – 1.30
Ficheiros
imagesize
2
Size to limit images on description pages to.Values correspond to the entries in $wgImageLimits. Por predefinição, 2 é 800*600.
≥ 1.8
thumbsize
5
Thumbnail size - Values correspond to the entries in $wgThumbLimits. Por predefinição, 5 é 300px.
≥ 1.8
Data e Hora
date
'default'
Formato da data. Opções:
'default': Sem preferência
'mdy': 16:12, janeiro 15 2011
'dmy': 16:12, 15 janeiro 2011
'ymd': 16:12, 2011 janeiro 15
'ISO 8601': 2011-01-15T16:12:34
'persian': 15 Farvardin 1390 SH (Iranian Calender, Persia)
Days to show in recent changes (cannot exceed $wgRCMaxAge)
rclimit
50
Maximum number of entries to display in recent changes (truncates rcdays)
hideminor
0
Ocultar edições menores nas mudanças recentes
shownumberswatching
1
Show the number of users, who are watching this page (on recent changes, watch list and article pages).Only used if $wgRCShowWatchingUsers is set.
usenewrc
1
Enhanced recent changes - javascript collapsible tree
hidepatrolled
0
Ocultar edições patrulhadas nas mudanças recentes
newpageshidepatrolled
0
Esconder páginas patrulhadas na lista de páginas novas
hidecategorization
1
Ocultar categorização de páginas
Lista de vigias
wlenhancedfilters-disable
0
Disable enhanced watchlist with JavaScript.
watchlistdays
7.0
Number of days to show in watchlist (cannot exceed $wgRCMaxAge)
extendwatchlist
1
Expand watchlist to show all applicable changes
wllimit
250
Number of edits to show in expanded watchlist (if 'extendwatchlist' == 1)
watchlisthideown
0
Esconder as minhas edições ao listar mudanças às páginas vigiadas
watchlisthidebots
0
Esconder edições de robôs ao listar mudanças às páginas vigiadas
watchlisthideminor
0
Esconder edições menores ao listar mudanças às páginas vigiadas
watchcreations
1
Add pages the user creates and files they upload to their watchlist
watchrollback
0
Add pages where the user has performed a rollback to their watchlist
watchlisthideanons
0
Hide anonymous users' changes from the watchlist
watchlisthideliu
0
Hide logged-in users' changes from the watchlist
watchlisttoken
Token of watchlist
watchlisthidepatrolled
0
Esconder edições patrulhadas ao listar mudanças às páginas vigiadas
watchlistreloadautomatically
0
Recarregar a lista de páginas vigiadas automaticamente sempre que um filtro é alterado (requer JavaScript)
watchlistunwatchlinks
0
Adicionar marcadores (×/+) para deixar de vigiar ou voltar a vigiar as páginas vigiadas que foram modificadas (é necessário o JavaScript para alternar entre ambas)
watchlisthidecategorization
1
Hides changes to category membership
watchdefault
1
Add pages the user edits to their watchlist, checking the "Watch this page" by default on all edited pages.
This option can be disabled by editors in Preferences → Watchlist tab → Watched pages section and unchecking "Add pages and files I edit to my watchlist"
watchmoves
0
Add pages the user moves to their watchlist
watchdeletion
0
Add pages the user deletes to their watchlist
watchuploads
1
Add new files the user uploads to their watchlist
Pesquisar
searchlimit
20
Acessos por página
vector-simplesearch
Whether or not the Vector skin should use the simple search box (Options are 1 for true and 0 for false).(removed in 1.23)
ajaxsearch
Enables AJAX Search (Options are 1 for true and 0 for false)
searcheverything
Procure em todos os espaços nominais. (removed in 1.24)[1]
searchnamespaces
Add 'searchnamespaces' to $wgHiddenPrefs to prevent users from customizing “namespaces to be searched by default” in their preferences (they will still be able to set which namespaces should be searched on Special:Search).Use $wgNamespacesToBeSearchedDefault to set which namespaces are enabled for searching by default.
Diversos
stubthreshold
0
Threshold for stub display
1.8 – 1.36
underline
2
Se sublinhar as hiperligações. As opções são: 0 - nunca, 1 - sempre, 2 - predefinição do navegador
justify
Justificar parágrafos
numberheadings
0
Option "Auto-numbering Headings", 1 turns on the numbering of all headings within articles
1.8 – 1.37
showtoc
Booliano. 1 é para mostrar TOC, 0 é para a ocultar.
nocache
Desativar colocação das páginas em cache
showhiddencats
0
Mostrar categorias ocultas
showjumplinks
Enable "jump to" accessibility links
diffonly
0
Don't show page content below diffs
norollbackdiff
0
No diff after rollback
ccmeonemails
0
Send me copies of emails I send to other users
prefershttps
1
Usar sempre uma ligação segura enquanto tiver sessão iniciada
email-allow-new-users
1
Permitir mensagens de correio de utilizadores novos
pst-cssjs
1
?
≥ 1.36
search-match-redirect
true
Ir para a correspondência exata na pesquisa
≥ 1.35
search-special-page
'Search'
≥ 1.38
showrollbackconfirmation
0
Mostrar um pedido de confirmação ao clicar numa hiperligação de reversão
requireemail
0
Enviar mensagens de redefinição da palavra-passe só quando são fornecidos o endereço de correio eletrónico e o nome de utilizador
Desativar temporariamente o editor visual enquanto está na versão beta
Notas:
New settings are added to MediaWiki periodically. Some of these settings have been added since $wgDefaultUserOptions was introduced in v1.4.0. Currently there is no documentation about when settings were added.
It is possible for extensions and language files to add extra toggles to the 'misc' tab. Languages that use this feature should have the setting described here. Extensions should add the information to their extension page.
This list is not up to date with the latest MediaWiki Version. List options with --list (see Manual:userOptions.php).
Opções de Gadget
gadget-$gname e.g. gadget-HotCat for MediaWiki:Gadget-HotCat.js
Valores predefinidos
Each language sets its own default values for the user preferences in its language file.For example languages that read right-to-left will probably set the quickbar to appear on the right, instead of on the left.The values added to $wgDefaultUserOptions are overrides, i.e. if the value exists here then it will take precedence, but settings may be omitted from the array in which case the language's default value will be used.
In versions of MediaWiki prior to 1.8.0 the default value of this setting was simply an empty array, with the current language providing the default values.
From version 1.8.0 onwards, only the language-specific settings were overridden in the language file, so most settings are now explicitly set in DefaultSettings.php.
From version 1.19 (r91432), the overrides by the language files were removed because they didn't work, and the features that used them, like quickbar, have been done differently and better.
Exemplos
To disable section editing links by default (for new and anonymous users), set the following in LocalSettings.php:
$wgDefaultUserOptions['editsection']=0;
From version 1.23 onwards, the section editing links need to be disabled via site-wide or user CSS, see phab:T54811 for details on the change.
Add pages the user edits to their watchlist by default:
$wgDefaultUserOptions['watchdefault']=1;
If the preference is of type multiselect, things are a bit more complicated.The key for each default user option is the concatenation of the preference key with the option key.For example if the preference key is 'favoritecolors' and the option key is 'red', the default user option key would be 'favoritecolorsred'.In this hypothetical scenario, if you wanted to have red and yellow selected by default, you would use:
If the preference is of type checkmatrix, things are even more complicated.The key for each default user option is the concatenation of the preference key with the column key and row key, separated with hyphens.For example if the preference key is 'favoritecars' and the column key is 'red' and the row key is 'corvette', the default user option key would be 'favoritecars-red-corvette'.In this hypothetical scenario, if you wanted to have red Corvette and black Jetta selected by default, you would use:
userOptions.php - Alterar as opções de utilizador dos utilizadores existentes
$wgConditionalUserOptions - Permite que os valores predefinidos das preferências do utilizador sejam definidos condicionalmente com base no utilizador considerado.
$wgHiddenPrefs - Desativar determinadas opções do utilizador