Template:Db-deleted/doc

From MOASSpedia
Jump to navigation Jump to search

This template is a meta-template used to create speedy deletion notifications. It is typically transcluded into another template.

All of the post-deletion speedy deletion notification templates that use the Wikipedia tool known as Twinkle are based on this template. Twinkle will automatically add this message to a user's talk page whenever a page that user has created is deleted under Speedy Deletion. As such, sysops are unlikely to ever have cause to manually add this template to any page.

Usage

Basic usage:

{{SAFESUBST:<noinclude />db-deleted
|namespace     = {{{namespace|}}}
|target        = {{{1}}}
|nowelcome     = {{{nowelcome|}}}
|header        = {{{header|}}}
|header-text   = {{{header-text|}}}
|text          = 
}}<!-- Template:Db-XX-deleted --> <noinclude>
{{documentation}}
</noinclude>

All fields:

{{SAFESUBST:<noinclude />db-deleted
|namespace         = {{{namespace|}}}
|target            = {{{1}}}
|nowelcome         = {{{nowelcome|}}}
|header            = {{{header|}}}
|header-text       = {{{header-text|}}}
|nothanks          = 
|icon              = 
|wizard            = 
|text              = 
|if you think that = 
|willprovide       = 
|additionally      = 
}}<!-- Template:Db-XX-deleted --> <noinclude>
{{documentation}}
</noinclude>

The template should usually be used with safesubst, so that the template can be both transcluded and substituted. In most cases templates made with this meta-template will be substituted on user talk pages, but sometimes transclusion is necessary, for example when creating template documentation.

This template is a meta-template used to create speedy deletion notifications. It is typically transcluded into another template. All of the post-deletion speedy deletion notification templates that use the Wikipedia tool known as Twinkle are based on this template. Twinkle will automatically add this message to a user's talk page whenever a page that user has created is deleted under Speedy Deletion. As such, sysops are unlikely to ever have cause to manually add this template to any page. The information below is intended for users who are creating their own deletion templates and as reference for those interested in modifying existing templates.

Template parameters

ParameterDescriptionTypeStatus
Namespacenamespace

The namespace of the page that has been deleted. This should be passed through from the daughter template.

Example
File:
Stringoptional
Targettarget

This is the name of the page that has been deleted, given without brackets of any kind

Example
Ham sandwich with mustard and mayo
Page namerequired
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').

Example
yes
Stringoptional
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.

Example
no
Stringoptional
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.

Stringoptional
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.

Example
yes
Stringoptional
Iconicon

The filename of the image used in the top-left-hand corner of the notice.

Example
Ambox warning pn.svg
Page nameoptional
Wizardwizard

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

Example
yes
Stringoptional
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.

Stringoptional
If you think thatif you think that

If this parameter exists, it will replace the text 'this page should not have been deleted for this reason' with the text it contains.

Default
this page should not be deleted for this reason
Stringoptional
Will providewillprovide

By default, the template will include the sentence, 'you can place a request here.' If willprovide is equal to 'no' then this sentence will be omitted. Template:Db-copyvio-deleted, for instance, is set up to not include this sentence.

Example
no
Stringoptional
Additionallyadditionally

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

Stringoptional
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-deleted, for example, is set up to omit this part of the sentence.

Example
yes
Stringoptional

See also