Difference between revisions of "Template:Note"

Jump to navigation Jump to search
(use class="warningbox")
(Refactor)
Line 1: Line 1:
<noinclude>
<noinclude>
<!--    -->
{{Template}}
{{Template}}
A note box for showing important notes.


== Usage ==
== Usage ==


<pre><nowiki>{{Note|This is an note.}}</nowiki></pre>
<nowiki>{{Note|This is an note.}}</nowiki>


== Example ==
== Example ==


{{Note|This is an note.}}
{{Note|This is an note.}}
</noinclude><includeonly><div role="note" class="warningbox" style="
<!--              -->
== Technical notes ==
 
This template uses class <code>.template-box</code> and <code>.template-note</code> to make the output HTML more parsable.
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
* [[Template:Hint]]
* [[Template:Warning]]
<!--                  -->
</noinclude><includeonly>
<!--                  -->
<div role="note" class="template-box template-hint" style="
display: table;
display: table;
min-width: 16em;
min-width: 16em;
min-height: 1.6em;
min-height: 1.6em;
margin: .5em 0;
margin: .5em 0 1em;
padding: .5em 1em;
border: 1px solid #fc3;
color: #705000;
color: #705000;
">{{{1|}}}</div></includeonly>
background-color: #fef6e7;
">{{{1|}}}</div>
<!--      -->
</includeonly>