Template:NoteBox: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:


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


<code>&#123;&#123;NoteBox|info&#125;&#125;</code>
produces:
<div role="note" class="note note-info">
  <p>This is an informational note.</p>
</div>
</noinclude>
</noinclude>

Revision as of 20:47, 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

{{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