Jump to content

Manual:$wgDefaultUserOptions

From mediawiki.org
This page is a translated version of the page Manual:$wgDefaultUserOptions and the translation is 24% complete.
利用者アカウント、認証: $wgDefaultUserOptions
利用者の既定の個人設定。
導入されたバージョン:1.4.0
除去されたバージョン:使用中
許容される値:下記参照
既定値:下記参照

To add a new user preference, see:

Manual:フック/GetPreferences

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.

利用可能な個人設定

以下の個人設定がカスタマイズ可能です:

名前 既定値 説明 Versions
利用者のプロファイル
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.
1.8
nickname '' Actual text of the custom signature
1.23
enotifwatchlistpages 1 Email notification to editor if there are changes to a page the editor has on their watchlist. Only used if $wgEnotifWatchlist is set.
1.8
enotifusertalkpages 1 Email notification to editor if there are changes to the editor's talk page. Only used if $wgEnotifUserTalk is set.
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. Only used if $wgEnotifWatchlist or $wgEnotifUserTalk are set.
1.8
enotifrevealaddr 0 Only used if $wgEnotifRevealEditorAddress and either $wgEnotifWatchlist or $wgEnotifUserTalk are set.
1.5
gender 'unknown' Used for gender-correct addressing by the software. This information will be public. Options are: male, female, or unknown.
1.15
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.
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
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.
1.8 – 1.21
外装
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 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
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)
1.8 – 1.30
ファイル
imagesize 2 Size to limit images on description pages to. Values correspond to the entries in $wgImageLimits . By default, 2 is 800*600.
1.8
thumbsize 5 Thumbnail size - Values correspond to the entries in $wgThumbLimits . By default, 5 is 300px.
1.8
日付と時刻
date 'default' Date format. 選択肢:
  • 'default': No preference
  • 'mdy': 16:12, January 15, 2011
  • 'dmy': 16:12, 15 January 2011
  • 'ymd': 16:12, 2011 January 15
  • 'ISO 8601': 2011-01-15T16:12:34
  • 'persian': 15 Farvardin 1390 SH (Iranian Calender, Persia)
1.8
timecorrection A fixed timezone offset or ZoneInfo zone, e.g.:
  • -9 (UTC minus 9 hours; will not adjust for Daylight Saving)
  • 'ZoneInfo|-240|America/New_York' (tz database zone for NY; will adjust for Daylight Saving)
編集
rows 25 編集ボックスのサイズ (行) (1.29 で廃止予定)
1.8 – 1.34
cols 80 編集ボックスのサイズ (列) (1.29 で廃止予定)
1.8 – 1.34
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 phab:T54811.
1.8 – 1.22
editsectiononrightclick 0 節見出しの右クリックで節を編集できるようにする (JavaScript)
1.8
editondblclick 0 ダブルクリックでページを編集 (JavaScript)
1.13
showtoolbar 1 Show edit toolbar (requires javascript)
1.8 – 1.31
previewonfirst 0 編集開始時にもプレビューを表示
1.13
previewontop 1 プレビューを編集ボックスの前に配置
1.8
minordefault 0 すべての編集を既定で細部の編集とする
1.13
externaleditor Use external editor by default
1.8 – 1.21
externaldiff Use external diff by default
1.8 – 1.21
uselivepreview 0
forceeditsummary 0 Prompt user when entering a blank edit summary
editfont 'monospace' Edit area font style. Options are: default (browser default), monospace, sans-serif, serif.
useeditwarning 1 変更を保存せずに編集画面から離れようとしたら警告
最近の更新
rcenhancedfilters-disable 0 Opts-out from New Filters for edit review.
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 最近の更新に細部の編集を表示しない
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 最近の更新に巡回済みの編集を表示しない
newpageshidepatrolled 0 新しいページの一覧に巡回済みのページを表示しない
hidecategorization 1 ページのカテゴリ追加・除去を表示しない
ウォッチリスト
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 自分の編集をウォッチリストに表示しない
watchlisthidebots 0 ボットによる編集をウォッチリストに表示しない
watchlisthideminor 0 細部の編集をウォッチリストに表示しない
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 ウォッチリストのトークン
watchlisthidepatrolled 0 巡回済みの編集をウォッチリストに表示しない
watchlistreloadautomatically 0 フィルタが変更されるたびに、ウォッチリストを自動的に再読み込みする (JavaScript が必要)
watchlistunwatchlinks 0 ウォッチリストの項目に直接、追加/除去のリンク(+/×)を表示 (トグル切り替えには JavaScript が必要)
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
検索
searchlimit 20 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). (1.23 で除去)
ajaxsearch Enables AJAX Search (Options are 1 for true and 0 for false)
searcheverything Search in all namespaces. (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.
その他
stubthreshold 0 Threshold for stub display
1.8 – 1.36
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
1.8 – 1.37
showtoc 真偽値。 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 ログインする際、常に安全な接続を使用する
email-allow-new-users 1 新しい利用者からのメールを許可する
pst-cssjs 1 ?
1.36
search-match-redirect true 検索時に完全一致に移動します
1.35
search-special-page 'Search'
1.38
showrollbackconfirmation 0 巻き戻しリンクをクリックした際に確認画面を表示する
requireemail 0 メールアドレスと利用者名の両方を入力した場合のみ、パスワード再設定メールを送信する
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 自分が作成または返信したスレッドをウォッチリストに追加 (既定値 true)
lqtnotifytalk ウォッチリストにあるスレッドに返信があったらメールを受け取る (既定値 false)
Extension:Flow
echo-subscriptions-web-flow-discussion ⧼echo-subscriptions-web-flow-discussion⧽ (既定値 true)
echo-subscriptions-email-flow-discussion ⧼echo-subscriptions-email-flow-discussion⧽ (既定値 false)
Extension:VisualEditor
visualeditor-betatempdisable 0 Temporarily disable the visual editor while it is in beta

注記:

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

ガジェットのオプション

gadget-$gname e.g. gadget-HotCat for MediaWiki:Gadget-HotCat.js

既定値

各言語は、その言語ファイルに利用者の個人設定のための独自の既定値を設定します。 例えば、右横書きの言語 (右から左に読む言語) では、クイックバー は左側ではなく右側に表示されるように設定されるでしょう。 $wgDefaultUserOptions に追加された値はオーバーライドです (つまり、ここに値が存在する場合はそれが優先されます) が、言語の既定値が使用される場合、設定が配列から省略される場合があります。

MediaWiki の 1.8.0 未満のバージョンでは、この設定の既定値は単に空の配列であり、現在の言語が既定値を提供するものでした。

バージョン 1.8.0 以降では、言語固有の設定のみが言語ファイルでオーバーライドされるため、ほとんどの設定が DefaultSettings.php で明示的に設定されるようになりました。

バージョン 1.19 (r91432) 以降、言語ファイルによるオーバーライドは機能しないため除去され、クイックバーなど、それを使用していた機能は別の方法で改善されました。

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.
MediaWiki:Common.css: .mw-editsection { display:none!important; }

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:

$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"
    },

References

関連項目