Difference between revisions of "Template:Db notice doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(Split template into subpages for easy customization)
imported>Mr. Stradivarius
(Show output on template page, add notice at top, fix {{{header-text}}} parameter)
Line 1: Line 1:
<includeonly>{{Documentation subpage}}
+
<noinclude>{{notice|The following text is the output of {{tl|db notice doc}}, not the documentation for the template itself. The documentation is included below the template output.}}</noinclude>{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
{{{{{|safesubst:}}}#if: {{{twinkle|}}} | {{Twinkle standard installation}} }}
 
{{{{{|safesubst:}}}#if: {{{twinkle|}}} | {{Twinkle standard installation}} }}
{{subst only|auto=yes}}
+
<includeonly>{{subst only|auto=yes}}</includeonly>
 
{{speedy deletion notices}}
 
{{speedy deletion notices}}
  
Line 30: Line 30:
 
|nowelcome = {{{nowelcome|}}}
 
|nowelcome = {{{nowelcome|}}}
 
|header = {{{header|}}}
 
|header = {{{header|}}}
|header-text = {{{header|text}}}
+
|header-text = {{{header-text|}}}
 
|warning-template = {{{warning-template|}}}
 
|warning-template = {{{warning-template|}}}
 
}}
 
}}
Line 38: Line 38:
  
 
{{speedy deletion navbox}}
 
{{speedy deletion navbox}}
<include</includeonly><includeonly>only>
+
<include<includeonly></includeonly>only>
 
__NOTOC__
 
__NOTOC__
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
Line 44: Line 44:
 
{{{othercats|}}}
 
{{{othercats|}}}
  
</include</includeonly><includeonly>only></includeonly><noinclude>
+
</include<includeonly></includeonly>only><noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 13:56, 12 August 2012


Template:Speedy deletion notices

This template is used to notify users about pages that have been nominated for speedy deletion. Specifically, it is used for pages that have been nominated under section of the criteria for speedy deletion, "". This template is usually used in conjunction with {{[[Template:|]]}}; for other speedy deletion notification templates see the table to the right.

This template should be substituted on to the user talk page of the author of the page that has been tagged for speedy deletion.

If this template is used on a page that did not previously exist (that is, if the user receiving the notice is new user), the template automatically includes a {{first article}} welcome message.

{{subst:db notice doc|PageName}}

Where PageName is the name of the page that has been tagged for speedy deletion.

|header-text=
a custom value for the header text.


Template:Speedy deletion navbox <includeonly>

[[Category:CSD warning templates|]]


</includeonly>

Template documentation[view] [edit] [history] [purge]

This is a boilerplate template used to create documentation pages for the speedy deletion notification templates.

Usage

This template should be substituted on to the documentation subpage of the speedy deletion notification template. Basic usage is as follows:

{{subst: db notice doc
|criterion       = <!-- G1, G3, A7, etc. -->
|criterion-desc  = <!-- patent nonsense, vandalism, etc. -->
|speedy-template = <!-- db-nonsense, db-vandalism, etc. -->
|twinkle         = yes
|namespace       = yes 
|nowelcome       = yes
|header          = yes
|header-text     = yes
|demo            = yes
|cat-name        = <!-- nonsense-notice, vandalism-notice, etc. -->
}}

This template uses subpages to make the speedy deletion notice documentation pages both flexible and easy to maintain. These subpages are usually transcluded on the documentation subpage, but they can also be substituted if desired - see the individual subpages for instructions on how to do this.

Subpages of {{db notice doc}}:

Parameters

Main parameters
  • criterion:- This is the abbreviation of the speedy deletion criterion used by the notice. For example, G1, G3, or A7.
  • criterion-desc:- A short description of the speedy deletion criterion. For example, patent nonsense or vandalism.
  • speedy-template:- The speedy deletion template used in conjunction with the warning template. For example, db-nonsense or db-vandalism.
  • twinkle:- If this parameter exists, the {{twinkle standard installation}} template is included at the top of the page.
  • namespace:- If this parameter exists, an explanation of the "namespace" parameter for the notification template will be included. Leave this parameter blank if you don't want to include the explanation.
  • nowelcome:- If this parameter exists, an explanation of the "nowelcome" parameter for the notification template will be included. Leave this parameter blank if you don't want to include the explanation.
  • header:- If this parameter exists, an explanation of the "header" parameter for the notification template will be included. Leave this parameter blank if you don't want to include the explanation.
  • header-text:- If this parameter exists, an explanation of the "header-text" parameter for the notification template will be included. Leave this parameter blank if you don't want to include the explanation.
  • demo:- If this parameter exists, an explanation of the "demo" parameter for the notification template will be included. Leave this parameter blank if you don't want to include the explanation.
  • cat-name:- This is the name that the template should be categorised under. For example, nonsense-notice or vandalism-notice.
Optional parameters
  • warning-template:- The name of the notification template. For example, db-nonsense-notice or db-vandalism-notice. This parameter is only necessary if the documentation is not being created in the template's documentation subpage.
  • othercats:- Additional categories can be specified with this parameter. Each category should go on a new line. Example: [[Category:Copyright maintenance templates]]
  • interwiki:- You can specify interwiki links with this parameter. Each link should go on a new line. Example: [[he:תבנית:הבל]]

See also


Template:Speedy deletion navbox