Jump to content

Template:Myprefs/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

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.

Examples

[edit]
{{myprefs}}

Preferences

{{myprefs|Editing}}

Preferences → Editing

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

Preferences → Gadgets → Appearance → Tick Add an [edit] link for the lead section of a page

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

Preferences → Appearance → Diffs → Empty Don't show page content below diffs

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

Preferences → Appearance → Diffs → Tick Omit diff after performing a rollback

Tab names and numbers

[edit]
Tabs (in order displayed)
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
Former tabs
Input Output Notes
Date and time Preferences → Date and time These settings are now on the "Appearance" tab.
2
Misc Preferences → Misc
7
12
Pending changes Preferences → Pending changes These settings are now on the "Recent changes" tab.
8

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

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Myprefs in articles based on its TemplateData.

TemplateData for Myprefs

No description.

Template parameters

ParameterDescriptionTypeStatus
Tab name1

The tab name. The names are not case-sensitive.

Suggested values
User profile Appearance Editing Recent changes Watchlist Gadgets Banners Search Beta features Beta Notifications
Stringsuggested
Full name of the setting or a section of settings2

Adds an arrow followed by the value

Example
Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists
Stringoptional
Value of the setting3

Adds an equals sign followed by the parameter value

Example
Use small icons and minimal text to show review status of pages.
Stringoptional
Unchecked box textuncheck

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

Example
Do not show page content below diffs
Stringoptional
Checked box valuecheck

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

Example
Omit diff after performing a rollback
Stringoptional

See also

[edit]