Difference between revisions of "Template:Db notice doc"
Jump to navigation
Jump to search
imported>Mr. Stradivarius m (Tweak layout) |
imported>Mr. Stradivarius (Clarify "demo" parameter explanation) |
||
| Line 21: | Line 21: | ||
*'''header''':- by default, the template adds a level two section header of "[[Wikipedia:Criteria for speedy deletion|Speedy deletion]] nomination of ''[[PageName]]''". To suppress the header, use {{para|header|no}}.}}{{{{{|safesubst:}}}#if: {{{header-text|}}} | | *'''header''':- by default, the template adds a level two section header of "[[Wikipedia:Criteria for speedy deletion|Speedy deletion]] nomination of ''[[PageName]]''". To suppress the header, use {{para|header|no}}.}}{{{{{|safesubst:}}}#if: {{{header-text|}}} | | ||
*'''header-text''':- a custom value for the header text.}}{{{{{|safesubst:}}}#if: {{{demo|}}} | | *'''header-text''':- a custom value for the header text.}}{{{{{|safesubst:}}}#if: {{{demo|}}} | | ||
| − | *'''demo''':- if you are demonstrating the template's functionality, [[Wikipedia:Transclusion|transclude]] the template rather than [[Wikipedia:Substitution|substitute]] it, and use {{para|demo|yes}}. This | + | *'''demo''':- if you are demonstrating the template's functionality, [[Wikipedia:Transclusion|transclude]] the template rather than [[Wikipedia:Substitution|substitute]] it, and use {{para|demo|yes}}. This will prevent the template from being automatically substituted by a bot.}}{{{{{|safesubst:}}}#if: {{{namespace|}}} | |
*'''namespace''':- this is the [[Wikipedia:Namespace|namespace]] of the page tagged for speedy deletion. For example, if the page is in the "Wikipedia" namespace then the value would be <code>Wikipedia</code>. It is not necessary to specify this parameter if the namespace is already included in the page name. If the page is in the main article namespace then this parameter should be omitted.}} | *'''namespace''':- this is the [[Wikipedia:Namespace|namespace]] of the page tagged for speedy deletion. For example, if the page is in the "Wikipedia" namespace then the value would be <code>Wikipedia</code>. It is not necessary to specify this parameter if the namespace is already included in the page name. If the page is in the main article namespace then this parameter should be omitted.}} | ||
Revision as of 13:12, 10 August 2012
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}}:
- {{db notice doc/lead}}
- {{db notice doc/usage}}
- {{db notice doc/basicusage}}
- {{db notice doc/parameters}}
- {{db notice doc/examples}}
- {{db notice doc/seealso}}
Parameters
- Main parameters
- criterion:- This is the abbreviation of the speedy deletion criterion used by the notice. For example,
G1,G3, orA7. - criterion-desc:- A short description of the speedy deletion criterion. For example,
patent nonsenseorvandalism. - speedy-template:- The speedy deletion template used in conjunction with the warning template. For example,
db-nonsenseordb-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-noticeorvandalism-notice.
- Optional parameters
- warning-template:- The name of the notification template. For example,
db-nonsense-noticeordb-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
- {{db-notice}}
- {{db-deleted}}
Template:Speedy deletion navbox
| The above documentation is transcluded from Template:Db notice doc/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |