Template:Preferences/doc

{{Documentation subpage}}

{{High-use}}

{{Template redirect|Myprefs}}

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.

  • {{tlx|Preferences}}
  • {{tlx|Preferences|tab}}
  • {{tlx|Preferences|tab|setting}}
  • {{tlx|Preferences|tab|setting|value}}
  • {{tlx|Preferences|tab|check=setting}}
  • {{tlx|Preferences|tab|uncheck=setting}}
  • {{tlx|Preferences|tab|section|check=setting}}
  • {{tlx|Preferences|tab|section|check=setting}}

Examples

{{demo|{{Preferences}}}}

{{demo|{{Preferences|Editing}}}}

{{demo|{{Preferences|Gadgets|Appearance|check={{int:gadget-edittop}}}}}}

{{demo|{{Preferences|Appearance|Diffs|uncheck={{int:tog-diffonly}}}}}}

{{demo|{{Preferences|Appearance|Diffs|check=Omit diff after performing a rollback}}}}

Tab names and numbers

class="wikitable"

|+ Tabs (in order displayed)

InputOutput
User profilerowspan="2" | {{Preferences|User profile}}
0
Appearancerowspan="2" | {{Preferences|Appearance}}
1
Editingrowspan="2" | {{Preferences|Editing}}
3
Recent changesrowspan="2" | {{Preferences|Recent changes}}
4
Watchlistrowspan="2" | {{Preferences|Watchlist}}
5
Gadgetsrowspan="2" | {{Preferences|Gadgets}}
9
Banners{{Preferences|Banners}}
Searchrowspan="2" | {{Preferences|Search}}
6
Beta featuresrowspan="3" | {{Preferences|Beta features}}
Beta
11
Notificationsrowspan="2" | {{Preferences|Notifications}}
10

{{cot|Historical content}}

class="wikitable"

|+ Former tabs

InputOutputNotes
Date and timerowspan="2" | {{Preferences|Date and time}}rowspan="2" | These settings are now on the "Appearance" tab.
2
Miscrowspan="3" | {{Preferences|Misc}}rowspan="3" |
7
12
style="white-space:nowrap" | Pending changesrowspan="2" style="white-space:nowrap" | {{Preferences|Pending changes}}rowspan="2" | These settings are now on the "Recent changes" tab.
8

Note: MW1.19 swapped the order of Gadgets and Pending changes.

{{cob}}

TemplateData

{{TemplateData header}}

{

"params": {

"1": {

"label": "Tab name",

"description": "The tab name. The names are not case-sensitive.",

"type": "string",

"suggestedvalues": [

"User profile",

"Appearance",

"Editing",

"Recent changes",

"Watchlist",

"Gadgets",

"Banners",

"Search",

"Beta features",

"Beta",

"Notifications"

],

"suggested": true

},

"2": {

"label": "Full name of the setting or a section of settings",

"description": "Adds an arrow followed by the value",

"example": "Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists",

"type": "string"

},

"3": {

"label": "Value of the setting",

"description": "Adds an equals sign followed by the parameter value",

"example": "Use small icons and minimal text to show review status of pages.",

"type": "string"

},

"uncheck": {

"label": "Unchecked box text",

"description": "Adds an arrow followed by an unchecked box and the parameter value. Conflicts with |3=",

"example": "Do not show page content below diffs",

"type": "string"

},

"check": {

"label": "Checked box value",

"description": "Adds an arrow followed by a checked box and the parameter text. Conflicts with |3= and |uncheck=",

"example": "Omit diff after performing a rollback",

"type": "string"

}

}

}

See also

  • {{tl|Preferences/section}}
  • {{tl|Special}}

{{Sandbox other||

Category:Internal link templates

}}