Jump to content

Template:Single notice/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
expand
document hatnote param
 
(12 intermediate revisions by 8 users not shown)
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->


This is a meta-template used to generate documentation for single-notice user warning templates like {{tl|uw-tilde}}. User warning templates using this meta-template should follow the guidelines set by the [[Wikipedia:WikiProject user warnings|user warnings project]].
This template is used to generate documentation for single-notice user warning templates like {{tl|uw-tilde}}. User warning templates using this documentation template should follow the guidelines set by the [[Wikipedia:WikiProject user warnings|user warnings project]].


== Syntax ==
== Syntax ==
Line 16: Line 16:
| required named params =
| required named params =
| extra usage =
| extra usage =
| template data =
| see also =
| see also =
| hatnote =
| banners =
| banners =
| s1 =
| s1 =
Line 22: Line 24:
| s3 =
| s3 =
}}
}}
</pre>


== Parameters ==
== Parameters ==


; {{para|param1}}
* <code>param1</code> - a two-or-three-word description of parameter {{para|1}}, to go inside template examples. ({{para|1}}} usually contains the page name of whatever page the message is about.) Defaults to "article".
:a two-or-three-word description of parameter {{para|1}}, to go inside template examples. ({{para|1}} usually contains the page name of whatever page the message is about.) Defaults to "article".
* <code>param1 required</code> - set to <code>yes</code> if {{para|1}} is required.
; {{para|param1 required}}
* <code>nopage</code> - set to <code>yes</code> if there is no {{para|1}} parameter.
* <code>nothankyou</code> - set to <code>yes</code> if the message does not end in "Thank you." By default, the template will say that additional text set with the {{para|2}} parameter will be used instead of the text "Thank you"; if you set this to <code>yes</code>, the template will instead say that {{para|2}} will be added at the end of the message.
: set to <code>yes</code> if {{para|1}} is required.
; {{para|nopage}}
:set to <code>yes</code> if there is no {{para|1}} parameter.
; {{para|nothankyou}}
: set to <code>yes</code> if the message does not end in "Thank you." By default, the template will say that additional text set with the {{para|2}} parameter will be used instead of the text "Thank you"; if you set this to <code>yes</code>, the template will instead say that {{para|2}} will be added at the end of the message.
; {{para|required named params}}
* <code>required named params</code> - use this parameter to add required named parameters to all of the example template invocations. They will be added as the first parameter to [[Template:Tlsc]], so you should escape equals signs. For example, <code><nowiki>myparam{{=}}''example value''</nowiki></code> will give the code <code>myparam{{=}}''example value''</code>.
:use this parameter to add required named parameters to all of the example template invocations. They will be added as the first parameter to [[Template:Tlsc]], so you should escape equals signs. For example, <code><nowiki>myparam{{=}}''example value''</nowiki></code> will give the code <code>myparam{{=}}''example value''</code>.
* <code>extra usage</code> - a space to add extra examples of how to use the template.
; {{para|extra usage}}
* <code>see also</code> - a space to add "see also" links for the template.
:a space to add additional information about usage of the template.
* <code>banners</code> - a space to add banners such as {{tl|Twinkle standard installation}}.
; {{para|template data}}
* <code>s1</code>, <code>s2</code>, <code>s3</code> - template shortcuts.
:a space to add [[WP:TemplateData|TemplateData]].
; {{para|see also}}
:a space to add "see also" links for the template.
; {{para|hatnote}}
:a place before the banners to place a hatnote.
; {{para|banners}}
:a space to add banners such as {{tl|Twinkle standard installation}}.
; {{para|s1}}, {{para|s2}}, {{para|s3}}
:template shortcuts.
; {{para|nocat}}
:[[WP:NOCAT|suppress automatic categorization]]

==See also==
* {{tl|Templatesnotice}}: generates documentation for multi-issue user-page templates.


{{single notice links}}
{{single notice links}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Documentation shared content templates]]

}}</includeonly>
}}</includeonly>

Latest revision as of 01:17, 30 May 2023

This template is used to generate documentation for single-notice user warning templates like {{uw-tilde}}. User warning templates using this documentation template should follow the guidelines set by the user warnings project.

Syntax

[edit]

All parameters

{{single notice
| param1                = 
| param1 required       = 
| nopage                = 
| nothankyou            = 
| required named params = 
| extra usage           = 
| template data         = 
| see also              = 
| hatnote               = 
| banners               = 
| s1                    = 
| s2                    = 
| s3                    = 
}}

Parameters

[edit]
|param1=
a two-or-three-word description of parameter |1=, to go inside template examples. (|1= usually contains the page name of whatever page the message is about.) Defaults to "article".
|param1 required=
set to yes if |1= is required.
|nopage=
set to yes if there is no |1= parameter.
|nothankyou=
set to yes if the message does not end in "Thank you." By default, the template will say that additional text set with the |2= parameter will be used instead of the text "Thank you"; if you set this to yes, the template will instead say that |2= will be added at the end of the message.
|required named params=
use this parameter to add required named parameters to all of the example template invocations. They will be added as the first parameter to Template:Tlsc, so you should escape equals signs. For example, myparam{{=}}''example value'' will give the code myparam=example value.
|extra usage=
a space to add additional information about usage of the template.
|template data=
a space to add TemplateData.
|see also=
a space to add "see also" links for the template.
|hatnote=
a place before the banners to place a hatnote.
|banners=
a space to add banners such as {{Twinkle standard installation}}.
|s1=, |s2=, |s3=
template shortcuts.
|nocat=
suppress automatic categorization

See also

[edit]
  • {{Templatesnotice}}: generates documentation for multi-issue user-page templates.