Template:Myprefs
Template:Myprefs
This template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
This template creates a link to Special:Preferences with an optional link to a particular tab, an optional setting name, and an optional value. There are also options to display an unchecked or checked box with user specified text. The output of this template is formatted to set it off from any other text in the sentence.
{{myprefs}}
{{myprefs| tab }}
{{myprefs| tab | setting }}
{{myprefs| tab | setting | value }}
{{myprefs| tab | setting | uncheck=text }}
{{myprefs| tab | setting | check=text }}
Parameters
More information Input, Output ...
Input | Output |
---|---|
User profile 0 | Preferences → User profile |
Appearance 1 | Preferences → Appearance |
Editing 3 | Preferences → Editing |
Recent changes 4 | Preferences → Recent changes |
Watchlist 5 | Preferences → Watchlist |
Gadgets 9 | Preferences → Gadgets |
Banners | Preferences → Banners |
Search 6 | Preferences → Search |
Beta features Beta 11 | Preferences → Beta features |
Notifications 10 | Preferences → Notifications |
Close
More information Input, Output ...
Input | Output | Notes |
---|---|---|
Date and time 2 | Preferences → Date and time | These settings are now on the "Appearance" tab. |
Misc 7 12 | Preferences → Misc | |
Pending changes 8 | Preferences → Pending changes | These settings are now on the "Recent changes" tab. |
Close
- 1 (unnamed)
- The first unnamed optional parameter is for the tab; either the tab name or the corresponding number may be used. The names are not case-sensitive. The numbers may be used, but they no longer represent the current order as displayed in Preferences.
- Note: MW1.19 swapped the order of Gadgets and Pending changes.
- 2 (unnamed)
- The second unnamed optional parameter adds an arrow followed by the parameter text— this is for the full name of the setting.
- Preferences → Appearance → {{{2}}}
- 3 (unnamed)
- The third unnamed optional parameter adds an equals followed by the parameter text— this is for the value of the setting.
- Preferences → Editing → {{{2}}} = {{{3}}}
- uncheck
- This optional parameter adds an arrow followed by an unchecked box and the parameter text. It will not be displayed if any value is assigned to the third unnamed parameter.
- Preferences → Recent changes → {{{2}}} → {{{uncheck}}}
- check
- This optional parameter adds an arrow followed by a checked box and the parameter text. It will not be displayed if any value is assigned to the third unnamed parameter or to the uncheck parameter.
- Preferences → Notifications → {{{2}}} → {{{check}}}
Examples
{{myprefs}}
{{myprefs|0}}
{{myprefs|Editing}}
{{myprefs|Gadgets|Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists}}
- Preferences → Gadgets → Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists
{{myprefs|Recent changes|Basic interface|Use small icons and minimal text to show review status of pages}}
- Preferences → Recent changes → Basic interface = Use small icons and minimal text to show review status of pages
{{myprefs|Appearance|Diffs|uncheck=Do not show page content below diffs}}
- Preferences → Appearance → Diffs → Do not show page content below diffs
{{myprefs|Appearance|Diffs|check=Omit diff after performing a rollback}}
- Preferences → Appearance → Diffs → Omit diff after performing a rollback
The above documentation is transcluded from Template:Myprefs/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.