Template:Myprefs
![]() | This template is used on approximately 12,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}}
{{myprefs|tab}}
{{myprefs|tab|section}}
{{myprefs|tab|section}}
Examples
{{myprefs}}
{{myprefs|Editing}}
{{myprefs|Gadgets|Appearance|check={{int:gadget-edittop}}}}
![Tick](http://upload.wikimedia.org/wikipedia/commons/thumb/d/de/MediaWiki_checkbox_ticked.svg/20px-MediaWiki_checkbox_ticked.svg.png)
{{myprefs|Appearance|Diffs|uncheck={{int:tog-diffonly}}}}
![Empty](http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/MediaWiki_checkbox_empty.svg/20px-MediaWiki_checkbox_empty.svg.png)
{{myprefs|Appearance|Diffs|check=Omit diff after performing a rollback}}
![Tick](http://upload.wikimedia.org/wikipedia/commons/thumb/d/de/MediaWiki_checkbox_ticked.svg/20px-MediaWiki_checkbox_ticked.svg.png)
Tab names and numbers
Input | Output |
---|---|
User profile | Preferences → User profile |
0 | |
Appearance | Preferences → Appearance |
1 | |
Editing | Preferences → Editing |
3 | |
Recent changes | Preferences → Recent changes |
4 | |
Watchlist | Preferences → Watchlist |
5 | |
Gadgets | Preferences → Gadgets |
9 | |
Banners | Preferences → Banners |
Search | Preferences → Search |
6 | |
Beta features | Preferences → Beta features |
Beta | |
11 | |
Notifications | Preferences → Notifications |
10 |
Historical content
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Note: MW1.19 swapped the order of Gadgets and Pending changes. |
TemplateData
TemplateData for Myprefs
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Tab name | 1 | The tab name. The names are not case-sensitive.
| String | suggested |
Full name of the setting or a section of settings | 2 | Adds an arrow followed by the value
| String | optional |
Value of the setting | 3 | Adds an equals sign followed by the parameter value
| String | optional |
Unchecked box text | uncheck | Adds an arrow followed by an unchecked box and the parameter value. Conflicts with |3=
| String | optional |
Checked box value | check | Adds an arrow followed by a checked box and the parameter text. Conflicts with |3= and |uncheck=
| String | optional |
See also
- {{Myprefs/section}}
- {{Special}}