Jump to content

Template:Note: Difference between revisions

From Team Inverse MediaWiki
Created a template note page.
 
svg to png
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="note-box note-{{{2|information}}}">
<onlyinclude>{{Container
    <strong>{{{2|information}}}: </strong> {{{1}}}
  |{{{1|Example Text}}}
</div>
  |{{#switch:{{{2|}}}
    |information=--color-information-bg
    |suggestion=--color-suggestion-bg
    |warning=--color-warning-bg
    |danger=--color-danger-bg
    |=--color-information-bg}}
  |{{#switch:{{{2|}}}
    |information=[[File:InformationIcon.png|20px|link=]]   
    |suggestion= [[File:SuggestionIcon.png|20px|link=]]     
    |warning=    [[File:WarningIcon.png|20px|link=]]     
    |danger=    [[File:DangerIcon.png|20px|link=]]     
    |=}}}}</onlyinclude>
 
== Examples ==
{{Note|This is a information.|information}}
<code><nowiki>{{Note|This is a information.|information}}</nowiki></code>
{{Note|This is a suggestion.|suggestion}}
<code><nowiki>{{Note|This is a suggestion.|suggestion}}</nowiki></code>
{{Note|This is a warning.|warning}}
<code><nowiki>{{Note|This is a warning.|warning}}</nowiki></code>
{{Note|This is really dangerous!|danger}}
<code><nowiki>{{Note|This is really dangerous!|danger}}</nowiki></code>
 
== Guidance ==
When using these we recommend following this guidance:
* Avoid overuse
** With each one added to a page they lose their meaning.
** Generally stick to 1-3 per page if possible.
* Keep it to 1-2 sentences
** Any longer and you should be writing a paragraph instead.

Latest revision as of 15:27, 16 July 2026

Example Text

Examples

[edit source]
This is a information.

{{Note|This is a information.|information}}

This is a suggestion.

{{Note|This is a suggestion.|suggestion}}

This is a warning.

{{Note|This is a warning.|warning}}

This is really dangerous!

{{Note|This is really dangerous!|danger}}

Guidance

[edit source]

When using these we recommend following this guidance:

  • Avoid overuse
    • With each one added to a page they lose their meaning.
    • Generally stick to 1-3 per page if possible.
  • Keep it to 1-2 sentences
    • Any longer and you should be writing a paragraph instead.