Sjabloon:Db-notice/doc

Uit informatiestandaarden
< Sjabloon:Db-notice
Versie door Ahenket (overleg | bijdragen) op 17 jul 2013 om 16:04 (Nieuwe pagina aangemaakt met '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> {{speedy deletion notices}} This template is a meta-template us...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen

Speedy deletion notices

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

All of the speedy deletion notification templates that Twinkle uses are based on this template.

Usage

Basic usage:

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

All fields:

{{<includeonly>safesubst:</includeonly>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>
{{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.

Parameters

Parameter name Example values Description
namespace {{{namespace|}}} The namespace of the page tagged for deletion. This should be passed through from the daughter template.
target {{{1}}} This is the name of the page which was tagged for deletion. It should always be set as the first positional parameter.
nowelcome {{{nowelcome|}}}, yes This template automatically welcomes users with {{first article}} 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").
header {{{header|}}} 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 end users control over whether they want to include a heading or not.
header-text {{{header-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.
nothanks yes 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.
icon File:Information icon4.svg The filename of the image used in the top-left-hand corner of the notice.
wizard yes Shows a message box with advice about creating new articles.
text 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.
if you think that If this parameter exists, it will replace the text "the page was nominated in error" with the text it contains.
button no 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.
willprovide no By default, the template will include the sentence, "Lastly, please note that if the article does get deleted, you can contact one of these administrators to request that they userfy the article or have a copy emailed to you." 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.
additionally This text will be appended to the very end of the notice.

See also