Template:NoteBox: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
== Usage ==
== Usage ==
This template is used to create a note box. It has one parameter:
This template is used to create a note box. It has one parameter:
* The parameter is the type of the note (info, reminder, warn, error).
* The parameter is the type of the note (primary, info, secondary, reminder, warn, error).
followed by html code
* can be chained with w parameter (w-25, w-50, w-75).
and ends with closer template <code>NoteBoxEnd</code>
This template code is followed by html code.
The template endes with with closer template <code>&#123;&#123;NoteBoxEnd&#125;&#125;</code>.


=== Example ===
=== Example ===


 
Calling <code>&#123;&#123;NoteBox|primary w-25&#125;&#125;</code> produces:
{{NoteBox|primary w-25}}primary w-25{{NoteBoxEnd}}
{{NoteBox|primary w-25}}This is a primary note, w-25{{NoteBoxEnd}}
{{NoteBox |secondary w-50}}secondary w-50{{NoteBoxEnd}}
{{NoteBox |secondary w-50}}secondary w-50{{NoteBoxEnd}}
{{NoteBox |info w-75}}info w-75{{NoteBoxEnd}}
{{NoteBox |info w-75}}info w-75{{NoteBoxEnd}}

Revision as of 20:44, 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).

This template code is followed by html code. The template endes with with closer template {{NoteBoxEnd}}.

Example

Calling {{NoteBox|primary w-25}} produces:

This is a primary note, w-25
secondary w-50
info w-75
reminder
warn
error

{{NoteBox|info}} produces:

This is an informational note.