Difference between revisions of "Template:Note"

Jump to navigation Jump to search
295 bytes added ,  09:04, 22 September 2021
Enhance Example
(Refactor)
(Enhance Example)
Line 3: Line 3:
{{Template}}
{{Template}}


A note box for showing important notes.  
A note box for showing important notes.


== Usage ==
== Usage ==


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


== Example ==
== Examples ==


{{Note|This is an note.}}
<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 ==
== Technical notes ==


This template uses class <code>.template-box</code> and <code>.template-note</code> to make the output HTML more parsable.
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,
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.
one may move the embedded inline styles to Template Style files.
131

edits

Navigation menu