Bản mẫu:Xếp loại bản mẫu/sandbox
| Bản mẫu này được xếp loại là đã sẵn sàng để sử dụng rộng rãi. Nó đã đạt đến mức độ hoàn thiện, được coi là khá ổn định và không có lỗi, và có thể được sử dụng bất kỳ chỗ nào nếu phù hợp. Nó có thể được nêu trên các trang trợ giúp cũng như các tài liệu Wikipedia khác làm tùy chọn tìm hiểu cho người dùng mới. Để giảm tải tài nguyên máy chủ và tránh tạo đầu ra gây hại, mọi cải tiến nên được thực hiện thông qua việc kiểm thử tại chỗ thử thay vì sửa đổi "thử và sai" lặp đi lặp lại liên tục. |
| Bản mẫu trên dùng để demo. |
| Đây là trang chỗ thử bản mẫu cho Bản mẫu:Xếp loại bản mẫu (khác). Xem thêm trang con so sánh cho trường hợp kiểm thử. |
| Bản mẫu này được sử dụng ở rất nhiều trang, vì thế những thay đổi đến nó sẽ hiện ra rõ ràng. Vui lòng thử nghiệm các thay đổi ở trang con /sandbox, /testcases của bản mẫu, hoặc ở không gian người dùng của bạn. Cân nhắc thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi. |
| Bản mẫu này được xếp loại là đã sẵn sàng để sử dụng rộng rãi. Nó đã đạt đến mức độ hoàn thiện, được coi là khá ổn định và không có lỗi, và có thể được sử dụng bất kỳ chỗ nào nếu phù hợp. Nó có thể được nêu trên các trang trợ giúp cũng như các tài liệu Wikipedia khác làm tùy chọn tìm hiểu cho người dùng mới. Để giảm tải tài nguyên máy chủ và tránh tạo đầu ra gây hại, mọi cải tiến nên được thực hiện thông qua việc kiểm thử tại chỗ thử thay vì sửa đổi "thử và sai" lặp đi lặp lại liên tục. |
| Bản mẫu này sử dụng Lua: |
Usage
Basic usage:
{{Template rating|rating}}Without categories:
{{Template rating|rating|nocat=true}}Template automatically detects if in module or template namespace, and displays the applicable notice.
Also detects if template or module protected from editing, the template will automatically display a message regarding that too. The reason can optionally be specified, it must be written in full using the |reason= parameter. This must be a full message and not one word like the reasons on Template:Protection padlock § Reasons.
If the documentation subpage is also protected, {{Protection padlock}} can be manually generated on it when it is transcluded by declaring |doc-reason= the same value as you would enter in |1= in {{Protection padlock}}, and |doc-action= the same as the parameter of the name which is the protection action—must be one of edit (default; for normal protection), move (for move-protection) or autoreview (for pending changes): {{Template rating|rating|reason for documentation protection|action=the restricted action on documentation like move or edit}}
If {{Template rating}} is used outside the Template or Module namespace, an error message is displayed instead and will be categorized under Thể loại:Trang có bản mẫu dùng sai không gian tên (259).
For templates, the rating |1= can be:
{{Template rating|pre-alpha}}{{Template rating|alpha}}{{Template rating|beta}}{{Template rating|release}}{{Template rating|– deprecated but still accepted and displays equivalent as release; previously showed another protection message that was redundant to the message automatically shown by Template:Template rating/protected.protected}}
For modules, the rating |1= can be:
{{Template rating|pre-alpha}}{{Template rating|alpha}}{{Template rating|beta}}{{Template rating|release}}{{Template rating|broken}}{{Template rating|deprecated}}
All parameter values are case-insensitive.
Template will not autocategorize if |nocat= set to true.
Examples
Bản mẫu:Template rating/sandboxBản mẫu:Template rating/sandboxBản mẫu:Template rating/sandboxBản mẫu:Template rating/sandboxBản mẫu:Template rating/sandboxBản mẫu:Template rating/sandbox
Module with protection
The protection is automatically detected, but this is what it would look like on Module:String for example which is fully-protected.
{{Template rating|release|reason=template|action=edit}}Bản mẫu:Template rating/sandbox
TemplateData
Used to mark the status of a template as one of pre-alpha, alpha, beta, release, or protected
| Tham số | Miêu tả | Kiểu | Trạng thái | |
|---|---|---|---|---|
| Rating | 1 | The rating level of the template or module.
| Chuỗi dài | bắt buộc |
| Nocat | nocat | Suppress categories.
| Luận lý | tùy chọn |
| Replacement (if deprecated) | replaced | If module is set to deprecated, then give wikilink of module that replace it if one exists.
| Tên trang | tùy chọn |
| Message (if deprecated) | message | If module is set to deprecated, then give optional message to append. | Nội dung | tùy chọn |
| Suppress protection template | suppress-pp | Suppress the protection template with any value.
| Chuỗi dài | tùy chọn |
| Reason for protection (if protected) | reason | Reason for protection; may be one of: blp, dispute, dmca, mainpage, office, reset, sock, template, usertalk, vandalism
| Chuỗi dài | tùy chọn |
| Reason for protection of /doc subpage (if protected) | doc-reason 2 | Reason for protection of doc subpage; may be one of: blp, dispute, dmca, mainpage, office, reset, sock, template, usertalk, vandalism
| Chuỗi dài | tùy chọn |
| Action restricted (if protected) | action | Action which is restricted. Must be one of "edit" (for normal protection), "move" (for move-protection) or "autoreview" (for pending changes).
| Chuỗi dài | tùy chọn |
| Action restricted of /doc subpage (if protected) | doc-action 3 | Action which is restricted. Must be one of "edit" (for normal protection), "move" (for move-protection) or "autoreview" (for pending changes).
| Không rõ | tùy chọn |
| demospace | demospace | không có miêu tả | Không rõ | tùy chọn |
| demopage | demopage | không có miêu tả | Không rõ | tùy chọn |
| demolevel | demolevel | không có miêu tả | Không rõ | tùy chọn |
Tracking categories
It autocategorizes into (unless |nocat= set to true):
- Thể loại:Bản mẫu trong giai đoạn phát triển tiền alpha (0)
- Thể loại:Bản mẫu trong giai đoạn alpha (0)
- Thể loại:Bản mẫu trong giai đoạn beta (2)
- Thể loại:Mô đun trong giai đoạn phát triển tiền alpha (0)
- Thể loại:Mô đun trong giai đoạn alpha (10)
- Thể loại:Mô đun trong giai đoạn beta (23)
- Thể loại:Mô đun sẵn sàng sử dụng rộng rãi (107)
These categories are suppressed on pages ending with /doc and /sandbox. To suppress categories on all pages, you can use |nocat=true.
Error tracking: