Difference between revisions of "Template:Note"
Jump to navigation
Jump to search
(use display: table to work with float: right) |
(Enhance Example) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<!-- --> | |||
{{Template}} | {{Template}} | ||
A note box for showing important notes. | |||
== Usage == | == Usage == | ||
< | <nowiki>{{Note|note content}}</nowiki> | ||
== Examples == | |||
<nowiki>{{Note|This is an note.}}</nowiki> | |||
<!-- --> | |||
{{Note | This is an note.}} | |||
<!-- --> | |||
For a more flexible usage, it doesn't start with "'''Note:'''" by default, | |||
you may add it manually with <code><nowiki>'''Note:'''</nowiki></code>: | |||
<!-- --> | |||
<nowiki>{{Note|'''Note:''' This is an note.}}</nowiki> | |||
<!-- --> | |||
{{Note | '''Note:''' This is an note.}} | |||
<!-- --> | |||
== Technical notes == | |||
This template uses class <code>.template-box</code> and <code>.template-note</code>. | |||
In the future, if the [https://www.mediawiki.org/wiki/Extension:TemplateStyles TemplateStyles Extension] is installed on this MediaWiki instance, | |||
one may move the embedded inline styles to Template Style files. | |||
== | == See also == | ||
* [https://wiki.archlinux.org/title/Template:Note ArchWiki: Template:Note]: the template on which this one is based on | |||
</noinclude><includeonly><div role="note" class=" | * [[Template:Hint]] | ||
* [[Template:Warning]] | |||
<!-- --> | |||
</noinclude><includeonly> | |||
<!-- --> | |||
<div role="note" class="template-box template-hint" style=" | |||
display: table; | |||
min-width: 16em; | |||
min-height: 1.6em; | |||
margin: .5em 0 1em; | |||
padding: .5em 1em; | |||
border: 1px solid #fc3; | |||
color: #705000; | |||
background-color: #fef6e7; | |||
">{{{1|}}}</div> | |||
<!-- --> | |||
</includeonly> |
Revision as of 09:04, 22 September 2021
This page is a template. Check out all pages using this template.
For more information, read Template:Template.
For more information, read Template:Template.
A note box for showing important notes.
Usage
{{Note|note content}}
Examples
{{Note|This is an note.}}
This is an note.
For a more flexible usage, it doesn't start with "Note:" by default,
you may add it manually with '''Note:'''
:
{{Note|'''Note:''' This is an note.}}
Note: This is an note.
Technical notes
This template uses class .template-box
and .template-note
.
In the future, if the TemplateStyles Extension is installed on this MediaWiki instance,
one may move the embedded inline styles to Template Style files.
See also
- ArchWiki: Template:Note: the template on which this one is based on
- Template:Hint
- Template:Warning