Predloga:Myprefs
Videz
Usage
[uredi kodo]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
[uredi kodo]- 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.
Current tabs (in order displayed) Input Output User profile
0Nastavitve → User profile Appearance
1Nastavitve → Videz Editing
3Nastavitve → Urejanje Recent changes
4Nastavitve → Zadnje spremembe Watchlist
5Nastavitve → Spisek nadzorov Gadgets
9Nastavitve → Pripomočki Banners Nastavitve → Pasice Search
6Nastavitve → Iskanje Beta features
Beta
11Nastavitve → Preizkusne možnosti Notifications
10Nastavitve → Obveščanje
Former tabs Input Output Notes Date and time
2Nastavitve These settings are now on the "Appearance" tab. Misc
7
12Nastavitve → Misc Pending changes
8Nastavitve → Pending changes These settings are now on the "Recent changes" tab.
- 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.
- Nastavitve → {{{2}}}
- 3 (unnamed)
- The third unnamed optional parameter adds an equals followed by the parameter text— this is for the value of the setting.
- Nastavitve → {{{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.
- Nastavitve → {{{2}}} →
- 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.
- Nastavitve → {{{2}}} →
Examples
[uredi kodo]{{myprefs}}
{{myprefs|0}}
{{myprefs|Editing}}
{{myprefs|Gadgets|Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists}}
- Nastavitve → Pripomočki → 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}}
- Nastavitve → Zadnje spremembe → 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}}
- Nastavitve → Videz → Diffs →
{{myprefs|Appearance|Diffs|check=Omit diff after performing a rollback}}
- Nastavitve → Videz → Diffs →