Bản mẫu:Db-notice/doc

Bách khoa toàn thư mở Wikipedia

Bản mẫu này là một siêu bản mẫu được sử dụng để tạo thông báo xóa nhanh chóng. Nó thường được chuyển tải thành một bản mẫu khác.

Tất cả các bản mẫu thông báo xóa nhanh chóng dùng Twinkle dựa trên bản mẫu này. Twinkle sẽ tự động thêm thông báo này vào trang thảo luận của thành viên bất cứ khi nào một trang mà thành viên đã tạo được đề cử Xóa nhanh. Do đó, thành viên không có lý do gì để thêm bản mẫu này vào bất kỳ trang nào theo cách thủ công.

Sử dụng[sửa mã nguồn]

Sử dụng cơ bản:

{{SAFESUBST:<noinclude />db-notice
|namespace     = {{{namespace|}}}
|target        = {{{1}}}
|nowelcome     = {{{nowelcome|}}}
|header        = {{{header|}}}
|header-text   = {{{header-text|}}}
|text          = 
}}<!-- Template:Db-XX-notice --> <noinclude>
{{Tài liệu}}
</noinclude>

Tất cả tham số:

{{SAFESUBST:<noinclude />db-notice
|namespace         = {{{namespace|}}}
|target            = {{{1}}}
|nowelcome         = {{{nowelcome|}}}
|header            = {{{header|}}}
|header-text       = {{{header-text|}}}
|nothanks          = 
|icon              = 
|wizard            = 
|text              = 
|if you think that = 
|button            = 
|willprovide       = 
|additionally      = 
}}<!-- Template:Db-XX-notice --> <noinclude>
{{Tài liệu}}
</noinclude>

Bản mẫu thường nên được sử dụng với safesubst, để mẫu có thể chuyển tảithế. Trong hầu hết các trường hợp, các bản mẫu được tạo bằng siêu bản mẫu này sẽ được thay thế trên các trang thảo luận của thành viên, nhưng đôi khi việc lồng ghép là cần thiết, chẳng hạn như khi tạo tài liệu mẫu.

Bản mẫu này là một siêu bản mẫu được sử dụng để tạo thông báo xóa nhanh chóng. Nó thường được đưa vào một bản mẫu khác. Tất cả các bản mẫu thông báo xóa nhanh sử dụng công cụ Wikipedia được gọi là Twinkle đều dựa trên bản mẫu này. Twinkle sẽ tự động thêm thông báo này vào trang thảo luận của thành viên bất cứ khi nào một trang mà thành viên đã tạo được đề cử Xóa nhanh. Do đó, thành viên không có lý do gì để thêm bản mẫu này vào bất kỳ trang nào theo cách thủ công. Thông tin dưới đây dành cho những thành viên đang tạo các bản mẫu xóa riêng và là tài liệu tham khảo cho những người quan tâm đến việc sửa đổi các bản mẫu hiện có.

Tham số bản mẫu

Tham sốMiêu tảKiểuTrạng thái
Namespacenamespace

The namespace of the article proposed/ nominated for deletion. This should be passed through from the daughter template.

Ví dụ
File:
Chuỗi dàitùy chọn
Targettarget

This is the name of the page targeted for deletion, given without brackets of any kind

Ví dụ
Ham sandwich with mustard and mayo
Tên trangbắt buộc
No welcomenowelcome

This parameter automatically welcomes users with {{first article}} template if their user talk page was previously a red link (i.e., the deletion template is the first edit to the page). If this parameter is set to 'yes', then this welcome is omitted. This should usually be passed through from the daughter template, unless a welcome is never desired (for example for G10 'attack pages').

Ví dụ
yes
Chuỗi dàitùy chọn
Headerheader

If this is set to 'no', no section heading is generated before the deletion notification. This should be passed through from the daughter template to give deletion template creators control over whether they want to include a section heading or not. If left blank, a new section heading is generated.

Ví dụ
no
Chuỗi dàitùy chọn
Header textheader-text

This allows users to specify custom text for the section heading before the deletion notice. This should usually be passed through from the daughter template.

Chuỗi dàitùy chọn
No thanksnothanks

If the page the notification template is used on was previously a red link, and this parameter contains any text, then the text 'thank you for your contributions' is omitted from the welcome message. This is used when the contributions are assumed not to be useful, such as in templates for vandalism or attack pages.

Ví dụ
yes
Chuỗi dàitùy chọn
Iconicon

The filename of the image used in the top-left-hand corner of the notice. Most deletion notices are information notices (as opposed to warning notices), so the information icon4 is usually chosen.

Ví dụ
Information icon4.svg
Tên trangtùy chọn
Wizardwizard

Optionally shows a message box with advice about creating new articles.

Ví dụ
yes
Chuỗi dàitùy chọn
Texttext

The main text of the notice. This does not include the last paragraph, which is included automatically in every notice. Some aspects of the last paragraph can be changed with other parameters, however.

Chuỗi dàitùy chọn
If you think thatif you think that

If this parameter exists, it will replace the text 'the page was nominated in error' with the text it contains.

Mặc định
this page should not be deleted for this reason
Chuỗi dàitùy chọn
Buttonbutton

Setting this to 'no' removes the text about clicking on the button labelled 'Click here to contest this speedy deletion' in the speedy deletion tag. Useful if the related speedy deletion template doesn't have such a button.

Ví dụ
no
Chuỗi dàitùy chọn
Will providewillprovide

By default, the template will include the sentence, 'If the page is deleted, and you wish to retrieve the deleted material for future reference or improvement, you can place a request here.' If willprovide is equal to 'no' then this sentence will be omitted. Template:Db-copyvio-notice, for instance, is set up to not include this sentence.

Ví dụ
no
Chuỗi dàitùy chọn
Additionallyadditionally

This optional text will be appended to the very end of the notice.

Chuỗi dàitùy chọn
RFUD linkrfudlink

If this parameter exists, the text prompting the user to go to WP:RFUD won't display. Useful as an alternative to the willprovide parameter if one can contact the deleting administrator to retrieve the article but for some reason can't place a request on that page (such as when the user in question has been blocked from editing Wikipedia). Template:Db-notability-notice, for example, is set up to omit this part of the sentence.

Ví dụ
yes
Chuỗi dàitùy chọn

Xem thêm[sửa mã nguồn]