Template:Note: Difference between revisions

From Foxwells Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Documentation
<noinclude>
|content=
Usage examples:
Usage examples:
* <nowiki>{{Note|text=This is an info note}}</nowiki>
* <nowiki>{{Note|type=error|text=This is an error note}}</nowiki>
* <nowiki>{{Note|type=warn|text=Warning note!}}</nowiki>
* <nowiki>{{Note|type=reminder|text=Reminder note}}</nowiki>
* <nowiki>{{Note|inline=note-inline|text=Inline note}}</nowiki>


* {{Note|text=This is an info note}}
Example output:
* {{Note|type=error|text=This is an error note}}
* {{Note|type=warn|text=Warning note!}}
* {{Note|type=reminder|text=Reminder note}}
* {{Note|inline=1|text=Inline note}}
}}</noinclude>


{{#if: {{{1|}}}
{{Note|text=This is an info note}}
  | <div role="note" class="note{{#if: {{{2|}}} | note-{{{2}}} | note-info}}{{#if: {{{inline|}}} | note-inline}}">
{{Note|type=error|text=This is an error note}}
      {{{1}}}
{{Note|type=warn|text=Warning note!}}
    </div>
{{Note|type=reminder|text=Reminder note}}
  | <div class="note note-info">Note: No content provided.</div>
{{Note|inline=note-inline|text=Inline note}}
}}
</noinclude>
 
<div role="note" class="note note-{{{type|info}}} {{{inline|}}}">
  {{{text|Note: No content provided.}}}
</div>

Latest revision as of 01:39, 7 July 2025

Usage examples:

  • {{Note|text=This is an info note}}
  • {{Note|type=error|text=This is an error note}}
  • {{Note|type=warn|text=Warning note!}}
  • {{Note|type=reminder|text=Reminder note}}
  • {{Note|inline=note-inline|text=Inline note}}

Example output:


 This is an info note


 This is an error note


 Warning note!


 Reminder note


 Inline note


 Note: No content provided.