Template

Note: Difference between revisions

(update code with switch + Usage)
(Text weggemacht, Icons reichen)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Some text ...
<onlyinclude>
<onlyinclude>
<div style="background-color: #F5F5F5; border-left: 6px solid #eaecf0; 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 = ⚠️
| info = 💡Info!
| info = 💡
| #default = ✒️ Note:
| #default = ✒️
}}
}}


</strong> {{{text|Some text...}}} </p>
</strong> {{{text|Some text...}}} </p>
</div>
</div>
</onlyinclude>
</onlyinclude>
 
Some text ...
----
----


Line 27: Line 26:


<pre style="background-color:#F5F5F5;">
<pre style="background-color:#F5F5F5;">
{{Note|text = This gives a simple note about something}}
{{Note|text=This gives a simple note about something}}


{{Note|type=warn
{{Note
|text = This is a sample warning!
|type=warn
|text=This is a sample warning!
}}
}}
</pre>
</pre>

Latest revision as of 08:28, 10 September 2025

Some text ...

✒️ Some text...

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!
}}