Difference between revisions of "Template:Db notice doc/parameters"
imported>Mr. Stradivarius m (Fix edit link) |
imported>Andrybak (format with dt & dd) |
||
| Line 4: | Line 4: | ||
--></noinclude>{{ed right|Db notice doc/parameters}}<!-- If you can see this comment (which means that this template has been substituted), please remove both this comment and the {{ed right}} template to the left. -->{{{{{|safesubst:}}}#if: {{{nowelcome|}}} | | --></noinclude>{{ed right|Db notice doc/parameters}}<!-- If you can see this comment (which means that this template has been substituted), please remove both this comment and the {{ed right}} template to the left. -->{{{{{|safesubst:}}}#if: {{{nowelcome|}}} | | ||
| − | + | ;{{para|nowelcome}} | |
| − | + | :If this parameter exists, then the {{tl|first article}} welcome message is not included, even if the page the notice is being placed on did not previously exist.}}{{{{{|safesubst:}}}#if: {{{header|}}} | | |
| − | + | ;{{para|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|}}} | | |
| − | + | ;{{para|header-text}} | |
| + | :a custom value for the header text.}}{{{{{|safesubst:}}}#if: {{{demo|}}} | | ||
| + | ;{{para|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|}}} | | ||
| + | ;{{para|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.}}<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> | ||
Latest revision as of 12:16, 23 August 2019
This template is used to create the "parameters" section for the documentation pages of the different speedy deletion notification templates. This template affects all of the notification templates - if you only want to edit the documentation for one particular notification template, please go back to the documentation page for that template and add your new text directly after the {{db notice doc/parameters}} text.
Usage
This template should usually be transcluded. However, it is also possible to substitute it if a customized version is needed for an individual documentation page.
Basic usage
{{db notice doc/parameters
|nowelcome = yes
|header = yes
|header-text = yes
|demo = yes
|namespace = yes
}}
Parameters
|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.
|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.
Substituting
If the text of this template is too restrictive and you want to make a custom version for an individual template documentation page, you can substitute the template. To do this, simply add subst: after the two opening curly braces to the template that already exists on the page:
{{subst:db notice doc/parameters
|nowelcome = yes
|header = yes
|header-text = yes
|demo = yes
|namespace = yes
}}
After you have substituted the template, you can customize the text however you want.
See also
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}}
| The above documentation is transcluded from Template:Db notice doc/parameters/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. |