Manual:$wgDefaultUserOptions/pt-br
Usuários: $wgDefaultUserOptions | |
---|---|
Preferências de usuário padrão. |
|
Introduzido na versão: | 1.4.0 |
Removido na versão: | ainda em uso |
Valores permitidos: | Veja abaixo |
Valor padrão: | Veja abaixo |
Outras definições: Alfabético | Por função |
To add a new user preference, see: Manual:Hooks/GetPreferences
As mudanças abaixo para o arquivo LocalSettings.php substituirão as preferências do usuário padrão para visitantes anônimos e usuários que não tenham as suas preferências personalizadas. Contas de usuários existentes que tiveram a opção default (anterior) e não a definiram explicitamente (o que significa que ela não está armazenada no banco de dados), então, usar o novo padrão.
No sistema de preferências antigo, a mudança afeta apenas visitantes anônimos (se for o caso) e novas contas.
Preferências disponíveis
As seguintes preferências do usuário estão disponíveis para personalização:
Nome | Default | Descrição | ||
---|---|---|---|---|
User Profile | ||||
fancysig | 0 | If User uses a custom (raw) signature (0 or 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. | ||
nickname | (empty string) | |||
rememberpassword | 0 | Whether to remember the user's password between sessions. | ||
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. Only used if $wgEnotifWatchlist is set. | ||
enotifusertalkpages | 1 | Email notification to editor if there are changes to the editor's talk page. Only used if $wgEnotifUserTalk is set. | ||
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. Only used if $wgEnotifWatchlist or $wgEnotifUserTalk are set. | ||
enotifrevealaddr | 0 | Only used if $wgEnotifRevealEditorAddress and either $wgEnotifWatchlist or $wgEnotifUserTalk are set. | ||
gender | unknown | Used for gender-correct addressing by the software. This information will be public. Options are: male, female, or unknown. | ||
realname | Default “real name”. Real name is optional. 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 in version 1.16+. Use $wgAllowRealName for 1.16-. | |||
language | User specific interface language, especially useful in conjunction with $wgHiddenPrefs . This is not to set the wiki's default language. Use $wgLanguageCode instead.
| |||
Barra de acesso rápido | ||||
disablemail | 0 | Whether other users can send eMail to this user, if $wgEnableUserEmail is enabled. | ||
quickbar | Quickbar location (only applies if using Cologne Blue or Classic skins). Options are: 0 - None, 1 - Fixed left, 2 - Fixed right, 3 - Floating left, 4 - Floating right, 5 (since 1.19) - Left/right depending on your language. | |||
Skin | ||||
skin | false | Which skin to use. May be false to indicate that the site default (as defined in $wgDefaultSkin ) should be used. Previously, numbers were used to be 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. | ||
Math | ||||
math | 1 | How to render in-line maths (contents of <math></math> tags). Only applies if $wgUseTeX is set. Options are: 0 - Always render PNG, 1 - Leave it as TeX (for text browsers) | ||
Files | ||||
imagesize | 2 | Size to limit images on description pages to. Values correspond to the entries in $wgImageLimits . By default, 2 is 800*600. | ||
thumbsize | 5 | Thumbnail size - Values Correspond to the entries in $wgThumbLimits . By default, 2 is 180px. | ||
Date and Time | ||||
date | default | Date format. Options:
| ||
timecorrection | A fixed timezone offset or ZoneInfo zone, e.g.:
| |||
Editing | ||||
rows | 25 | Edit box size (rows) (obsoleto na versão 1.29) | ||
cols | 80 | Edit box size (columns) (obsoleto na versão 1.29) | ||
editsection | Enable section editing via [edit] links. Behaviour changed in 1.23: add .mw-editsection { display:none!important; } to site-wide or user CSS, see phabricator:T54811.
| |||
editsectiononrightclick | 0 | Enable section editing by right clicking on section titles (JavaScript) | ||
editondblclick | 0 | Edit pages on double click (JavaScript) | ||
showtoolbar | 1 | Show edit toolbar (requires javascript) | ||
previewonfirst | 0 | Show preview on first edit | ||
previewontop | 1 | Show preview before edit box | ||
minordefault | 0 | Mark all edits minor by default | ||
externaleditor | Use external editor by default | |||
externaldiff | Use external diff by default | |||
uselivepreview | 0 | Only used if $wgLivePreview is true. | ||
forceeditsummary | 0 | Prompt user when entering a blank edit summary | ||
editfont | default | Edit area font style. Options are: default (browser default), monospace, sans-serif, serif. | ||
useeditwarning | 1 | Warn the editor if the editor leaves an edit page with a blank edit summary. | ||
Recent changes | ||||
rcdays | 7 | Days to show in recent changes (cannot exceed $wgRCMaxAge ) | ||
rclimit | 50 | Maximum number of entries to display in recent changes (truncates rcdays )
| ||
hideminor | 0 | Hide minor edits in recent changes | ||
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 | Hide patrolled changes in Recent changes | ||
newpageshidepatrolled | 0 | Hide patrolled pages from New pages | ||
hidecategorization | 1 | Hides changes to category membership | ||
Watchlist | ||||
watchlistdays | 3.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 | Hide the user's own edits from the watchlist | ||
watchlisthidebots | 0 | Hide bot edits from the watchlist | ||
watchlisthideminor | 0 | Hide minor edits from the watchlist | ||
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 | Hide patrolled changes from the watchlist | ||
watchlistreloadautomatically | 0 | Reload the watchlist automatically whenever a filter is changed (JavaScript required) | ||
watchlistunwatchlinks | 0 | Add direct unwatch/watch markers (×/+) to watched pages with changes (JavaScript required for toggle functionality) | ||
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 >> Advanced options section and unchecking "Add pages 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 | ||
Search | ||||
searchlimit | Hits per page | |||
vector-simplesearch | Whether or not the Vector skin should use the simple search box (Options are 1 for true and 0 for false). (removido na 1.23) | |||
ajaxsearch | Enables AJAX Search (Options are 1 for true and 0 for false) | |||
searcheverything | Search in all namespaces. (removido na 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. | |||
Misc | ||||
stubthreshold | 0 | Threshold for stub display | ||
underline | 2 | Whether to underline links. Options are: 0 - never, 1 - always, 2 - browser default | ||
justify | Justify paragraphs | |||
numberheadings | 0 | Option "Auto-numbering Headings", 1 turns on the numbering of all headings within articles | ||
showtoc | Boolean. 1 is show the TOC, 0 is hide it. | |||
nocache | Disable page caching | |||
showhiddencats | 0 | Show hidden categories | ||
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 | |||
Extension:WikiEditor (packaged with MediaWiki 1.18+) | ||||
usenavigabletoc | Enable navigable table of contents | |||
wikieditor-publish | Enable step-by-step publishing | |||
wikieditor-preview | Enable side-by-side preview | |||
usebetatoolbar | Enable enhanced editing toolbar | |||
usebetatoolbar-cgd | Enable dialogs for inserting links, tables and more | |||
Extension:LiquidThreads | ||||
lqt-watch-threads | Vigiar tópicos que eu venha a criar ou responder (true by default) | |||
lqtnotifytalk | Receber e-mail sobre as respostas de tópicos que eu estou vigiando (false by default) | |||
Extension:Flow | ||||
echo-subscriptions-web-flow-discussion | ⧼echo-subscriptions-web-flow-discussion⧽ (true by default) | |||
echo-subscriptions-email-flow-discussion | ⧼echo-subscriptions-email-flow-discussion⧽ (false by default) | |||
Extension:VisualEditor | ||||
visualeditor-betatempdisable | 0 | Temporarily disable the visual editor while it is in beta |
Notes:
- 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 gadgets
gadget-$gname e.g. gadget-HotCat for MediaWiki:Gadget-HotCat.js
Valores padrão
Cada linguagem estabelece seus próprios valores padrão para as preferências do usuário em seu arquivo de idioma. Por exemplo, os idiomas que são lidos da direita para a esquerda, provavelmente, definirão o quickbar para aparecer na direita, em vez de à esquerda. Os valores adicionados a $wgDefaultUserOptions são substituições, ou seja, se o valor existe aqui, então ele vai ter prioridade, mas as configurações podem ser omitidos do array, caso em que o valor padrão da língua será usado.
Em versões do MediaWiki anteriores à 1.8.0, o valor padrão dessa configuração é simplesmente um array vazio, com a linguagem corrente fornecendo os valores padrão.
A partir da versão 1.8.0 em diante, somente as configurações específicas de idioma foram substituídas no arquivo de idioma, por isso a maioria das configurações serão agora explicitamente definidas no arquivo 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;
Note: From version 1.23 onwards, the section editing links need to be disabled via site-wide or user CSS, see phabricator:T54811 for details on the change.
MediaWiki:Common.css: .mw-editsection { display:none!important; }
Adicionar páginas o usuário edita para sua lista de páginas vigiadas por padrão:
$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:
$wgDefaultUserOptions['favoritecolorsred'] = 1;
$wgDefaultUserOptions['favoritecolorsyellow'] = 1;
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:
$wgDefaultUserOptions['favoritecars-red-corvette'] = 1;
$wgDefaultUserOptions['favoritecars-black-jetta'] = 1;
When writing a MediaWiki extension, instead of using the global variable $wgDefaultUserOptions, you can add a section to extensions.json:
"DefaultUserOptions": {
"math": "png"
},
See also
- userOptions.php - Changing the user options of existing users
- $wgNamespacesToBeSearchedDefault
- $wgHiddenPrefs
- UserGetDefaultOptions /en