Template:Note: Difference between revisions

Template page
Created note template
 
No edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{User:JackTheFoxOtter/Template:Container
<onlyinclude>{{Container
   |{{{1|Example Text}}}
   |{{{1|Example Text}}}
   |{{#switch:{{{3|danger}}}
   |{{#switch:{{{2|}}}
     |information=rgba(96.9, 209.1, 249.9, 0.25) /* Hero Cyan */
     |information=--color-information-bg
     |suggestion=rgba(89.25, 234.6, 91.8, 0.25) /* Hero Green */
     |suggestion=--color-suggestion-bg
     |warning=rgba(247.35, 247.35, 112.2, 0.25) /* Hero Yellow */
     |warning=--color-warning-bg
     |danger=rgba(255, 114.75, 114.75, 0.25) /* Hero Red */
     |danger=--color-danger-bg
     |=rgba(96.9, 209.1, 249.9, 0.25) /* Hero Cyan */}}
     |=--color-information-bg}}
   |{{#switch:{{{3|danger}}}
   |{{#switch:{{{2|}}}
     |information=PotatoBadge.png
     |information=[[File:InformationIcon.svg|40px|link=]]   
     |suggestion=PotatoBadge.png
     |suggestion= [[File:SuggestionIcon.svg|40px|link=]]     
     |warning=PotatoBadge.png
     |warning=   [[File:WarningIcon.svg|40px|link=]]     
     |danger=PotatoBadge.png
     |danger=     [[File:DangerIcon.svg|40px|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 02:09, 5 August 2024

Example Text

Examples

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

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.