แม่แบบ: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.
{{myprefs}}
{{myprefs| tab }}
{{myprefs| tab | setting }}
{{myprefs| tab | setting | value }}
{{myprefs| tab | setting | uncheck=text }}
{{myprefs| tab | setting | check=text }}
Parameters[แก้]
- 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 senstive. 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
0ตั้งค่า → ข้อมูลส่วนตัว Appearance
1ตั้งค่า → หน้าตา Editing
3ตั้งค่า → การแก้ไข Recent changes
4ตั้งค่า → หน้าปรับปรุงล่าสุด Watchlist
5ตั้งค่า → รายการเฝ้าดู Notifications
10ตั้งค่า → Notifications Gadgets
9ตั้งค่า → อุปกรณ์เสริม Beta features
Beta
11ตั้งค่า → คุณสมบัติระยะทดสอบ
Former tabs Input Output Notes Date and time
2ตั้งค่า → Date and time These settings are now on the "Appearance" tab. Search
6ตั้งค่า → ค้นหา
ตั้งค่า →As shown, output is different when using number. Misc
7
12ตั้งค่า → จิปาถะ Pending changes
8ตั้งค่า → 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.
- ตั้งค่า → หน้าตา → {{{2}}}
- 3 (unnamed)
- The third unnamed optional parameter adds an equals followed by the parameter text— this is for the value of the setting.
- ตั้งค่า → การแก้ไข → {{{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.
- ตั้งค่า → หน้าปรับปรุงล่าสุด → {{{2}}} → {{{uncheck}}}
- 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.
- ตั้งค่า → Notifications → {{{2}}} → {{{check}}}
Examples[แก้]
{{myprefs}}
{{myprefs|0}}
{{myprefs|Editing}}
{{myprefs|Gadgets|Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists}}
- ตั้งค่า → อุปกรณ์เสริม → 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}}
- ตั้งค่า → หน้าปรับปรุงล่าสุด → 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}}
{{myprefs|Appearance|Diffs|check=Omit diff after performing a rollback}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Myprefs/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |