Template:NoteBox/doc
![]() | This template uses TemplateStyles: |
type
:See also
- {{Mbox}} – different message boxes
- {{Warning}}
- {{Image message box}}
- {{Message box}}
- {{Box}}
Usage
{{NoteBox
|type =
|1 =
}}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
Show a note in a box (e.g. a top-of-the-page warning) in four different styles depending on the parameters <code>type</code>:<div style="font-weight: lighter"> <div role="note" class="note note-info ">info (standard)</div> <div role="note" class="note note-reminder ">reminder</div> <div role="note" class="note note-warn ">warn</div> <div role="note" class="note note-error ">error</div> == See also ==
- [[:Template:Mbox|{{Mbox}}]] – different message boxes
- [[:Template:Warning|{{Warning}}]]
- [[:Template:Image message box|{{Image message box}}]]
- [[:Template:Message box|{{Message box}}]]
- [[:Template:Box|{{Box}}]]
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 text | Informative note. | Content | suggested |
Inline formatting | inline | Show the template without line breaks before and after it.
| Boolean | optional |
Type | type 2 | One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.
| String | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Localization
العربية ∙ Deutsch ∙ English ∙ français ∙ Bahasa Indonesia ∙ македонски ∙ Nederlands ∙ русский ∙ 中文
This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:NoteBox/layout.