Template

Note: Difference between revisions

(test with #switch)
(update code with switch + Usage)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>


<div style="background-color: #D0E1E6; border-left: 6px solid #0c91bd; padding: 3px">
<div style="background-color: #F5F5F5; border-left: 6px solid #eaecf0; padding: 3px">
<p><strong>
<p><strong>


{{#switch: {{{type}}}
{{#switch: {{{type}}}
| warn = Warning!
| warn = ⚠️ Warning!
| info = Info!
| info = 💡Info!
| #default = Note!
| #default = ✒️ Note:
}}
}}


</strong> {{{text|Some text...}}} </p>
</strong> {{{text|Some text...}}} </p>
Line 18: Line 17:
----
----


{{#switch: {{{type}}}
== Usage ==
| warn
 
| info
* '''type:'''
| #default = note
** warn
** info
** default = Note (when no type-param is given)
* '''text:''' Some text...
 
 
<pre style="background-color:#F5F5F5;">
{{Note|text = This gives a simple note about something}}
 
{{Note|type=warn
|text = This is a sample warning!
}}
}}
 
</pre>
<div style="background-color: #D0E1E6; border-left: 6px solid #0c91bd; padding: 3px">
<p><strong>Note!</strong> {{{text|Some text...}}} </p>
</div>

Revision as of 12:59, 29 November 2023


✒️ Note: Some text...



Usage

  • type:
    • warn
    • info
    • default = Note (when no type-param is given)
  • text: Some text...


{{Note|text = This gives a simple note about something}}

{{Note|type=warn
|text = This is a sample warning!
}}