Manual talk:$wgDefaultUserOptions

Missing variables ?
Hi! Is there an updated list? e.g., i cant find options for "Add pages I create to my watchlist, Add pages I edit to my watchlist, and "Notify per maail for changes on articles on my watch list". --Nyks 11:36, 24 November 2006 (UTC)

Hallo! The list seems to be a litttle out of date :) I think you can use every parameter which are stored in the user_options field of the user table in the database. Tried to add extra search namespace with $wgDefaultUserOptions ['searchNs102'] = 1; and it worked. The paramter rcdays for the last x days of recent changes worked also fine and is not documented here. To index the wgDefaultUserOptions array, I just simply use the terms I saw in user_options field of the database.

Recent update
I've just updated the default values with the values explicitly set in DefaultSettings.php for 1.8.0. I am in the process of checking later versions, and as I do so I will document any changes to this default set that have occurred.

I am a little unsure as to how the various default preference settings interact, and how this has changed between versions (as far as I know the only structural change happened in 1.8.0). For example, it appears that in earlier versions, each language defined all settings, and $wgDefaultUserOptions was empty in DefaultSettings.php, allowing you to override the language defaults in LocalSettings.php. However in 1.8.0 this was changed so that the languages are now considered 'overrides' for this default array. However, the code that gets the defaults still gives $wgDefaultUserOptions precedence, so I'm not sure how quickbar settings (for example) can vary between languages. Also, I'm not sure what happens if something is not defined either in the language or in the config setting - is there a hard-coded default that is used?

Anyway, the update is good as far as it goes - I would appreciate any suggestions about how to make this page more complete/accurate (aside from bringing the default values up to date, which I will do). A large part of this is understanding how this setting is used. What the page shouldn't do is give defaults set in the language files, otherwise it will become huge - it might be appropriate to link to SVN for that though?

Note that the settings which I removed from the big table were apparently checked (by me) against HEAD, but I'm not sure what version we were on then. I'm currently thinking that the values as set in DefaultSettings.php are what we should be showing here, as they are the bits that won't change depending on language. If needed, the previous version can be seen here.

--HappyDog 22:46, 17 December 2007 (UTC)


 * Also, I'm not sure how $wgNamespacesToBeSearchedDefault fits into this. Anecdotally, $wgDefaultUserOptions seems to take precedence, but looking at the code (albeit very briefly) it appears that it is the other way round.  Hmmmm.... --HappyDog 22:52, 17 December 2007 (UTC)

Hidden categories
Anyone know the options for 'show hidden categories' in the default user options? --Carelesshx 15:51, 11 November 2008 (UTC)
 * The page needs a major clean up. --Subfader 23:01, 19 March 2009 (UTC)

externaldiff
I was confused by this:

externaldiff 	Use external diff by default

In Wikipedia:Special:Preferences it says "(for experts only, needs special settings on your computer)" - it would help to have an indication of what it means and what those settings are.

I had to hunt to find an explanation: "By external diff tool, I mean you can use any tool that compares two pieces of text (nothing to do with MediaWiki)." It would be helpful to have a page with links or instructions to doing this. I'd start a stub, but unsure of page naming on this site... --Chriswaterguy 00:17, 4 March 2010 (UTC)

Add multiple settings example
To complete newbies it is not clear what should be added to LocalSettings.php in order to regulate multiple things. An example with an array would be appreciated.

Added screenshot for result of changing watchdefault
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"

Igottheconch 21:15, 8 January 2012 (UTC)