Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Note: Difference between revisions

Template page
Boursk (talk | contribs)
Initial draft
 
Boursk (talk | contribs)
m Improved examples
Line 11: Line 11:
== Usage ==
== Usage ==
<pre>
<pre>
{{Note|text=Foo}}
{{Note|text=Note without type}}
{{Note|type=info|text=Foo}}
{{Note|type=info|text=Note with type 'info'}}
{{Note|type=reminder|text=Foo}}
{{Note|type=reminder|text=Note with type 'reminder'}}
{{Note|type=warn|text=Foo}}
{{Note|type=warn|text=Note with type 'warn'}}
{{Note|type=error|text=Foo}}
{{Note|type=error|text=Note with type 'error'}}
{{Note}} Loose test
{{Note}} Text with a note prefix


* Text {{Note|inline=1|text=Foo}}
* Text {{Note|inline=1|text=with an inline note}}
</pre>
</pre>
{{Note|text=Foo}}
{{Note|text=Note without type}}
{{Note|type=info|text=Foo}}
{{Note|type=info|text=Note with type 'info'}}
{{Note|type=reminder|text=Foo}}
{{Note|type=reminder|text=Note with type 'reminder'}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|type=reminder|text=Add<br>br tags<br>to add<br>a line break}}
{{Note|type=reminder|text=
{{Note|type=reminder|text=
* Multiple paragraphs.
* Multiple paragraphs.


Of text.}}
Of text.}}
{{Note|type=warn|text=Foo}}
{{Note|type=warn|text=Note with type 'warn'}}
{{Note|type=error|text=Foo}}
{{Note|type=error|text=Note with type 'error'}}
{{Note}} Loose test
{{Note}} Text with a note prefix


* Text {{Note|inline=1|text=Foo}}
* Text {{Note|inline=1|text=with an inline note}}


== Template Parameters ==
== Template Parameters ==

Revision as of 07:53, 26 April 2026

{{{text}}}

Usage

{{Note|text=Note without type}}
{{Note|type=info|text=Note with type 'info'}}
{{Note|type=reminder|text=Note with type 'reminder'}}
{{Note|type=warn|text=Note with type 'warn'}}
{{Note|type=error|text=Note with type 'error'}}
{{Note}} Text with a note prefix

* Text {{Note|inline=1|text=with an inline note}}
Note without type
Note with type 'info'
Note with type 'reminder'
Add
br tags
to add
a line break
  • Multiple paragraphs.
Of text.
Note with type 'warn'
Note with type 'error'

Note Note: Text with a note prefix

  • Text
    with an inline note

Template Parameters

Parameter Description Type Status
Inline formatting inline

Show the template without line breaks before and after it.

Default
0
Auto value
1
Boolean Optional
Type type 2

One of "info", "reminder", "warn" or "error". This setting affects the color and icon.

Suggested values
info reminder warn error
Default
info
String Optional
Text text 1 content Informative note Content Optional