Template:NoteBox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly> <div class="note note-{{{1}}}"> {{{2|}}} </div> </includeonly><noinclude> == Usage == This template is used to create a note box. It has two parameters: * The first parameter is the type of the note (info, reminder, warn, error). * The second parameter is the content of the note. === Example === <code>{{{NoteBox|info|This is an informational note.}}}</code> produces: <div class="note note-info"> This is an informational note. </div> </noinclude>") |
No edit summary |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="note note-{{{1}}}"> | <div role="note" class="note note-{{{1}}}"></includeonly><noinclude> | ||
</includeonly><noinclude> | |||
== Usage == | == Usage == | ||
This template is used to create a note box. It has | This template is used to create a note box. It has one parameter: | ||
* The | * The parameter is the type of the note (primary, info, secondary, reminder, warn, error). | ||
* | * can be chained with w parameter (w-25, w-50, w-75). | ||
* can be chained with float parameter (floatright, floatcenter, floatleft) | |||
* can be chained with t parameter (tright, tleft) | |||
This template code is followed by html code. | |||
The template endes with with closer template <code>{{NoteBoxEnd}}</code>. | |||
=== Example === | === Example === | ||
<code> | <code>{{NoteBox|primary w-25}}</code> | ||
{{NoteBox|primary w-25}}This is a <b>primary</b> note, w-25{{NoteBoxEnd}} | |||
< | |||
<code>{{NoteBox|secondary w-50}}</code> | |||
</ | {{NoteBox |secondary w-50}}secondary w-50{{NoteBoxEnd}} | ||
<code>{{NoteBox|info w-75}}</code> | |||
{{NoteBox |info w-75}}info w-75{{NoteBoxEnd}} | |||
<code>{{NoteBox|reminder}}</code> | |||
{{NoteBox |reminder}}reminder{{NoteBoxEnd}} | |||
<code>{{NoteBox|warn}}</code> | |||
{{NoteBox |warn}}warn{{NoteBoxEnd}} | |||
<code>{{NoteBox|error}}</code> | |||
{{NoteBox |error}}error{{NoteBoxEnd}} | |||
</noinclude> | </noinclude> |
Latest revision as of 21:06, 17 January 2024
Usage
This template is used to create a note box. It has one parameter:
- The parameter is the type of the note (primary, info, secondary, reminder, warn, error).
- can be chained with w parameter (w-25, w-50, w-75).
- can be chained with float parameter (floatright, floatcenter, floatleft)
- can be chained with t parameter (tright, tleft)
This template code is followed by html code.
The template endes with with closer template {{NoteBoxEnd}}
.
Example
{{NoteBox|primary w-25}}
This is a primary note, w-25
{{NoteBox|secondary w-50}}
secondary w-50
{{NoteBox|info w-75}}
info w-75
{{NoteBox|reminder}}
reminder
{{NoteBox|warn}}
warn
{{NoteBox|error}}
error