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|
{{demo|
{{demo|
{{demo|
{{demo|
Tab names and numbers
class="wikitable"
|+ Tabs (in order displayed) | |
Input | Output |
---|---|
User profile | rowspan="2" | {{Preferences|User profile}} |
0 | |
Appearance | rowspan="2" | {{Preferences|Appearance}} |
1 | |
Editing | rowspan="2" | {{Preferences|Editing}} |
3 | |
Recent changes | rowspan="2" | {{Preferences|Recent changes}} |
4 | |
Watchlist | rowspan="2" | {{Preferences|Watchlist}} |
5 | |
Gadgets | rowspan="2" | {{Preferences|Gadgets}} |
9 | |
Banners | {{Preferences|Banners}} |
Search | rowspan="2" | {{Preferences|Search}} |
6 | |
Beta features | rowspan="3" | {{Preferences|Beta features}} |
Beta | |
11 | |
Notifications | rowspan="2" | {{Preferences|Notifications}} |
10 |
{{cot|Historical content}}
class="wikitable"
|+ Former tabs | ||
Input | Output | Notes |
---|---|---|
Date and time | rowspan="2" | {{Preferences|Date and time}} | rowspan="2" | These settings are now on the "Appearance" tab. |
2 | ||
Misc | rowspan="3" | {{Preferences|Misc}} | rowspan="3" | |
7 | ||
12 | ||
style="white-space:nowrap" | Pending changes | rowspan="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"
}
}
}