Template:Preferences
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit "Template:Preferences/doc" to edit its documentation if it is available. (How does this work?) |
| This template is used on approximately 18,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. |
| The content of this template is dependent on the language setting in Special:Preferences. You can test how the template looks in the most popular languages with these links: |
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.
{{Preferences}}{{Preferences|tab}}{{Preferences|tab|setting}}{{Preferences|tab|setting|value}}{{Preferences|tab|check={{int:setting}}}}{{Preferences|tab|uncheck={{int:setting}}}}{{Preferences|tab|section|check=setting}}{{Preferences|tab|section|uncheck=setting}}
Examples
{{Preferences}}
{{Preferences|Editing}}
{{Preferences|Gadgets|Appearance|check={{int:gadget-edittop}}}}
Настройки → Гаджеты → ⧼gadget-section-appearance⧽ →
⧼gadget-edittop⧽
{{Preferences|Appearance|Diffs|uncheck={{int:tog-diffonly}}}}
Настройки → Внешний вид → Разница версий →
Не показывать содержание страницы под сравнением двух версий
{{Preferences|Appearance|Diffs|check=Omit diff after performing a rollback}}
Настройки → Внешний вид → Разница версий →
Omit diff after performing a rollback
Tab names and numbers
| Input | Output |
|---|---|
| User profile | Настройки → Личные данные |
| Appearance | Настройки → Внешний вид |
| Editing | Настройки → Редактирование |
| Recent changes | Настройки → Свежие правки |
| Watchlist | Настройки → Список наблюдения |
| Search | Настройки → Поиск |
| Gadgets | Настройки → Гаджеты |
| Banners | Настройки → ⧼prefs-centralnotice-banners⧽ |
| Beta features | Настройки → Бета-функции |
| Beta | |
| Notifications | Настройки → Уведомления |
Historical content
| ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Note: MW1.19 swapped the order of Gadgets and Pending changes. |
TemplateData
TemplateData for Preferences
Нет описания.
| Параметр | Описание | Тип | Статус | |
|---|---|---|---|---|
| Tab name | 1 | The tab name. The names are not case-sensitive.
| Строковый (без форматирования) | предложенный |
| Full name of the setting or a section of settings | 2 | Adds an arrow followed by the value
| Строковый (без форматирования) | необязательный |
| Value of the setting | 3 | Adds an equals sign followed by the parameter value
| Строковый (без форматирования) | необязательный |
| Unchecked box text | uncheck | Adds an arrow followed by an unchecked box and the parameter value. Conflicts with |3=
| Строковый (без форматирования) | необязательный |
| Checked box value | check | Adds an arrow followed by a checked box and the parameter text. Conflicts with |3= and |uncheck=
| Строковый (без форматирования) | необязательный |
See also
- {{Preferences/section}}
- {{Special}}