Template:NoteBox: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
=== Example ===
=== Example ===
<code>&#123;&#123;NoteBox|primary w-25 floatright&#125;&#125;</code>
<code>&#123;&#123;NoteBox|primary w-25 floatright&#125;&#125;</code>
{{NoteBox|primary w-25 floatright}}This is a <b>primary</b> note, w-25, floatright{{NoteBoxEnd}}
{{NoteBox|primary w-25 tright}}This is a <b>primary</b> note, w-25, floatright{{NoteBoxEnd}}


<code>&#123;&#123;NoteBox|secondary w-50&#125;&#125;</code>
<code>&#123;&#123;NoteBox|secondary w-50&#125;&#125;</code>

Revision as of 21:05, 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)

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

Example

{{NoteBox|primary w-25 floatright}}

This is a primary note, w-25, floatright

{{NoteBox|secondary w-50}}

secondary w-50

{{NoteBox|info w-75}}

info w-75

{{NoteBox|reminder}}

reminder

{{NoteBox|warn}}

warn

{{NoteBox|error}}

error