Difference between revisions of "Template:Note"

Jump to navigation Jump to search
(Add more technical notes)
(Fix the new line problem, thanks fxc for point ths out, and https://stackoverflow.com/questions/686898)
Line 1: Line 1:
<noinclude>
<noinclude>
<!--    -->
{{Template}}
{{Template}}


Line 12: Line 11:


  <nowiki>{{Note|This is an note.}}</nowiki>
  <nowiki>{{Note|This is an note.}}</nowiki>
<!--      -->
 
{{Note | This is an note.}}
{{Note | This is an note.}}
<!--      -->
 
For a more flexible usage, it doesn't start with "'''Note:'''" by default,
For a more flexible usage, it doesn't start with "'''Note:'''" by default,
you may add it manually with <code><nowiki>'''Note:'''</nowiki></code>:
you may add it manually with <code><nowiki>'''Note:'''</nowiki></code>:
<!--      -->
 
  <nowiki>{{Note|'''Note:''' This is an note.}}</nowiki>
  <nowiki>{{Note|'''Note:''' This is an note.}}</nowiki>
<!--      -->
 
{{Note | '''Note:''' This is an note.}}
{{Note | '''Note:''' This is an note.}}
<!--      -->
 
== Technical notes ==
== Technical notes ==


Line 35: Line 34:
* [[Template:Hint]]
* [[Template:Hint]]
* [[Template:Warning]]
* [[Template:Warning]]
<!--                  -->
</noinclude><includeonly><div role="note" class="template-box template-hint" style="
</noinclude><includeonly>
<!--                  -->
<div role="note" class="template-box template-hint" style="
display: table;
display: table;
min-width: 16em;
min-width: 16em;
Line 47: Line 43:
color: #705000;
color: #705000;
background-color: #fef6e7;
background-color: #fef6e7;
">{{{1|}}}</div>
">{{{1|}}}</div></includeonly>
<!--      -->
</includeonly>