Template:Note: Difference between revisions

From Foxwells Wiki
Jump to navigation Jump to search
notes
 
No edit summary
 
(6 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|{{{content|{{{text|}}}}}}}}}
{{Note|text=This is an info note}}
  | <div role="note" class="note note-{{#switch: {{{2|info}}}
{{Note|type=error|text=This is an error note}}
      | gotcha = error
{{Note|type=warn|text=Warning note!}}
      | warning = warn
{{Note|type=reminder|text=Reminder note}}
      | notice = info
{{Note|inline=note-inline|text=Inline note}}
      | error = error
</noinclude>
      | warn = warn
 
      | reminder = reminder
<div role="note" class="note note-{{{type|info}}} {{{inline|}}}">
      | #default = {{{2|info}}}
  {{{text|Note: No content provided.}}}
    }}{{#ifeq:{{{inline|}}}|1| note-inline}}">
</div>
      {{{1|{{{content|{{{text|}}}}}}}}}
    </div>
  | [[File:OOjs_UI_icon_lightbulb-yellow.svg|18px|alt=Note|link=]] '''Note:'''
}}

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.